MARWAN docs NOC knowledge base

Contributing to MARWAN docs

How to add or edit a page on MARWAN docs: the git repository, front matter, Markdown features and where slide decks go.

MARWAN docs is built from Markdown files kept in git. Every change pushed to the main branch of MARWAN/marwan-docs on git.marwan.ma is published on this site automatically, within minutes. There is no manual render step.

The easy way: the page editor#

Open the page editor, or use Edit this page at the bottom of any page and Add a page in the footer. Sign in with your git.marwan.ma account, write on the left with the toolbar buttons (headings, lists, commands, note boxes, images, slide decks), and see the finished page on the right as you type. Publish saves your change to git under your name, and the site updates in about a minute. Your draft is kept in your browser until you publish.

You need write access to MARWAN/marwan-docs on git.marwan.ma. Ask an organisation owner if Publish says your account can't publish yet.

The rest of this page is for people who prefer to edit the Markdown files directly.

Edit an existing page#

  1. Find the file: a page at https://docs.marwan.ma/tech/<name>.html comes from tech/<name>.md.
  2. Edit it on git.marwan.ma (open the file, then the edit button), or clone the repository, edit it locally and push.
  3. Keep the file name: the URL of every page is indexed by search engines.

Add a page#

  1. Create tech/<name>.md, using lowercase words separated by hyphens. It is published at /tech/<name>.html.

  2. Start it with front matter:

    ---
    title: Install Unbound DNS on Rocky Linux 9
    description: One sentence that says what the page covers, shown in search results.
    author: Your Name
    date: 2026-11-12
    tags: [dns, unbound]
    ---
    
  3. Use ## and ### for sections; they build the "On this page" menu. The title is the only top-level heading.

  4. Put it in a section of the menu: add section: DNS (an existing section name, or a new one) to the front matter, or list the page name under a section in site.yml.

Markdown you can use#

  • Code blocks with a language, such as ```bash, and an optional file name: ```{.bash filename="/etc/raddb/clients.conf"}.
  • Notes: ::: note, ::: tip, ::: warning or ::: important, closed by :::.
  • Diagrams with ```mermaid, tables, and links to other pages (other-page.md).
  • Images: put small images next to the page in tech/ and link them by file name.

Slide decks and large files#

Slide decks (PDF and PPTX), photos and other large files are not stored in git. They live on the docs server in /srv/marwan-docs/media/tech/ and are served at the same URLs as the pages. Ask the NOC team to upload them, then show a deck on a page with a slides block:

```slides
pdf: 4-layer2-vlans-stp-lacp-security.pdf
pptx: 4-layer2-vlans-stp-lacp-security.pptx
title: Layer 2 switching
```

More details#

The README explains how publishing works on the server.