Help.page 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # Navigating
  2. The most natural way of navigating is by clicking wiki links that
  3. connect one page with another. The "Front page" link in the navigation
  4. bar will always take you to the Front Page of the wiki. The "All pages"
  5. link will take you to a list of all pages on the wiki (organized into
  6. folders if directories are used). Alternatively, you can search using
  7. the search box. Note that the search is set to look for whole words, so
  8. if you are looking for "gremlins", type that and not "gremlin".
  9. The "go" box will take you directly to the page you type.
  10. # Creating and modifying pages
  11. ## Registering for an account
  12. In order to modify pages, you'll need to be logged in. To register
  13. for an account, just click the "register" button in the bar on top
  14. of the screen. You'll be asked to choose a username and a password,
  15. which you can use to log in in the future by clicking the "login"
  16. button. While you are logged in, these buttons are replaced by
  17. a "logout so-and-so" button, which you should click to log out
  18. when you are finished.
  19. Note that logins are persistent through session cookies, so if you
  20. don't log out, you'll still be logged in when you return to the
  21. wiki from the same browser in the future.
  22. ## Editing a page
  23. To edit a page, just click the "edit" button at the bottom right corner
  24. of the page.
  25. You can click "Preview" at any time to see how your changes will look.
  26. Nothing is saved until you press "Save."
  27. Note that you must provide a description of your changes. This is to
  28. make it easier for others to see how a wiki page has been changed.
  29. ## Page metadata
  30. Pages may optionally begin with a metadata block. Here is an example:
  31. ---
  32. format: latex+lhs
  33. categories: haskell math
  34. toc: no
  35. title: Haskell and
  36. Category Theory
  37. ...
  38. \section{Why Category Theory?}
  39. The metadata block consists of a list of key-value pairs, each on a
  40. separate line. If needed, the value can be continued on one or more
  41. additional line, which must begin with a space. (This is illustrated by
  42. the "title" example above.) The metadata block must begin with a line
  43. `---` and end with a line `...` optionally followed by one or more blank
  44. lines.
  45. Currently the following keys are supported:
  46. format
  47. : Overrides the default page type as specified in the configuration file.
  48. Possible values are `markdown`, `rst`, `latex`, `html`, `markdown+lhs`,
  49. `rst+lhs`, `latex+lhs`. (Capitalization is ignored, so you can also
  50. use `LaTeX`, `HTML`, etc.) The `+lhs` variants indicate that the page
  51. is to be interpreted as literate Haskell. If this field is missing,
  52. the default page type will be used.
  53. categories
  54. : A space or comma separated list of categories to which the page belongs.
  55. toc
  56. : Overrides default setting for table-of-contents in the configuration file.
  57. Values can be `yes`, `no`, `true`, or `false` (capitalization is ignored).
  58. title
  59. : By default the displayed page title is the page name. This metadata element
  60. overrides that default.
  61. ## Creating a new page
  62. To create a new page, just create a wiki link that links to it, and
  63. click the link. If the page does not exist, you will be editing it
  64. immediately.
  65. ## Reverting to an earlier version
  66. If you click the "history" button at the bottom of the page, you will
  67. get a record of previous versions of the page. You can see the differences
  68. between two versions by dragging one onto the other; additions will be
  69. highlighted in yellow, and deletions will be crossed out with a horizontal
  70. line. Clicking on the description of changes will take you to the page
  71. as it existed after those changes. To revert the page to the revision
  72. you're currently looking at, just click the "revert" button at the bottom
  73. of the page, then "Save".
  74. ## Deleting a page
  75. The "delete" button at the bottom of the page will delete a page. Note
  76. that deleted pages can be recovered, since a record of them will still be
  77. accessible via the "activity" button on the top of the page.
  78. # Uploading files
  79. To upload a file--a picture, a PDF, or some other resource--click the
  80. "upload" button in the navigation bar. You will be prompted to select
  81. the file to upload. As with edits, you will be asked to provide a
  82. description of the resource (or of the change, if you are overwriting
  83. an existing file).
  84. Often you may leave "Name on wiki" blank, since the existing name of the
  85. file will be used by default. If that isn't desired, supply a name.
  86. Note that uploaded files *must* include a file extension (e.g. `.pdf`).
  87. If you are providing a new version of a file that already exists on the
  88. wiki, check the box "Overwrite existing file." Otherwise, leave it
  89. unchecked.
  90. To link to an uploaded file, just use its name in a regular wiki link.
  91. For example, if you uploaded a picture `fido.jpg`, you can insert the
  92. picture into a (markdown-formatted) page as follows: `![fido](fido.jpg)`.
  93. If you uploaded a PDF `projection.pdf`, you can insert a link to it
  94. using: `[projection](projection.pdf)`.