Open infinisil opened 1 year ago
- how are anchor-level redirects handled in the Nixpkgs and NixOS manuals?
basically, not. the docbook toolchain did not have (or never used) any facility to redirect from old anchors to new locations, and the nixos manual as produced by nixos-render-docs inherited that inability. it should be fairly easy to add support for that into either with a bit of javascript, although we'd probably want to integrate that into nixos-render-docs at least somewhat to ensure that redirected anchors aren't reused.
Would it make sense to adopt the script from the Nix manual? Quite some thought went into that by previous maintainers, and I invested more effort to make it as readable as possible.
sure, why not. and even if it proves to not be perfect for our use cases in the nixos/nixpkgs manuals, it's almost certainly a better place to start from than a void :)
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2023-04-04-documentation-team-meeting-notes-38/27000/1
@pennae Added a Nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/224808
To take ownership of a manual section, we should update CODEOWNERS
or maintainers.nix
or other, once the appropriate infrastructure is in place: https://github.com/NixOS/nix.dev/issues/543
If you're interested in working on this task, reply in this issue to make sure the work isn't duplicated!
What
A section to describe what it means to take ownership over a manual section.
Key points:
How