nixdoc
nixdoc copied to clipboard
feat: DocBook -> CommonMark
Output is CommonMark with some syntax extensions:
- DD lists
- heading anchors
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/happy-docsgiving/10214/28
@ryantm this PR looks ready isn't it?
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2023-03-14-documentation-team-meeting-notes-32/26351/1
we would like to propose that this PR be updated to support examples as in https://github.com/NixOS/nixpkgs/pull/220116, which is very close to how pandoc represented examples (but can actually reconstruct a docbook title tag). that's the update discussed in the docs team meeting notes.
@infinisil you're looking into updating this right?
@ryantm this PR looks ready isn't it?
I've been testing the output of it in my version of the Nixpkgs manual for over a year now. https://ryantm.github.io/nixpkgs/functions/library/asserts/#sec-functions-library-asserts
So, yes, probably.
I propose we merge this and address any further needs in follow-up PRs, since a) @ryantm has tested it for a long time and it works; and b) he's looking for new maintainers, so this could be a nice handover line.