root/HTTP/Nanoki.txt

Revision 1405 (checked in by rsz, 6 months ago)

cleanup

Line 
1 **Nanoki** is a simple [wiki engine][100] implemented in [Lua][101], allowing you to create, edit, and link web pages easily.
2
3 ![Nanoki][0]
4
5 ----
6
7 ###Run Nanoki
8
9 Start Nanoki from the command line:
10
11     cd Nanoki
12     lua Nanoki.lua . localhost 1080
13
14 The above command will start Nanoki on your local host at port 1080, using the local directory for storage:
15
16 [http://localhost:1080/][1000]
17
18 Command synopsis:
19
20     Nanoki [location] [address] [port] [not|forwarded] [not|secure]
21
22 `location` tells Nanoki where to store its data.   
23 `address` indicates which network address to bind the Nanoki server to.   
24 `port` indicates what port number to use.   
25 `forwarded` indicates whether `x-forwarded-for` should be trusted.   
26 `secure` indicates whether `https` should be used.   
27
28 ![Run][1]
29
30 ----
31
32 ###Create a page
33
34 To create a new page, type its name in your browser address bar:
35
36 ![New][2]
37
38 If the page doesn't exists yet, Nanoki will redirect you to the page editor:
39
40 ![New Editor][3]
41
42 ----
43
44 ###Edit a page
45
46 To edit a page, click on its title. This will take you to the page editor:
47
48 ![Editor][4]
49
50 The editor uses [Markdown syntax][102] to describe the page content.   
51
52 To save your text, press _Preview_ and then _Save_.
53
54 ----
55
56 ###Upload a file
57
58 From the _editor_, you can upload files to Nanoki:
59
60 ![File][5]
61
62 Each page can have its own files. You can refer to those files like so:
63
64     ![Run][1]
65     [1]: nanoki/file/run.png
66    
67 File link synopsis:
68
69     [page]/file/[name]
70
71 `page` is the name of the page under which the file is located.   
72 `name` is the file name.
73
74 ----
75
76 ###Control panel
77 From the _editor_, you can access the _control panel_ to rename or delete a page:
78
79 ![Control][17]
80
81 ----
82
83 ###Revision
84
85 From the _editor_, you can access a page revision history by clicking on its title:
86
87 ![Revision][6]
88
89 Clicking a revision number will display the page content as it was then. 
90
91 ----
92
93 ###Revision differences
94
95 From the _revision_ page, you can access the revision differences by clicking on its title:
96
97 ![Revision differences][7]
98
99 ----
100
101 ###Related pages
102
103 Each page keep tracks of which other pages links to it:
104
105 ![Related][8]
106
107 ----
108
109 ###Breadcrumb navigation
110
111 Each page reflects its location using a _breadcrumb_ trail:
112
113 ![Breadcrumb][9]
114
115 ----
116
117 ###Index navigation
118
119 Nanoki provides a table of content, indexed by page title:
120
121 ![Index][10]
122
123 ----
124
125 ###Date navigation
126
127 The date navigation indexes pages by their publication date:
128
129 ![Date][11]
130
131 ----
132
133 ###Recent changes
134
135 The _recent changes_ page lists what has changed in Nanoki recently:
136
137 ![Recent][12]
138
139 ----
140
141 ###Search
142
143 The _search_ allows to locate pages by their title:
144
145 ![Search][13]
146
147 ----
148
149 ###XML feed
150
151 Aside from the _editor_, most pages provide an [XML feed][103]:
152
153 ![Feed][14]
154
155 ![Feed view][15]
156
157 ----
158
159 ### System page
160
161 The [system][104] page provides basic information about Nanoki itself:
162
163 ![System][16]
164
165 [0]: /etc/logo.png
166 [1]: nanoki/file/run.png
167 [2]: nanoki/file/new.png
168 [3]: nanoki/file/new-editor.png
169 [4]: nanoki/file/editor.png
170 [5]: nanoki/file/file.png
171 [6]: nanoki/file/revision.png
172 [7]: nanoki/file/revision-diff.png
173 [8]: nanoki/file/related.png
174 [9]: nanoki/file/breadcrumb.png
175 [10]: nanoki/file/index.png
176 [11]: nanoki/file/date.png
177 [12]: nanoki/file/recent.png
178 [13]: nanoki/file/search.png
179 [14]: nanoki/file/feed.png
180 [15]: nanoki/file/feed-view.png
181 [16]: nanoki/file/system.png
182 [17]: nanoki/file/control.png
183
184 [100]: http://en.wikipedia.org/wiki/Wiki
185 [101]: http://www.lua.org/about.html
186 [102]: http://daringfireball.net/projects/markdown/syntax
187 [103]: http://en.wikipedia.org/wiki/Atom_(standard)
188 [104]: a
189
190 [1000]: http://localhost:1080/
Note: See TracBrowser for help on using the browser.