AuriOS documentation site, published automatically with Jekyll and GitHub Pages. A "docs"-style theme with a search bar, sidebar table of contents and light/dark mode.
This repository only contains the site theme. The page content (the Markdown files) is maintained in a separate repository: Auri-OS/docs. On every build, these files are fetched and rendered by this theme.
The content lives in the Auri-OS/docs repository, not here. To add or edit a page:
-
Go to the Auri-OS/docs repository.
-
Create or edit a
my-page.mdfile with its front matter:--- title: Page title permalink: /my-page/ --- Your Markdown content here.
-
If you add a new page, reference its
permalinkin the sidebar_data/nav.ymlin this repository. -
A push to
Auri-OS/docsrebuilds the site automatically (see.github/dispatch-for-docs-repo/). You can also trigger it here via Actions → Run workflow.
The order and sections of the left-hand navigation are defined in
_data/nav.yml. Each entry points to a page permalink.
- Push this repository to GitHub.
- Go to Settings → Pages.
- Under Build and deployment → Source, choose GitHub Actions.
- The
.github/workflows/pages.ymlworkflow deploys the site on every push tomain.
Project repository (
github.com/auri-os/aurios): setbaseurl: "/aurios"in_config.yml.auri-os.github.iorepository: leavebaseurl: "".
To make a push on Auri-OS/docs
automatically rebuild and redeploy this site, follow the instructions in
.github/dispatch-for-docs-repo/README.md.
First fetch the content from Auri-OS/docs, then start the server:
bundle install
./bin/fetch-docs.sh # copies the Markdown from Auri-OS/docs into _docs/
bundle exec jekyll serveThen open http://localhost:4000.
The
_docs/*.mdfiles are ignored by git (see.gitignore): they are fetched on the fly fromAuri-OS/docsat build time.
_config.yml Site configuration
_data/nav.yml Sidebar table of contents
_layouts/doc.html Documentation page layout
_includes/ Top bar, sidebar, table of contents, footer
_docs/ Content fetched from Auri-OS/docs (git-ignored)
bin/fetch-docs.sh Fetches the Markdown content for local preview
assets/css/ Theme (styles)
assets/js/ Search, dynamic table of contents, theme, Mermaid