Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:dokuwiki [2025/12/22 02:09] – diamond | software:dokuwiki [2026/01/07 08:33] (current) – add note on wrap plugin diamond | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| dma.space operates a Dokuwiki instance at [wiki.dma.space](https:// | dma.space operates a Dokuwiki instance at [wiki.dma.space](https:// | ||
| - | ## Creating a Page | + | ## Markdown by Default |
| + | |||
| + | Our Dokuwiki instance runs the [Commonmark plugin](https:// | ||
| + | |||
| + | **This plugin has a few quirks that you should keep in mind:** | ||
| + | |||
| + | - Some inline Dokuwiki syntax are still supported. For example, the "Add image" button in the editor still works, even though it inserts Dokuwiki markup. | ||
| + | - Some Commonmark syntax are parsed incorrectly by the plugin. For example, list items with multiple text paragraphs are not supported. | ||
| + | - You may add custom Dokuwiki markup by opening a code block with a `dokuwiki` language. The [main page](/) utilizes this; just look at its source code. | ||
| + | - The main editor is [TinyMDE](# | ||
| + | |||
| + | ### Admonitions | ||
| + | |||
| + | The custom CSS adds very basic Markdown Admonitions into Dokuwiki. Here's an example of how one could look like: | ||
| + | |||
| + | > **Note:** Fire Warning | ||
| + | > | ||
| + | > This device may catch fire. Use with caution. | ||
| + | |||
| + | Here's the code for it: | ||
| + | |||
| + | ``` | ||
| + | > **Note:** Fire Warning | ||
| + | > | ||
| + | > This device may catch fire. Use with caution. | ||
| + | ``` | ||
| + | |||
| + | For this to work, the first text part of the blockquote must be a bold string (`**bold**`). The CSS will automatically style it like the above. | ||
| + | |||
| + | ### TinyMDE | ||
| + | |||
| + | We use [TinyMDE](https:// | ||
| + | |||
| + | If this is breaking for some reason, you may revert to the previous editor by adding `tinymde=no` to the query URL, e.g. `https:// | ||
| + | |||
| + | ### Images | ||
| + | |||
| + | TinyMDE' | ||
| + | |||
| + | For reference: | ||
| + | |||
| + | - To set the width of the image to 100, add `?100` to the end of the image URL. | ||
| + | - To set the height of the image to 100, add `?0x100` to the end of the image URL. | ||
| + | - To center the image, wrap it in a `<div centeralign> | ||
| + | |||
| + | ### Format using Prettier | ||
| + | |||
| + | The sparkly button on the editor toolbar will format the entire page's source using Prettier as a Markdown file. **DO NOT run this if the page is written entirely in Dokuwiki markup.** | ||
| + | |||
| + | It is recommended that you run this tool whenever you paste any Markdown snippet from outside. | ||
| + | |||
| + | ### Aligning Content | ||
| + | |||
| + | We run the [Wrap plugin](https:// | ||
| + | |||
| + | ``` | ||
| + | <div centeralign> | ||
| + | . |
| + | 2. Type in the **slug** of the page (i.e. hyphenated words such as " | ||
| + | 3. Click **Add page**. | ||
| + | |||
| + | Once you're on the editing page, give the page a title in Markdown format | ||
| + | |||
| + | ### Creating a Namespace | ||
| + | |||
| + | There is no straightforward button for creating a namespace, but you can do so using the same "Add page" input box above. | ||
| + | |||
| + | For example, if `: | ||
| + | |||
| + | I could also keep the namespace selector as `Root` and create a page with the slug `: | ||
| + | |||
| + | To start with, namespace pages should start out with its title and a small list of its inner pages, if possible. Here's a copy-paste template: | ||
| + | |||
| + | ```` | ||
| + | # Namespace Name | ||
| + | |||
| + | **Pages: | ||
| + | |||
| + | ```dokuwiki | ||
| + | <catlist : | ||
| + | ``` | ||
| + | ```` | ||
| ## Theming | ## Theming | ||
| Line 18: | Line 113: | ||
| These patchsets are maintained by a set of NixOS configurations. See [NixOS Boxes](/ | These patchsets are maintained by a set of NixOS configurations. See [NixOS Boxes](/ | ||
| + | |||