mirror of
https://git.gay/pyrox/aux-docs
synced 2024-11-23 00:17:56 +00:00
nixpkgs-manual updates
This commit is contained in:
parent
160ac2f709
commit
a9bba35ea2
|
@ -37,6 +37,7 @@ let
|
||||||
) opt.declarations;
|
) opt.declarations;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
optionsJSONFile = "${optionsDoc.optionsJSON}/share/doc/nixos/options.json";
|
||||||
in
|
in
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "nixpkgs-manual-md";
|
name = "nixpkgs-manual-md";
|
||||||
|
@ -62,7 +63,7 @@ stdenvNoCC.mkDerivation {
|
||||||
nixos-render-docs -j $NIX_BUILD_CORES options commonmark \
|
nixos-render-docs -j $NIX_BUILD_CORES options commonmark \
|
||||||
--manpage-urls ./manpage-urls.json \
|
--manpage-urls ./manpage-urls.json \
|
||||||
--revision ${inputs.nixpkgs.rev} \
|
--revision ${inputs.nixpkgs.rev} \
|
||||||
${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./options.md
|
${optionsJSONFile} ./options.md
|
||||||
substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")"
|
substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")"
|
||||||
|
|
||||||
mv ./functions/library.md.in ./functions/library.md
|
mv ./functions/library.md.in ./functions/library.md
|
||||||
|
@ -88,6 +89,7 @@ stdenvNoCC.mkDerivation {
|
||||||
mv stdenv.md out/stdenv/index.md
|
mv stdenv.md out/stdenv/index.md
|
||||||
mv using out/using-nixpkgs
|
mv using out/using-nixpkgs
|
||||||
mv using-nixpkgs.md out/using-nixpkgs/index.md
|
mv using-nixpkgs.md out/using-nixpkgs/index.md
|
||||||
|
cp ${optionsJSONFile} out/options.json
|
||||||
pushd out
|
pushd out
|
||||||
find . -type f -exec perl -pi -e 's/\s*:::{.note}\n/!!! note\n\ \ /' {} \;
|
find . -type f -exec perl -pi -e 's/\s*:::{.note}\n/!!! note\n\ \ /' {} \;
|
||||||
find . -type f -exec perl -pi -e 's/\s*:::{.warning}\n/!!! warning\n\ \ /' {} \;
|
find . -type f -exec perl -pi -e 's/\s*:::{.warning}\n/!!! warning\n\ \ /' {} \;
|
||||||
|
|
Loading…
Reference in a new issue