A lightweight static site generator for project wikis. Markdown in, plain HTML out.
- No template engines, no JS framework, one Python file.
- Dark/light mode, code copy buttons, GitHub-style callouts, tables, sidebar nav.
- Ships as a CLI and a GitHub Action.
pip install git+https://github.com/CStaks/nsdocs.gitRequires Python 3.9+ and pyyaml.
- Put Markdown files in
docs/wiki-src/. - Add a
nsdocs.ymlconfig (see schema below). - Run:
nsdocs # build to docs/wiki/
nsdocs --check # CI mode: fail if pages are stale
nsdocs --clean # remove orphaned .html filesnsdocs.yml in the repo root:
site_name: "novyra"
brand_name: "novyra"
site_url: "https://CStaks.github.io/novyra/"
accent_color: "#238FC9"
license_text: "novyra OS documentation."
repo:
url: "https://github.com/CStaks/novyra"
branch: "main"
assets:
css: "../wiki.css"
favicon_dark: "../primary-dark-logo.ico"
favicon_light: "../primary-light-logo.ico"
features:
theme_toggle: true
clean_stale_files: true
edit_button: true
copy_button: true
nav:
"Getting started":
- getting-started.md
- installation.mdPages can set a title and description with front matter:
---
name: Installation
description: How to install novyra
---- uses: CStaks/nsdocs@v1
with:
config: nsdocs.yml
check: falseMIT (CStaks). If you redistribute substantial portions of this code, keep the license notice and credit this repository.