Docs Pipeline
This site is built directly from the flake and the profile evaluation logic.
Pipeline Steps
- Evaluate the
khanelivim.*option tree withmkNixvimConfig. - Generate markdown for the
khanelivimoptions reference. - Split the options reference into pages by the level below
khanelivim. - Evaluate each
khanelivim.profilewithmkNixvimConfig. - Serialize the curated profile data to JSON.
- Render the JSON into
profiles.md. - Build an mdBook site as
docs-html.
Commands
nix build .#docs-html
nix run .#docs
Binary Cache
The build runs the standard profile headless to collect keymaps, so building
the docs locally needs the whole default package. CI builds docs-html on
x86_64-linux and aarch64-darwin and pushes it to the khanelivim Cachix
cache. Pull requests from forks are built but not pushed. On those two systems,
with the cache enabled, Nix substitutes the generated site for a pushed revision
instead of building the editor. On other systems, and for revisions CI has not
pushed, nix run .#docs still builds everything locally.
Published Site
Every push to main deploys the docs-html output from the Linux CI build to
GitHub Pages at https://khaneliman.github.io/khanelivim/. The published site
always tracks main. For the docs of a pinned revision, use nix run .#docs
from that revision or install the docs package.
Notes
- The option reference covers the
khanelivim.*surface. It does not attempt to duplicate the entire upstreamplugins.*universe from Nixvim. - The profile matrix is intentionally curated. It documents the workflow surface you actually care about instead of dumping every option.
fullcurrently reflects the raw component defaults from the option modules.debugfollows the full/default surface and layers debug-focused overrides on top.