docs: find docbook rng from doc-support

This commit is contained in:
Graham Christensen 2019-07-04 08:30:13 -04:00
parent d11f5a9d15
commit e65c2c6672
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C
3 changed files with 5 additions and 3 deletions

View File

@ -25,8 +25,8 @@ clean:
rm -rf ./out/ ./highlightjs
.PHONY: validate
validate: manual-full.xml
jing "$$RNG" manual-full.xml
validate: manual-full.xml doc-support/result
jing doc-support/result/docbook.rng manual-full.xml
out/html/index.html: manual-full.xml style.css highlightjs
mkdir -p out/html

View File

@ -15,7 +15,6 @@ in pkgs.stdenv.mkDerivation {
# otherwise they won't reapply :)
HIGHLIGHTJS = pkgs.documentation-highlighter;
XSL = "${pkgs.docbook_xsl_ns}/xml/xsl";
RNG = "${pkgs.docbook5}/xml/rng/docbook/docbook.rng";
XMLFORMAT_CONFIG = ../nixos/doc/xmlformat.conf;
xsltFlags = lib.concatStringsSep " " [
"--param section.autolabel 1"

View File

@ -10,6 +10,9 @@ in pkgs.runCommand "doc-support" {}
cd result
ln -s ${locationsXml} ./function-locations.xml
ln -s ${functionDocs} ./function-docs
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
echo -n "${version}" > ./version
)
mv result $out