docs: get XSL from build / symlink
This commit is contained in:
parent
e65c2c6672
commit
35262ba6a7
10
doc/Makefile
10
doc/Makefile
@ -28,12 +28,12 @@ clean:
|
|||||||
validate: manual-full.xml doc-support/result
|
validate: manual-full.xml doc-support/result
|
||||||
jing doc-support/result/docbook.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: doc-support/result manual-full.xml style.css highlightjs
|
||||||
mkdir -p out/html
|
mkdir -p out/html
|
||||||
xsltproc ${xsltFlags} \
|
xsltproc ${xsltFlags} \
|
||||||
--nonet --xinclude \
|
--nonet --xinclude \
|
||||||
--output $@ \
|
--output $@ \
|
||||||
"$$XSL/docbook/xhtml/docbook.xsl" \
|
doc-support/result/xsl/docbook/xhtml/docbook.xsl \
|
||||||
./manual-full.xml
|
./manual-full.xml
|
||||||
|
|
||||||
mkdir -p out/html/highlightjs/
|
mkdir -p out/html/highlightjs/
|
||||||
@ -43,20 +43,20 @@ out/html/index.html: manual-full.xml style.css highlightjs
|
|||||||
cp ./style.css out/html/style.css
|
cp ./style.css out/html/style.css
|
||||||
|
|
||||||
mkdir -p out/html/images/callouts
|
mkdir -p out/html/images/callouts
|
||||||
cp "$$XSL/docbook/images/callouts/"*.svg out/html/images/callouts/
|
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/html/images/callouts/
|
||||||
chmod u+w -R out/html/
|
chmod u+w -R out/html/
|
||||||
|
|
||||||
out/epub/manual.epub: manual-full.xml
|
out/epub/manual.epub: manual-full.xml
|
||||||
mkdir -p out/epub/scratch
|
mkdir -p out/epub/scratch
|
||||||
xsltproc ${xsltFlags} --nonet \
|
xsltproc ${xsltFlags} --nonet \
|
||||||
--output out/epub/scratch/ \
|
--output out/epub/scratch/ \
|
||||||
"$$XSL/docbook/epub/docbook.xsl" \
|
doc-support/result/xsl/docbook/epub/docbook.xsl \
|
||||||
./manual-full.xml
|
./manual-full.xml
|
||||||
|
|
||||||
cp ./overrides.css out/epub/scratch/OEBPS
|
cp ./overrides.css out/epub/scratch/OEBPS
|
||||||
cp ./style.css out/epub/scratch/OEBPS
|
cp ./style.css out/epub/scratch/OEBPS
|
||||||
mkdir -p out/epub/scratch/OEBPS/images/callouts/
|
mkdir -p out/epub/scratch/OEBPS/images/callouts/
|
||||||
cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
|
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/epub/scratch/OEBPS/images/callouts/
|
||||||
echo "application/epub+zip" > mimetype
|
echo "application/epub+zip" > mimetype
|
||||||
zip -0Xq "out/epub/manual.epub" mimetype
|
zip -0Xq "out/epub/manual.epub" mimetype
|
||||||
rm mimetype
|
rm mimetype
|
||||||
|
@ -14,7 +14,6 @@ in pkgs.stdenv.mkDerivation {
|
|||||||
# $ nix-shell --run "make clean all"
|
# $ nix-shell --run "make clean all"
|
||||||
# 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";
|
|
||||||
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"
|
||||||
|
@ -12,6 +12,7 @@ in pkgs.runCommand "doc-support" {}
|
|||||||
ln -s ${functionDocs} ./function-docs
|
ln -s ${functionDocs} ./function-docs
|
||||||
|
|
||||||
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
|
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
|
||||||
|
ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl
|
||||||
|
|
||||||
echo -n "${version}" > ./version
|
echo -n "${version}" > ./version
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user