-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos-manual: start gradual conversion to markdown #106847
Conversation
Basically copied from the nixpkgs manual infrastructure. Converted 'installation/upgrading' as a test. I guess we should find a way to represent the 'xref linkend' links to 'proper' markdown as well
This approach may be problematic because NixOS needs to build it's own manual as part of rebuilds (I think). Cc @jtojnar |
That is right, NixOS systems depend on NixOS manual by default so we would have to introduce Also, I do not think it is really possible to achieve the closure size of Since NixOS/rfcs#72, was not concrete enough, I am afraid we cannot really do much until the expectations for building NixOS manual are settled. |
OK, I guess this change is premature :). Let's gather some experience converting the nixpkgs manual, and revisit this later.
Random thought: in the "in case of emergency" situations where this is useful, I'd be happy reading the raw markdown version... |
Given that Markdown is supposed to be a light-weight, trivial format, it would be quite sad if it required adding gigabytes and hours of build-time dependencies... Of course, we could disable building the manual by default (see #83871) in which case the issue would be moot. |
Well, the issue is that that supposition is at odds with requirements for complex technical documentation documents. That is why CommonMark/Markdown is almost never used as is and most implementations extend it. Even NixOS/rfcs#72, vague as it is on other implementation details, acknowledges the necessity of extensions. |
@raboof We can still move forward with the conversion without including Pandoc in the closure, we just need to store the generated Docbook XML files in the git repository. I was thinking there could be a separate folder for these generated documents so we don't accidentally edit them manually. |
Copied from #107444 (comment):
|
Basically copied from the nixpkgs manual infrastructure.
Converted 'installation/upgrading' as a test.
I guess we should find a way to represent the 'xref linkend'
links to 'proper' markdown as well
Motivation for this change
Wanted to document creating udev rules to load kernel modules when certain USB devices are plugged in, but didn't really want to deal with docbook, so shaved this yak first ;)
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)/cc @ryantm