nix-community.nixvim/docs
Matt Sturgeon dfaea5982e
docs/lib: init
Generate reference docs for functions that have RFC145 style
doc-comments.

1. function locations

  `docs/lib/function-locations.nix` scans nixvim's extended lib,
  extracting "position entries" via `unsafeGetAttrPos`.

  This is then converted into a nixdoc `locations.json` map of
  "function name" → "markdown location string".

2. mdbook menu

  `docs/lib/menu.nix` renders a mdbook menu representing all page
  entries.

3. markdown pages

  `docs/lib/default.nix` expects a set of "page entries", which come
  from `docs/lib/pages.nix` by default. It passes this data to
  `function-locations.nix` and `menu.nix`, and uses it internally to
  render markdown pages.

  Page entries can contain a `file` to render using `nixdoc`, and also a
  `markdown` attribute which will be included at the top of the docs.

  Additionally, a `title` can be included. This forms the heading
  `$name: $title`, where `name` is derived from the page's attr-path.

  See https://github.com/nix-community/nixdoc
2025-05-19 00:19:56 +01:00
..
fix-links docs/fix-links: generalise checks for links targeting . 2025-02-25 21:47:17 +00:00
gfm-alerts-to-admonitions docs: Create a markdown-it plugin 2024-09-13 12:59:27 +01:00
lib docs/lib: init 2025-05-19 00:19:56 +01:00
man docs/man: minor cleanup 2025-05-17 03:30:13 +01:00
mdbook docs/mdbook: add page ToC 2025-05-17 02:24:00 +01:00
platforms docs: move wrapper options to dedicated sub-pages 2024-10-24 18:32:39 +01:00
user-configs config-examples: add cirius-nix (#3307) 2025-05-09 10:23:35 +00:00
user-guide Fix typo: nix lists are space separated, not comma separated 2025-04-23 21:11:52 -07:00
0001-nixos-render-docs-Output-GFM-admonition.patch docs: Support GFM style admonitions in option descriptions 2024-09-13 13:03:23 +01:00
0002-nixos-render-docs-Support-gfm-style-admonitions.patch docs: Support GFM style admonitions in option descriptions 2024-09-13 13:03:23 +01:00
default.nix docs/lib: init 2025-05-19 00:19:56 +01:00
pkgs.nix docs: don't set allowUnfree 2025-01-25 19:16:09 +00:00