Tour
HistoryVersion 1 (current)
The first version: all of its text is new.
| 1 | # Tour | |
| 2 | ||
| 3 | This is the demo of a wiki written in Haskell: spaces of Markdown pages, an editor with the page rendered beside it as you type, search, and permissions on spaces. It runs entirely in your browser, over a wiki kept in your browser too, and nothing you do here is sent anywhere. | |
| 4 | ||
| 5 | > [!NOTE] | |
| 6 | > Your edits are kept in this browser, so a reload finds them. On the **Administration** page, linked at the top right for an administrator, under **Backups and data**, **Export the wiki** saves all of it as a zip file, **Import a wiki** brings such a file back, and **Reset the demo content** puts back the pages you see now. | |
| 7 | ||
| 8 | ## Who you can be | |
| 9 | ||
| 10 | You start as `admin`, Ada Admin, who may do everything. There are no passwords in the demo: choose who you are with the menu at the top right, and the same wiki shows what that person may read and do: | |
| 11 | ||
| 12 | | Who | May | | |
| 13 | | ------------------------ | ---------------------------------------------------- | | |
| 14 | | nobody (not signed in) | read the public spaces, **Blog** and **Docs** | | |
| 15 | | `reader`, Rita Reader | also read **Team / Projects**, but nothing else of Team | | |
| 16 | | `editor`, Edgar Editor | also write in **Blog**, and create spaces | | |
| 17 | | `admin`, Ada Admin | everything, everywhere | | |
| 18 | ||
| 19 | ## Public and private spaces | |
| 20 | ||
| 21 | A space holds pages, and other spaces. The front page lists the spaces you may read, and those you visited last; inside a space, the sidebar shows that space alone: its pages, its subspaces, and a menu to switch to another. [Blog](/blog) and [Docs](/docs), where this page is, are public: anyone may read them, signed in or not. **Team** is private, and so is its subspace **Team / Projects**, which `reader` has been let into: `reader` sees Team only as the way there. Look at the front page as `admin`, then as nobody, then as `reader`. (A link to a space you may not see shows as broken, since for you there is nothing there.) | |
| 22 | ||
| 23 | A subspace may also be made private from the space above it: **Make private**, under Public and Private in its permissions, makes the grants of the spaces above count no more there, so that only those granted on it see it. And each user may have a space of their own: **Enable personal space**, in **Settings**, **Profile** (the menu at the top right leads to **Settings**), makes one, public and named after them, under **User subspaces**, and the header's **Starred** list then starts with **Your space**. **User subspaces**, in the sidebar, lists **Your personal space** under it, and opens the finder of user spaces: yours and those whose home page you starred first, then a field that finds anyone else's by login or name. | |
| 24 | ||
| 25 | A space opens at its home page, which is this one for Docs: every other page of the space is under it, and a page made with **New page** goes there. **Pages and settings**, in the sidebar, lists all of a space's pages, and there whoever administers the space gives it a description and an icon (an emoji, a colour, or an image), and edits its home page. The icon is the browser tab's on the space's pages; an administrator gives the wiki an icon of its own on the front page, for the tab everywhere else. | |
| 26 | ||
| 27 | ## What a page can be | |
| 28 | ||
| 29 | The [Markdown guide](markdown-guide) shows everything a page can have: headings, lists, tables, task lists, footnotes, code highlighted by its language, formulas drawn by KaTeX, diagrams drawn by Mermaid, pictures drawn with TikZ, images, a video and an attached file. Its subpages are about [diagrams](markdown-guide/diagrams) and [mathematics](markdown-guide/mathematics). Open any of them in the editor to see the Markdown it is written in. | |
| 30 | ||
| 31 | ## Writing | |
| 32 | ||
| 33 | 1. As `admin`, open any page, this one too, or be `editor` and open a post in the Blog, such as [Hello, world](/blog/hello-world). Choose **Edit**. | |
| 34 | 2. Type on the left: the preview on the right follows when you stop. | |
| 35 | 3. Drag an image, or any other file, onto the editor to attach it to the page: the Markdown that shows it goes in where the cursor is. | |
| 36 | 4. Save with **Save**, or Ctrl+S (Cmd+S on a Mac). Leaving with changes that are not saved asks first. | |
| 37 | ||
| 38 | What does not render is underlined in red in the text, with a mark beside its line: a spoiler's or a box's marker that is wrong, and a formula, a diagram or a picture the preview could not draw. Point at it for the reason. The count beside **Save**, such as *2 problems*, goes to the next one at each click. | |
| 39 | ||
| 40 | A space's **New page**, and a page's **New subpage**, make a document, a presentation or a calendar, blank or from a template. | |
| 41 | ||
| 42 | ## Being told | |
| 43 | ||
| 44 | Write `@` and a login to mention someone: @editor is told of it under the bell at the top, beside the name of whoever is signed in. So are comments on the pages someone watches (their own, and those of the spaces they chose to with a page's or a space's **Watch** button), and their changes. Mention @editor in a comment as `admin`, then switch to `editor`. | |
| 45 | ||
| 46 | ## Finding | |
| 47 | ||
| 48 | Press `/` anywhere outside a text field, or click the search box at the top, and type: the best pages show as you type, with your words marked. The selector beside the box keeps the search to one space and its subspaces. The arrow keys choose a page and Enter opens it; Enter with none chosen opens the page of every result. Search finds only what you may read: search for *on-call* as `admin`, then as nobody. | |
| 49 | ||
| 50 | Signed in, star a page with its **Star** button to keep it under **Starred**, at the top of every page, one click away. The red **?** in the bottom right corner shows, in short, what a page can hold. | |
| 51 | ||
| 52 | ## On a server | |
| 53 | ||
| 54 | The same wiki runs on a server of its own, `wiki-server`, which keeps the pages for everyone: people sign in with a password or a provider such as Google or GitHub, the server enforces the permissions, and it exports pages and spaces as Word, PDF or slides. Every page there has a history, and comments arrive live. A server starts with a space like Docs, called Guide, with its own tour. |