forked from mirrors/nixpkgs
Merge pull request #55040 from tazjin/docs/fix-manual-makefile
Fix manual Makefile by including function doc generation
This commit is contained in:
commit
3172cc61f2
14
doc/Makefile
14
doc/Makefile
|
@ -21,7 +21,7 @@ fix-misc-xml:
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml
|
rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml functions/library/generated
|
||||||
rm -rf ./out/ ./highlightjs
|
rm -rf ./out/ ./highlightjs
|
||||||
|
|
||||||
.PHONY: validate
|
.PHONY: validate
|
||||||
|
@ -71,16 +71,22 @@ highlightjs:
|
||||||
cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
|
cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
|
||||||
|
|
||||||
|
|
||||||
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml *.xml **/*.xml **/**/*.xml
|
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
|
||||||
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
|
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
|
||||||
|
|
||||||
.version:
|
.version:
|
||||||
nix-instantiate --eval \
|
nix-instantiate --eval \
|
||||||
-E '(import ../lib).version' > .version
|
-E '(import ../lib).version' > .version
|
||||||
|
|
||||||
|
function_locations := $(shell nix-build --no-out-link ./lib-function-locations.nix)
|
||||||
|
|
||||||
functions/library/locations.xml:
|
functions/library/locations.xml:
|
||||||
nix-build ./lib-function-locations.nix \
|
ln -s $(function_locations) ./functions/library/locations.xml
|
||||||
--out-link ./functions/library/locations.xml
|
|
||||||
|
functions/library/generated:
|
||||||
|
nix-build ./lib-function-docs.nix \
|
||||||
|
--arg locationsXml $(function_locations)\
|
||||||
|
--out-link ./functions/library/generated
|
||||||
|
|
||||||
%.section.xml: %.section.md
|
%.section.xml: %.section.md
|
||||||
pandoc $^ -w docbook+smart \
|
pandoc $^ -w docbook+smart \
|
||||||
|
|
Loading…
Reference in a new issue