mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 12:09:48 +01:00
docs: use --subst-var-by
instead of --replace-fair
This commit is contained in:
parent
ba9449c644
commit
67927b5f65
1 changed files with 7 additions and 9 deletions
|
@ -25,18 +25,18 @@ stdenv.mkDerivation {
|
||||||
${documentation-highlighter}/mono-blue.css \
|
${documentation-highlighter}/mono-blue.css \
|
||||||
${documentation-highlighter}/loader.js
|
${documentation-highlighter}/loader.js
|
||||||
|
|
||||||
cp ${./static/style.css} out/style.css
|
|
||||||
|
|
||||||
substituteInPlace ./options.md \
|
substituteInPlace ./options.md \
|
||||||
--replace-fail \
|
--subst-var-by \
|
||||||
'@OPTIONS_JSON@' \
|
OPTIONS_JSON \
|
||||||
${options.neovim-flake}/share/doc/nixos/options.json
|
${options.neovim-flake}/share/doc/nixos/options.json
|
||||||
|
|
||||||
substituteInPlace ./manual.md \
|
substituteInPlace ./manual.md \
|
||||||
--replace-fail \
|
--subst-var-by \
|
||||||
'@NVF_VERSION@' \
|
NVF_VERSION \
|
||||||
${revision}
|
${revision}
|
||||||
|
|
||||||
|
# copy stylesheet
|
||||||
|
cp ${./static/style.css} out/style.css
|
||||||
|
|
||||||
# copy release notes
|
# copy release notes
|
||||||
cp -vr ${./release-notes} release-notes
|
cp -vr ${./release-notes} release-notes
|
||||||
|
@ -45,11 +45,9 @@ stdenv.mkDerivation {
|
||||||
nixos-render-docs manual html \
|
nixos-render-docs manual html \
|
||||||
--manpage-urls ./manpage-urls.json \
|
--manpage-urls ./manpage-urls.json \
|
||||||
--revision ${lib.trivial.revisionWithDefault revision} \
|
--revision ${lib.trivial.revisionWithDefault revision} \
|
||||||
|
--stylesheet style.css \
|
||||||
--script highlightjs/highlight.pack.js \
|
--script highlightjs/highlight.pack.js \
|
||||||
--script highlightjs/loader.js \
|
--script highlightjs/loader.js \
|
||||||
--stylesheet style.css \
|
|
||||||
--stylesheet highlightjs/tomorrow-night.min.css \
|
|
||||||
--stylesheet highlightjs/highlight-style.css \
|
|
||||||
--toc-depth 2 \
|
--toc-depth 2 \
|
||||||
--section-toc-depth 1 \
|
--section-toc-depth 1 \
|
||||||
manual.md \
|
manual.md \
|
||||||
|
|
Loading…
Reference in a new issue