Skip to content

Nix/fix mkdocs#2053

Merged
picnoir merged 4 commits into
developfrom
nix/fix-mkdocs
Feb 19, 2026
Merged

Nix/fix mkdocs#2053
picnoir merged 4 commits into
developfrom
nix/fix-mkdocs

Conversation

@picnoir
Copy link
Copy Markdown
Collaborator

@picnoir picnoir commented Feb 17, 2026

What kind of change does this PR introduce?

  • Introduces a serve-nix-doc command to the devshell to interactively work on the mkdocs documentation site.
  • Link orphan pages.
  • Fix various markdown format issues.
  • Remove dead links.

Superceding #2052

Adding the documentation virtual env to the devshell packages creates
a conflict on pygmentize with the existing python viruatlenv.

       > pkgs.buildEnv error: two given paths contain a conflicting subpath:
       >   `/nix/store/kvryivzraaa1cw1j3r9zslng9n8nf8lw-python3-3.13.11-env/bin/pygmentize' and
       >   `/nix/store/yag41lb6wzdj5vh0ikjf072ycf546cc2-python3-3.13.11-env/bin/pygmentize'
       > hint: this may be caused by two different versions of the same package in buildEnv's `paths` parameter
       > hint: `pkgs.nix-diff` can be used to compare derivations

Instead of authorizing the conflicts in this devshell buildEnv, we
prefer hiding the doc devenv in a separate command to make sure
nothing unexpectally breaks on a nixpkgs update in the future.
The list rendering was broken in a few places. Adding some minor
visual tweaks as well.
mkdocs do not support linking to source files living outside of the
doc repository. Replacing these dead links with quoted paths.
@picnoir picnoir requested review from a team as code owners February 17, 2026 15:11
@picnoir picnoir mentioned this pull request Feb 17, 2026
Copy link
Copy Markdown
Collaborator

@yvan-sraka yvan-sraka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the serve-nix-doc command is a nice addition :)

@picnoir picnoir enabled auto-merge February 18, 2026 08:26
@picnoir picnoir added this pull request to the merge queue Feb 19, 2026
Merged via the queue into develop with commit 57a41b6 Feb 19, 2026
64 of 65 checks passed
@picnoir picnoir deleted the nix/fix-mkdocs branch February 19, 2026 05:47
encima pushed a commit that referenced this pull request Feb 23, 2026
* fix: nix/doc build from devshell

Adding the documentation virtual env to the devshell packages creates
a conflict on pygmentize with the existing python viruatlenv.

       > pkgs.buildEnv error: two given paths contain a conflicting subpath:
       >   `/nix/store/kvryivzraaa1cw1j3r9zslng9n8nf8lw-python3-3.13.11-env/bin/pygmentize' and
       >   `/nix/store/yag41lb6wzdj5vh0ikjf072ycf546cc2-python3-3.13.11-env/bin/pygmentize'
       > hint: this may be caused by two different versions of the same package in buildEnv's `paths` parameter
       > hint: `pkgs.nix-diff` can be used to compare derivations

Instead of authorizing the conflicts in this devshell buildEnv, we
prefer hiding the doc devenv in a separate command to make sure
nothing unexpectally breaks on a nixpkgs update in the future.

* fix: nix/doc various nix doc md format issues

The list rendering was broken in a few places. Adding some minor
visual tweaks as well.

* fix: nix/doc add links to orphan pages

* fix: nix/doc, remove dead links

mkdocs do not support linking to source files living outside of the
doc repository. Replacing these dead links with quoted paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants