Chapter 05
Wiki and publishing
Notes become a wiki, and a wiki becomes a website. Any folder of Markdown pages can be a wiki, with a page tree, a table of contents and editing right on the page. Paste a screenshot and it's there. Every saved state is kept. And if you want to show your travel diary or a how-to to others, publish the wiki under an address of your choice.
Turning a folder into a wiki
A wiki is an ordinary folder in your files. You turn it into a wiki with Mark as wiki in the folder's context menu, or, if you are already inside the folder, with a right-click on an empty spot and Mark this folder as wiki. This needs the Manage permissions permission on the folder.
The wiki then appears on the rail under Wikis for everyone who can read the folder. At first its display name is the folder name. More and Display name of the wiki let you give it a nicer one without renaming the folder.
The pages stay ordinary .md files with the permissions of their folder. What you change in your files you see in the wiki and the other way round. Remove wiki mark turns the wiki back into a plain folder; the pages stay where they are.
Tip: Wikis created with LeafWiki can simply be added: FerrumCloud reads its file format, order and attachments without rewriting any files.
How the wiki view is laid out
The wiki view has three columns:
- The page tree on the left. Subfolders are chapters. A file called
index.mdorREADME.mdis the page of the chapter itself and isn't listed again as a separate page. Collapse all tidies up the tree. - The page in the middle, set for reading, with breadcrumbs above it. At the bottom are the Pages linking here.
- The table of contents on the right, built from the headings of the page, with your current position highlighted. It also lists the Attached media. You can collapse it.
Drag the edges of the page tree and the table of contents to change their width.
You decide the order in the tree: drag pages and chapters to where you want them. Without an order of your own they are sorted from A to Z. The order is stored in the folder and applies to the published website too.
Ctrl+Alt+P opens Go to page: type a few letters of the title, choose with the arrow keys and jump there with Enter. Copy link puts the address of the current page on the clipboard.
Creating and writing pages
New page and New chapter in the page tree create pages. The file name is made from the title. Right-click a page to create a New subpage; the page then becomes a chapter. The same menu lets you rename and delete pages and Show in files.
To edit, press E or click Edit. The page turns into the editor right where it is, with Write, Side by side and Preview and the same toolbar as in your files. Paste pictures from the clipboard or drop them in; they are saved as files in an assets folder next to the page and linked relatively. Ctrl+S saves.
As soon as you type [ for a link, the editor suggests matching pages of the wiki. If you later rename or move a page, FerrumCloud updates the links in every page that points to it.
Every saved state stays in the Version history, see Editing and versions.
Callouts
For notes, tips and warnings there are callout boxes. They sit between two lines of three colons:
:::tip Good to know
The key hangs next to the door.
:::
There are four kinds: info, tip, warning and danger. The title after the kind is optional. The boxes look the same in the wiki and on published sites.
Broken links
Under More you find Broken links in the wiki: a list of all links whose target doesn't exist, with the page they are on and the Missing target. For the current page there is the same check as Broken links on this page.
Publishing a wiki
A few clicks turn a wiki into a website of its own, for a travel diary, a how-to for the family or the documentation of a project. Open the wiki and choose Publish under More. This needs the Manage permissions permission on the folder.
| Field | Meaning |
|---|---|
| Name in the address | The site is then reachable at /p/<name>, such as /p/travel-diary. Allowed are a to z, 0 to 9 and hyphens |
| Title and Subtitle | Shown at the top of the website; the title starts out as the name of the wiki |
| Accent colour, Theme, Logo | Light, dark or Like the reader's device, plus color and logo |
| Who may read it | Public, With password or Accounts only |
Public means anyone who knows the address. With password asks for a password but no account. Accounts only lets in only people signed in to FerrumCloud who may also read the folder there.
The published website looks like the reading view of the wiki: page tree on the left in the same order, page in the middle, table of contents on the right, plus a search and Previous and Next at the end of every page. It reads well on a phone too. Anyone who is signed in and may write also sees Edit there, which takes them straight to the same page in FerrumCloud.
Published wikis carry a small globe in the list of wikis. The More menu then offers Open published site, Copy public link, Edit publication and Take offline. Only the person who published it can change or end the publication.
A few things worth knowing:
- Pages with
draft: truein their front matter stay unpublished, as do files and folders whose name starts with a dot or an underscore. - Search engines never index published sites.
- If you delete the folder, the website goes offline immediately. If you restore it from the trash, it comes back as long as its address is still free.
- Each wiki can be published exactly once.