docs: find docbook rng from doc-support
This commit is contained in:
parent
d11f5a9d15
commit
e65c2c6672
@ -25,8 +25,8 @@ clean:
|
|||||||
rm -rf ./out/ ./highlightjs
|
rm -rf ./out/ ./highlightjs
|
||||||
|
|
||||||
.PHONY: validate
|
.PHONY: validate
|
||||||
validate: manual-full.xml
|
validate: manual-full.xml doc-support/result
|
||||||
jing "$$RNG" manual-full.xml
|
jing doc-support/result/docbook.rng manual-full.xml
|
||||||
|
|
||||||
out/html/index.html: manual-full.xml style.css highlightjs
|
out/html/index.html: manual-full.xml style.css highlightjs
|
||||||
mkdir -p out/html
|
mkdir -p out/html
|
||||||
|
@ -15,7 +15,6 @@ in pkgs.stdenv.mkDerivation {
|
|||||||
# otherwise they won't reapply :)
|
# otherwise they won't reapply :)
|
||||||
HIGHLIGHTJS = pkgs.documentation-highlighter;
|
HIGHLIGHTJS = pkgs.documentation-highlighter;
|
||||||
XSL = "${pkgs.docbook_xsl_ns}/xml/xsl";
|
XSL = "${pkgs.docbook_xsl_ns}/xml/xsl";
|
||||||
RNG = "${pkgs.docbook5}/xml/rng/docbook/docbook.rng";
|
|
||||||
XMLFORMAT_CONFIG = ../nixos/doc/xmlformat.conf;
|
XMLFORMAT_CONFIG = ../nixos/doc/xmlformat.conf;
|
||||||
xsltFlags = lib.concatStringsSep " " [
|
xsltFlags = lib.concatStringsSep " " [
|
||||||
"--param section.autolabel 1"
|
"--param section.autolabel 1"
|
||||||
|
@ -10,6 +10,9 @@ in pkgs.runCommand "doc-support" {}
|
|||||||
cd result
|
cd result
|
||||||
ln -s ${locationsXml} ./function-locations.xml
|
ln -s ${locationsXml} ./function-locations.xml
|
||||||
ln -s ${functionDocs} ./function-docs
|
ln -s ${functionDocs} ./function-docs
|
||||||
|
|
||||||
|
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
|
||||||
|
|
||||||
echo -n "${version}" > ./version
|
echo -n "${version}" > ./version
|
||||||
)
|
)
|
||||||
mv result $out
|
mv result $out
|
||||||
|
Loading…
Reference in New Issue
Block a user