Help.page 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. ---
  2. format: DocBook
  3. ...
  4. <sect1 id="navigating">
  5. <title>Navigating</title>
  6. <para>
  7. The most natural way of navigating is by clicking wiki links that
  8. connect one page with another. The <quote>Front page</quote> link in
  9. the navigation bar will always take you to the Front Page of the
  10. wiki. The <quote>All pages</quote> link will take you to a list of
  11. all pages on the wiki (organized into folders if directories are
  12. used). Alternatively, you can search using the search box. Note that
  13. the search is set to look for whole words, so if you are looking for
  14. <quote>gremlins</quote>, type that and not <quote>gremlin</quote>.
  15. The <quote>go</quote> box will take you directly to the page you
  16. type.
  17. </para>
  18. </sect1>
  19. <sect1 id="creating-and-modifying-pages">
  20. <title>Creating and modifying pages</title>
  21. <sect2 id="registering-for-an-account">
  22. <title>Registering for an account</title>
  23. <para>
  24. In order to modify pages, you’ll need to be logged in. To register
  25. for an account, just click the <quote>register</quote> button in
  26. the bar on top of the screen. You’ll be asked to choose a username
  27. and a password, which you can use to log in in the future by
  28. clicking the <quote>login</quote> button. While you are logged in,
  29. these buttons are replaced by a <quote>logout so-and-so</quote>
  30. button, which you should click to log out when you are finished.
  31. </para>
  32. <para>
  33. Note that logins are persistent through session cookies, so if you
  34. don’t log out, you’ll still be logged in when you return to the
  35. wiki from the same browser in the future.
  36. </para>
  37. </sect2>
  38. <sect2 id="editing-a-page">
  39. <title>Editing a page</title>
  40. <para>
  41. To edit a page, just click the <quote>edit</quote> button at the
  42. bottom right corner of the page.
  43. </para>
  44. <para>
  45. You can click <quote>Preview</quote> at any time to see how your
  46. changes will look. Nothing is saved until you press
  47. <quote>Save.</quote>
  48. </para>
  49. <para>
  50. Note that you must provide a description of your changes. This is
  51. to make it easier for others to see how a wiki page has been
  52. changed.
  53. </para>
  54. </sect2>
  55. <sect2 id="page-metadata">
  56. <title>Page metadata</title>
  57. <para>
  58. Pages may optionally begin with a metadata block. Here is an
  59. example:
  60. </para>
  61. <programlisting>
  62. ---
  63. format: latex+lhs
  64. categories: haskell math
  65. toc: no
  66. title: Haskell and
  67. Category Theory
  68. ...
  69. \section{Why Category Theory?}
  70. </programlisting>
  71. <para>
  72. The metadata block consists of a list of key-value pairs, each on
  73. a separate line. If needed, the value can be continued on one or
  74. more additional line, which must begin with a space. (This is
  75. illustrated by the <quote>title</quote> example above.) The
  76. metadata block must begin with a line <literal>---</literal> and
  77. end with a line <literal>...</literal> optionally followed by one
  78. or more blank lines.
  79. </para>
  80. <para>
  81. Currently the following keys are supported:
  82. </para>
  83. <variablelist spacing="compact">
  84. <varlistentry>
  85. <term>
  86. format
  87. </term>
  88. <listitem>
  89. <para>
  90. Overrides the default page type as specified in the
  91. configuration file. Possible values are
  92. <literal>markdown</literal>, <literal>rst</literal>,
  93. <literal>latex</literal>, <literal>html</literal>,
  94. <literal>markdown+lhs</literal>, <literal>rst+lhs</literal>,
  95. <literal>latex+lhs</literal>. (Capitalization is ignored, so
  96. you can also use <literal>LaTeX</literal>,
  97. <literal>HTML</literal>, etc.) The <literal>+lhs</literal>
  98. variants indicate that the page is to be interpreted as
  99. literate Haskell. If this field is missing, the default page
  100. type will be used.
  101. </para>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry>
  105. <term>
  106. categories
  107. </term>
  108. <listitem>
  109. <para>
  110. A space or comma separated list of categories to which the
  111. page belongs.
  112. </para>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry>
  116. <term>
  117. toc
  118. </term>
  119. <listitem>
  120. <para>
  121. Overrides default setting for table-of-contents in the
  122. configuration file. Values can be <literal>yes</literal>,
  123. <literal>no</literal>, <literal>true</literal>, or
  124. <literal>false</literal> (capitalization is ignored).
  125. </para>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry>
  129. <term>
  130. title
  131. </term>
  132. <listitem>
  133. <para>
  134. By default the displayed page title is the page name. This
  135. metadata element overrides that default.
  136. </para>
  137. </listitem>
  138. </varlistentry>
  139. </variablelist>
  140. </sect2>
  141. <sect2 id="creating-a-new-page">
  142. <title>Creating a new page</title>
  143. <para>
  144. To create a new page, just create a wiki link that links to it,
  145. and click the link. If the page does not exist, you will be
  146. editing it immediately.
  147. </para>
  148. </sect2>
  149. <sect2 id="reverting-to-an-earlier-version">
  150. <title>Reverting to an earlier version</title>
  151. <para>
  152. If you click the <quote>history</quote> button at the bottom of
  153. the page, you will get a record of previous versions of the page.
  154. You can see the differences between two versions by dragging one
  155. onto the other; additions will be highlighted in yellow, and
  156. deletions will be crossed out with a horizontal line. Clicking on
  157. the description of changes will take you to the page as it existed
  158. after those changes. To revert the page to the revision you’re
  159. currently looking at, just click the <quote>revert</quote> button
  160. at the bottom of the page, then <quote>Save</quote>.
  161. </para>
  162. </sect2>
  163. <sect2 id="deleting-a-page">
  164. <title>Deleting a page</title>
  165. <para>
  166. The <quote>delete</quote> button at the bottom of the page will
  167. delete a page. Note that deleted pages can be recovered, since a
  168. record of them will still be accessible via the
  169. <quote>activity</quote> button on the top of the page.
  170. </para>
  171. </sect2>
  172. </sect1>
  173. <sect1 id="uploading-files">
  174. <title>Uploading files</title>
  175. <para>
  176. To upload a file–a picture, a PDF, or some other resource–click the
  177. <quote>upload</quote> button in the navigation bar. You will be
  178. prompted to select the file to upload. As with edits, you will be
  179. asked to provide a description of the resource (or of the change, if
  180. you are overwriting an existing file).
  181. </para>
  182. <para>
  183. Often you may leave <quote>Name on wiki</quote> blank, since the
  184. existing name of the file will be used by default. If that isn’t
  185. desired, supply a name. Note that uploaded files
  186. <emphasis>must</emphasis> include a file extension (e.g.
  187. <literal>.pdf</literal>).
  188. </para>
  189. <para>
  190. If you are providing a new version of a file that already exists on
  191. the wiki, check the box <quote>Overwrite existing file.</quote>
  192. Otherwise, leave it unchecked.
  193. </para>
  194. <para>
  195. To link to an uploaded file, just use its name in a regular wiki
  196. link. For example, if you uploaded a picture
  197. <literal>fido.jpg</literal>, you can insert the picture into a
  198. (markdown-formatted) page as follows:
  199. <literal>![fido](fido.jpg)</literal>. If you uploaded a PDF
  200. <literal>projection.pdf</literal>, you can insert a link to it
  201. using: <literal>[projection](projection.pdf)</literal>.
  202. </para>
  203. </sect1>
  204. <sect1 id="markdown">
  205. <title>
  206. Markdown
  207. </title>
  208. <para>
  209. <programlisting>
  210. This wiki's pages are written in
  211. &lt;ulink url=&quot;http://johnmacfarlane.net/pandoc&quot;&gt;pandoc&lt;/ulink&gt;'s
  212. extended form of
  213. &lt;ulink url=&quot;http://daringfireball.net/projects/markdown&quot;&gt;markdown&lt;/ulink&gt;.
  214. If you're not familiar with markdown, you should start by looking at
  215. the
  216. &lt;ulink url=&quot;http://daringfireball.net/projects/markdown/basics&quot;&gt;markdown
  217. &amp;quot;basics&amp;quot; page&lt;/ulink&gt; and the
  218. &lt;ulink url=&quot;http://daringfireball.net/projects/markdown/syntax&quot;&gt;markdown
  219. syntax description&lt;/ulink&gt;. Consult the
  220. &lt;ulink url=&quot;http://johnmacfarlane.net/pandoc/README.html&quot;&gt;pandoc
  221. User's Guide&lt;/ulink&gt; for information about pandoc's syntax for
  222. footnotes, tables, description lists, and other elements not present
  223. in standard markdown.
  224. </programlisting>
  225. </para>
  226. <para>
  227. <programlisting>
  228. Markdown is pretty intuitive, since it is based on email
  229. conventions. Here are some examples to get you started:
  230. </programlisting>
  231. </para>
  232. <table>
  233. <tr>
  234. <td>
  235. <literal><emphasis>emphasized text</emphasis></literal>
  236. </td>
  237. <td>
  238. <emphasis>emphasized text</emphasis>
  239. </td>
  240. </tr>
  241. <tr>
  242. <td>
  243. <literal><emphasis role="strong">strong emphasis</emphasis></literal>
  244. </td>
  245. <td>
  246. <emphasis role="strong">strong emphasis</emphasis>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td>
  251. <literal><literal>literal text</literal></literal>
  252. </td>
  253. <td>
  254. <literal>literal text</literal>
  255. </td>
  256. </tr>
  257. <tr>
  258. <td>
  259. <literal>*escaped special characters*</literal>
  260. </td>
  261. <td>
  262. <emphasis>escaped special characters</emphasis>
  263. </td>
  264. </tr>
  265. <tr>
  266. <td>
  267. <literal><ulink url="http://google.com">external link</ulink></literal>
  268. </td>
  269. <td>
  270. <ulink url="http://google.com">external link</ulink>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td>
  275. <literal><inlinemediaobject>
  276. <imageobject>
  277. <imagedata fileref="/img/icons/folder.png" />
  278. </imageobject>
  279. </inlinemediaobject></literal>
  280. </td>
  281. <td>
  282. <inlinemediaobject> <imageobject>
  283. <imagedata fileref="/img/icons/folder.png" /> </imageobject>
  284. </inlinemediaobject>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>
  289. Wikilink: <literal><ulink url="">Front Page</ulink></literal>
  290. </td>
  291. <td>
  292. Wikilink: <ulink url="">Front Page</ulink>
  293. </td>
  294. </tr>
  295. <tr>
  296. <td>
  297. <literal>H<subscript>2</subscript>O</literal>
  298. </td>
  299. <td>
  300. H<subscript>2</subscript>O
  301. </td>
  302. </tr>
  303. <tr>
  304. <td>
  305. <literal>10<superscript>100</superscript></literal>
  306. </td>
  307. <td>
  308. 10<superscript>100</superscript>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td>
  313. <literal><emphasis role="strikethrough">strikeout</emphasis></literal>
  314. </td>
  315. <td>
  316. <emphasis role="strikethrough">strikeout</emphasis>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td>
  321. <literal>$x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}$</literal>
  322. </td>
  323. <td>
  324. $x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}$<footnote>
  325. <para>
  326. <programlisting>
  327. If this looks like code, it's because jsMath is not installed on
  328. your system. Contact your administrator to request it.
  329. &lt;/para&gt;
  330. </programlisting>
  331. </footnote>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td>
  336. <literal>A simple footnote.<footnote>
  337. <para>
  338. Or is it so simple?
  339. </para>
  340. </footnote></literal>
  341. </td>
  342. <td>
  343. A simple footnote.<footnote>
  344. <para>
  345. <programlisting>
  346. Or is it so simple?
  347. &lt;/para&gt;
  348. </programlisting>
  349. </footnote>
  350. </td>
  351. </tr>
  352. <tr>
  353. <td>
  354. <pre>
  355. > an indented paragraph,
  356. > usually used for quotations
  357. </pre>
  358. </td>
  359. <td>
  360. <blockquote>
  361. <programlisting>
  362. &lt;para&gt;
  363. an indented paragraph, usually used for quotations
  364. &lt;/para&gt;
  365. </programlisting>
  366. </blockquote>
  367. </td>
  368. <tr>
  369. <td>
  370. <pre>
  371. #!/bin/sh -e
  372. # code, indented four spaces
  373. echo "Hello world"
  374. </pre>
  375. </td>
  376. <td>
  377. <programlisting>
  378. <sect1 id="binsh--e">
  379. <title>!/bin/sh -e</title>
  380. <para>
  381. </para>
  382. </sect1>
  383. <sect1 id="code-indented-four-spaces">
  384. <title>code, indented four spaces</title>
  385. echo <quote>Hello world</quote>
  386. </programlisting>
  387. </td>
  388. </tr>
  389. <tr>
  390. <td>
  391. <pre>
  392. * a bulleted list
  393. * second item
  394. - sublist
  395. - and more
  396. * back to main list
  397. 1. this item has an ordered
  398. 2. sublist
  399. a) you can also use letters
  400. b) another item
  401. </pre>
  402. </td>
  403. <td>
  404. <itemizedlist spacing="compact">
  405. <programlisting>
  406. &lt;listitem&gt;
  407. &lt;para&gt;
  408. a bulleted list
  409. &lt;/para&gt;
  410. &lt;/listitem&gt;
  411. &lt;listitem&gt;
  412. &lt;para&gt;
  413. second item
  414. &lt;/para&gt;
  415. &lt;itemizedlist spacing=&quot;compact&quot;&gt;
  416. &lt;listitem&gt;
  417. &lt;para&gt;
  418. sublist
  419. &lt;/para&gt;
  420. &lt;/listitem&gt;
  421. &lt;listitem&gt;
  422. &lt;para&gt;
  423. and more
  424. &lt;/para&gt;
  425. &lt;/listitem&gt;
  426. &lt;/itemizedlist&gt;
  427. &lt;/listitem&gt;
  428. &lt;listitem&gt;
  429. &lt;para&gt;
  430. back to main list
  431. &lt;/para&gt;
  432. &lt;orderedlist numeration=&quot;arabic&quot; spacing=&quot;compact&quot;&gt;
  433. &lt;listitem&gt;
  434. &lt;para&gt;
  435. this item has an ordered
  436. &lt;/para&gt;
  437. &lt;/listitem&gt;
  438. &lt;listitem&gt;
  439. &lt;para&gt;
  440. sublist
  441. &lt;/para&gt;
  442. &lt;orderedlist numeration=&quot;loweralpha&quot; spacing=&quot;compact&quot;&gt;
  443. &lt;listitem&gt;
  444. &lt;para&gt;
  445. you can also use letters
  446. &lt;/para&gt;
  447. &lt;/listitem&gt;
  448. &lt;listitem&gt;
  449. &lt;para&gt;
  450. another item
  451. &lt;/para&gt;
  452. &lt;/listitem&gt;
  453. &lt;/orderedlist&gt;
  454. &lt;/listitem&gt;
  455. &lt;/orderedlist&gt;
  456. &lt;/listitem&gt;
  457. </programlisting>
  458. </itemizedlist>
  459. </td>
  460. </tr>
  461. <tr>
  462. <td>
  463. <pre>
  464. Fruit Quantity
  465. -------- -----------
  466. apples 30,200
  467. oranges 1,998
  468. pears 42
  469. Table: Our fruit inventory
  470. </pre>
  471. </td>
  472. <td>
  473. <table>
  474. <programlisting>
  475. &lt;title&gt;
  476. Our fruit inventory
  477. &lt;/title&gt;
  478. &lt;tgroup cols=&quot;2&quot;&gt;
  479. &lt;colspec align=&quot;left&quot; /&gt;
  480. &lt;colspec align=&quot;right&quot; /&gt;
  481. &lt;thead&gt;
  482. &lt;row&gt;
  483. &lt;entry&gt;
  484. Fruit
  485. &lt;/entry&gt;
  486. &lt;entry&gt;
  487. Quantity
  488. &lt;/entry&gt;
  489. &lt;/row&gt;
  490. &lt;/thead&gt;
  491. &lt;tbody&gt;
  492. &lt;row&gt;
  493. &lt;entry&gt;
  494. apples
  495. &lt;/entry&gt;
  496. &lt;entry&gt;
  497. 30,200
  498. &lt;/entry&gt;
  499. &lt;/row&gt;
  500. &lt;row&gt;
  501. &lt;entry&gt;
  502. oranges
  503. &lt;/entry&gt;
  504. &lt;entry&gt;
  505. 1,998
  506. &lt;/entry&gt;
  507. &lt;/row&gt;
  508. &lt;row&gt;
  509. &lt;entry&gt;
  510. pears
  511. &lt;/entry&gt;
  512. &lt;entry&gt;
  513. 42
  514. &lt;/entry&gt;
  515. &lt;/row&gt;
  516. &lt;/tbody&gt;
  517. &lt;/tgroup&gt;
  518. </programlisting>
  519. </table>
  520. </td>
  521. </tr>
  522. </table>
  523. <para>
  524. <programlisting>
  525. For headings, prefix a line with one or more &lt;literal&gt;#&lt;/literal&gt;
  526. signs: one for a major heading, two for a subheading, three for a
  527. subsubheading. Be sure to leave space before and after the heading.
  528. </programlisting>
  529. </para>
  530. <programlisting>
  531. </sect1>
  532. <sect1 id="markdown">
  533. <title>Markdown</title>
  534. <para>
  535. Text…
  536. </para>
  537. <sect2 id="some-examples">
  538. <title>Some examples…</title>
  539. Text…
  540. </programlisting>
  541. <sect2 id="wiki-links">
  542. <title>
  543. Wiki links
  544. </title>
  545. <programlisting>
  546. &lt;para&gt;
  547. Links to other wiki pages are formed this way:
  548. &lt;literal&gt;[Page Name]()&lt;/literal&gt;. (Gitit converts markdown links
  549. with empty targets into wikilinks.)
  550. &lt;/para&gt;
  551. &lt;para&gt;
  552. To link to a wiki page using something else as the link text:
  553. &lt;literal&gt;[something else](Page Name)&lt;/literal&gt;.
  554. &lt;/para&gt;
  555. &lt;para&gt;
  556. Note that page names may contain spaces and some special
  557. characters. They need not be CamelCase. CamelCase words are
  558. &lt;emphasis&gt;not&lt;/emphasis&gt; automatically converted to wiki links.
  559. &lt;/para&gt;
  560. &lt;para&gt;
  561. Wiki pages may be organized into directories. So, if you have
  562. several pages on wine, you may wish to organize them like so:
  563. &lt;/para&gt;
  564. &lt;programlisting&gt;
  565. </programlisting>
  566. Wine/Pinot Noir Wine/Burgundy Wine/Cabernet Sauvignon
  567. </programlisting>
  568. <programlisting>
  569. &lt;para&gt;
  570. Note that a wiki link &lt;literal&gt;[Burgundy]()&lt;/literal&gt; that occurs
  571. inside the &lt;literal&gt;Wine&lt;/literal&gt; directory will link to
  572. &lt;literal&gt;Wine/Burgundy&lt;/literal&gt;, and not to
  573. &lt;literal&gt;Burgundy&lt;/literal&gt;. To link to a top-level page called
  574. &lt;literal&gt;Burgundy&lt;/literal&gt;, you'd have to use
  575. &lt;literal&gt;[Burgundy](/Burgundy)&lt;/literal&gt;.
  576. &lt;/para&gt;
  577. &lt;para&gt;
  578. To link to a directory listing for a subdirectory, use a trailing
  579. slash: &lt;literal&gt;[Wine/]()&lt;/literal&gt; will link to a listing of the
  580. &lt;literal&gt;Wine&lt;/literal&gt; subdirectory.
  581. &lt;/para&gt;
  582. </programlisting>
  583. <para>
  584. </sect2> </sect1>
  585. </para>
  586. </sect2>
  587. </sect1>