mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
* gnu/packages/package-management.scm (nix): Update to 2.25.5. [inputs]: Replace libgit2 by libgit2-1.9. Add libblake3. * gnu/packages/patches/nix-dont-build-html-doc.diff: Update accordingly. Change-Id: I6f585b463899942bf8d6b33be7a37e7036ec0324
61 lines
2.4 KiB
Diff
61 lines
2.4 KiB
Diff
"--enable-doc-gen" configure flag will enable HTML document generation that requires mdbook.
|
|
We can't simply disable it because we need manpages.
|
|
|
|
Author: Zhu Zihao <all_but_last@163.com>
|
|
|
|
--- a/doc/manual/local.mk
|
|
+++ b/doc/manual/local.mk
|
|
@@ -166,21 +166,6 @@ $(d)/source/SUMMARY-rl-next.md: $(d)/source/release-notes/rl-next.md
|
|
true > $@; \
|
|
fi
|
|
|
|
-# Generate the HTML manual.
|
|
-.PHONY: manual-html
|
|
-manual-html: $(docdir)/manual/index.html
|
|
-
|
|
-# Open the built HTML manual in the default browser.
|
|
-manual-html-open: $(docdir)/manual/index.html
|
|
- @echo " OPEN " $<; \
|
|
- xdg-open $< \
|
|
- || open $< \
|
|
- || { \
|
|
- echo "Could not open the manual in a browser. Please open '$<'" >&2; \
|
|
- false; \
|
|
- }
|
|
-install: $(docdir)/manual/index.html
|
|
-
|
|
# Generate 'nix' manpages.
|
|
.PHONY: manpages
|
|
manpages: $(mandir)/man1/nix3-manpages
|
|
@@ -206,31 +191,3 @@ doc/manual/generated/man1/nix3-manpages: $(d)/source/command-ref/new-cli
|
|
rm $$tmpFile; \
|
|
done
|
|
@touch $@
|
|
-
|
|
-# the `! -name 'documentation.md'` filter excludes the one place where
|
|
-# `@docroot@` is to be preserved for documenting the mechanism
|
|
-# FIXME: maybe contributing guides should live right next to the code
|
|
-# instead of in the manual
|
|
-$(docdir)/manual/index.html: $(MANUAL_SRCS) $(d)/book.toml $(d)/anchors.jq $(d)/custom.css $(d)/source/SUMMARY.md $(d)/source/store/types $(d)/source/command-ref/new-cli $(d)/source/development/experimental-feature-descriptions.md $(d)/source/command-ref/conf-file.md $(d)/source/language/builtins.md $(d)/source/release-notes/rl-next.md $(d)/source/figures $(d)/source/favicon.png $(d)/source/favicon.svg
|
|
- $(trace-gen) \
|
|
- tmp="$$(mktemp -d)"; \
|
|
- cp -r doc/manual "$$tmp"; \
|
|
- find "$$tmp" -name '*.md' | while read -r file; do \
|
|
- $(call process-includes,$$file,$$file); \
|
|
- done; \
|
|
- find "$$tmp" -name '*.md' ! -name 'documentation.md' | while read -r file; do \
|
|
- docroot="$$(realpath --relative-to="$$(dirname "$$file")" $$tmp/manual/source)"; \
|
|
- sed -i "s,@docroot@,$$docroot,g" "$$file"; \
|
|
- done; \
|
|
- set -euo pipefail; \
|
|
- ( \
|
|
- cd "$$tmp/manual"; \
|
|
- RUST_LOG=warn \
|
|
- MDBOOK_SUBSTITUTE_SEARCH=$(d)/source \
|
|
- mdbook build -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \
|
|
- | { grep -Fv "because fragment resolution isn't implemented" || :; } \
|
|
- ); \
|
|
- rm -rf "$$tmp/manual"
|
|
- @rm -rf $(DESTDIR)$(docdir)/manual
|
|
- @mv $(DESTDIR)$(docdir)/manual.tmp/html $(DESTDIR)$(docdir)/manual
|
|
- @rm -rf $(DESTDIR)$(docdir)/manual.tmp
|