AOSC Wiki / AOSC Wiki Meta / .
Also available in: 简体中文

Maintaining this Wiki

All you need to know about how to create and maintain Wiki pages.

This wiki is generated by Zola using source files from AOSC-Dev/wiki on GitHub. If you wish to contribute, you can add or modify articles inside contents folder of the repository, then create a pull request (or directly push to the repository, if you're already a developer of the community). Before pushing, you can verify your work by running zola serve on your computer and take a look at how the wiki will look like after your modification.

File structure§

If you are writing some wiki, your work should happen mostly within the content folder. Let's see what a typical content folder for the wiki looks like.

# Inside a mystical content folder...

As you can see, a wiki is all about sections and posts inside sections (top-level posts are inside the root section). Sections can also be inside another section. We can (in theory) have infinitely deep sections, but for readability sake there should be at most three levels of sections. (/a/b/

Within a section, there's a special page named This is the index page for this section. This page should contain a brief introduction to the contents of this section and links to key pages. Except root section, an index of all available pages and subsections will be rendered to the HTML page by the template automatically, but don't rely on it, since it may not be the optimal reading order to the readers.


Translated version of the page should be named as Note that if you have a translated article in a particular section, its section and all parent sections must have a translated index page (, or the navigation will be broken.

Styling on filename§

Generally, the filename of a page should not contain any unnecessary prefix. For example, /packaging/ is not recommended since it would lead to a URL like, which is verbose and unnecessarily long. Instead, just use /packaging/

Article format§

Let's see what's in a typical wiki article. Here's what a bare minimal article looks like:

title = "One Informative Wiki Article"
description = "An absolutely useful guide to nothing"
tags = ["some-tag"]

Here's some content.

The lines between the two +++ are called the frontmatter of an article. These lines record information about the article, including title, description and its tags.

After this section, you can write your article with normal Markdown syntax, you may get some inspiration from this article. Do note that this site uses CommonMark, which means some extended Markdown syntax may not work.

Because internal links are so important, Zola (the back-end for this site) has a special syntax for them. When you want to reference another article, instead of doing this:

Nope: [Some Hyperlink Title](/some_section/some_article/)
Yes: [Some Hyperlink Title](@/some_section/

Then @ sign tells Zola to find the link for an internal page, and replace the link with the actual link for that page. By doing so, Zola is able to check if the link is valid. And if the link points to an non-exist file, the build would fail.

Usage of shortcodes§

Shortcodes is segments of template in your markdown files. It will be compiled into some defined structure when building the Wiki. Shortcodes can be used to create special visual structure on the page.

To see the full list of supported shortcodes, go to the Shortcode showcase.


Cards are used to indicate a piece of information that requires special attention. For example, a danger card can be used to indicate the following steps may result in permanent damage in user's hardware.

There are four types of cards available: success, info, warning and danger. To use cards, put your desired card type in the type field then fill your information before the end tag.

For example, if you write this in your markdown file:

{% card(type="warning") %}
Here is a warning in a card.
{% end %}

Zola will render it like this:

Here is a warning in a card.