Bob Mottram 8 年之前
父節點
當前提交
f88d38c6aa
共有 2 個檔案被更改,包括 8 行新增6 行删除
  1. 2
    1
      doc/EN/devguide.org
  2. 6
    5
      website/EN/devguide.html

+ 2
- 1
doc/EN/devguide.org 查看文件

@@ -62,9 +62,10 @@ MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
62 62
 MYAPPNAME_ONION_PORT=[port number]
63 63
 MYAPPNAME_DB_PASSWORD=
64 64
 
65
-# A directory where the data exists
65
+# A directory where the data for this app exists
66 66
 MYAPP_DATA_DIR=/var/lib/somedirectory
67 67
 
68
+# List of configuration variables used by the app
68 69
 myappname_variables=(ONION_ONLY
69 70
                      MY_USERNAME
70 71
                      SOME_IMPORTANT_CONFIG_VARIABLE

+ 6
- 5
website/EN/devguide.html 查看文件

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2016-10-12 Wed 17:12 -->
6
+<!-- 2016-10-12 Wed 17:14 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title></title>
@@ -245,9 +245,9 @@ for the JavaScript code in this tag.
245 245
 
246 246
 <center><h1>Developers Guide</h1></center>
247 247
 
248
-<div id="outline-container-orgcec4979" class="outline-2">
249
-<h2 id="orgcec4979">Adding extra apps</h2>
250
-<div class="outline-text-2" id="text-orgcec4979">
248
+<div id="outline-container-orgb179e3c" class="outline-2">
249
+<h2 id="orgb179e3c">Adding extra apps</h2>
250
+<div class="outline-text-2" id="text-orgb179e3c">
251 251
 <p>
252 252
 Suppose you have some internet application which you want to add to the system. To do this you need to create an app script which tells the system how to install/remove and also backup/restore. On an installed system the app scripts go into the directory:
253 253
 </p>
@@ -305,9 +305,10 @@ An example template for an app script is shown below. Copy this and add whatever
305 305
 <span class="org-variable-name">MYAPPNAME_ONION_PORT</span>=[port number]
306 306
 <span class="org-variable-name">MYAPPNAME_DB_PASSWORD</span>=
307 307
 
308
-<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data exists</span>
308
+<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data for this app exists</span>
309 309
 <span class="org-variable-name">MYAPP_DATA_DIR</span>=/var/lib/somedirectory
310 310
 
311
+<span class="org-comment-delimiter"># </span><span class="org-comment">List of configuration variables used by the app</span>
311 312
 <span class="org-variable-name">myappname_variables</span>=(ONION_ONLY
312 313
                      MY_USERNAME
313 314
                      SOME_IMPORTANT_CONFIG_VARIABLE