Man pages in mdoc(7) or equivalent #982
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#982
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
The man pages currently shipped with Lix (which we inherited from Nix) are lower quality than they could be because they are conversions from markdown which is less expressive than the (domain specific) target languange mdoc.
Describe the solution you'd like
Convert the existing Lix man pages to mdoc.
Describe alternatives you've considered
Other consideration
For the manual, we may need markdown versions of the man pages. mandoc supports converting to markdown, but doesn't support certain features (e.g. tables). It also doesn't take advantage of CommonMark, e.g. I don't think there are proper definition lists.
why not use nixos-render-docs? that has most of the features we'd want and can render to manpages
@pennae wrote in #982 (comment):
I haven't interacted with its manual page rendering compatibility yet nor did I know about it. So I can't really comment on it.
I do know that nixos-render-docs explicitly does not make any stability guarantees and is strictly designed for use in Nixpkgs. I'm not sure if it is necessarily wise to depend on this in Lix. It would mean imposing some stability requirements on nixos-render-docs after the fact (for the sake of historical Lix versions). Also it would require distributors other than Nixpkgs to package nixos-render-docs if they want to have Lix with man pages. I'm not sure how “packageable” nixos-render-docs would be for others.
we wrote nrd from scratch, and it's not all that big :) forking it and occasionally updating it to the nixpkgs version if new features appear is fully plausible. once we've forked it and are using it successfully for manual stuff it could even become a shared project that isn't tied strictly to nixpkgs (which it so far has been only for convenience reasons anyway)
cc @helle as interested party to docs