1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

docs: use relative paths to static resources

Fixes #4753
This commit is contained in:
Robert Helgesson 2023-12-09 13:20:54 +01:00 committed by Mikilio
parent 6545c2216d
commit a15c8a5839
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -32,17 +32,19 @@ in stdenv.mkDerivation {
--replace \
'@OPTIONS_JSON@' \
${home-manager-options.nix-darwin}/share/doc/nixos/options.json
cp ${nmd}/static/style.css out/style.css
cp -t out/highlightjs ${nmd}/static/highlightjs/tomorrow-night.min.css
cp ${./highlight-style.css} out/highlightjs/highlight-style.css
nixos-render-docs manual html \
--manpage-urls ./manpage-urls.json \
--revision ${lib.trivial.revisionWithDefault revision} \
--stylesheet ${nmd}/static/style.css \
--stylesheet $out/share/doc/home-manager/highlightjs/tomorrow-night.min.css \
--stylesheet $out/share/doc/home-manager/highlightjs/highlight-style.css \
--script $out/share/doc/home-manager/highlightjs/highlight.pack.js \
--script $out/share/doc/home-manager/highlightjs/loader.js \
--stylesheet style.css \
--stylesheet highlightjs/tomorrow-night.min.css \
--stylesheet highlightjs/highlight-style.css \
--script highlightjs/highlight.pack.js \
--script highlightjs/loader.js \
--toc-depth 1 \
--section-toc-depth 1 \
manual.md \