nix-community.nixvim/flake
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
..
dev flake/dev/flake.lock: Update 2025-05-19 00:26:01 +02:00
flake-modules flake/auto: nameFunction default to lib.id 2025-01-20 15:11:39 +00:00
default.nix flake: partition dev dependencies 2025-02-23 17:23:57 +00:00
legacy-packages.nix flake: add nixvimConfigurations flake-parts module 2025-01-19 17:47:17 +00:00
lib.nix lib: export evalNixvim as top-level alias 2025-01-20 05:23:05 +00:00
nixvim-configurations.nix flake: add nixvimConfigurations flake-parts module 2025-01-19 17:47:17 +00:00
overlays.nix flake-modules -> flake 2025-01-19 12:56:24 +01:00
packages.nix docs/lib: init 2025-05-19 00:19:56 +01:00
templates.nix flake: partition dev dependencies 2025-02-23 17:23:57 +00:00
wrappers.nix flake: remove unused 'inputs' 2025-02-07 23:21:35 +01:00