summaryrefslogtreecommitdiffstats
path: root/_build
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-07 14:33:12 +0200
committerLoïc Hoguin <[email protected]>2019-10-07 14:33:12 +0200
commit31cedd105e5f6ecfbfcb925d4703cdf7b5ae114f (patch)
tree9f1eea9625140c459b39b394408bd37991f8096c /_build
parent2502d09d86df110cafdf830097de6a095929ced2 (diff)
downloadninenines.eu-31cedd105e5f6ecfbfcb925d4703cdf7b5ae114f.tar.gz
ninenines.eu-31cedd105e5f6ecfbfcb925d4703cdf7b5ae114f.tar.bz2
ninenines.eu-31cedd105e5f6ecfbfcb925d4703cdf7b5ae114f.zip
Fix linking to the manual from the guide
Diffstat (limited to '_build')
-rw-r--r--_build/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/_build/Makefile b/_build/Makefile
index 8d28e443..2edc1ab6 100644
--- a/_build/Makefile
+++ b/_build/Makefile
@@ -25,6 +25,8 @@ tmp: clean
# For substitution.
comma := ,
+quote := "
+# Necessary comment to fix syntax highlighting: "
define docs-version-target
@@ -59,9 +61,9 @@ docs-$1-$2: tmp/$1
echo >> content/docs/en/$1/$3/guide/`basename $$$$f`; \
sed '1,/^$$$$/d' $$$$f | sed 's/^=== /== /' \
| sed 's/xref:/link:..\//g' | sed 's/image::/image::..\//g' \
- | sed 's/link:man:$1[(]7[)]/link:..\/$1_app/g' \
+ | sed 's/link:man:$1[(]7[)]/link:\/docs\/en\/$1\/$3\/manual\/$1_app/g' \
| sed 's/\(link:man:[a-z0-9_]*\):/\1./g' \
- | sed 's/link:man:\([a-z0-9_.]*\)[1-9()]*/link:..\/\1/g' \
+ | sed 's/link:man:\([a-z0-9_.]*\)[1-9()]*/link:\/docs\/en\/$1\/$3\/manual\/\1/g' \
>> content/docs/en/$1/$3/guide/`basename $$$$f`; \
done; \
rm tmp/$1/doc/src/guide/book.asciidoc.bak; \
@@ -115,7 +117,7 @@ endef
define docs-target
$(eval include data/projects/$1.toml)
-$(eval VERSIONS := $(subst $(comma),,$(subst ],,$(subst [,,$(versions)))))
+$(eval VERSIONS := $(subst $(quote),,$(subst $(comma),,$(subst ],,$(subst [,,$(versions))))))
$(eval BRANCHES := $(subst $(comma),,$(subst ],,$(subst [,,$(branches)))))
$(eval TARGETS := $(shell echo "1 2 3 4 5 6 7 8 9" | cut -d' ' -f 1-$(words $(VERSIONS))))