Guide
Getting started
How the docs sections work and how to add pages.
Every docs section — docs, python, linux, server, and so on — is a
Jekyll collection. Landing on any section shows only that section’s pages
in the sidebar; the home page shows a collapsible directory of every section.
The three moving parts
_config.ymlregisters each section as a collection (an explicit allow-list, so folders likeassets/andtmp/are simply never included)._data/sections.ymllists the sections for the home sidebar — label, badge, an optional blurb, and an optionalhighlightflag to pin it up top._<section>/holds the pages: anindex.mdthat forwards to the first page, plus one markdown file per page.
Add a page to an existing section
- Create
_python/logging.md. - Give it
title,category,nav_order, andin_nav: true. - Write Markdown. It appears in that section’s sidebar and in search.
Add a whole new section
- Register it in
_config.ymlundercollections:anddefaults:. - Create the
_<name>/folder with anindex.mdand pages. - Add an entry to
_data/sections.yml.
Run it locally
bundle exec jekyll serve --livereload
Then open http://localhost:4000. Styling comes from the SCSS in _sass/,
compiled to /assets/css/style.css — no per-page CSS needed.