mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
documentation: automate creation of web facing manuals
We already had the script to post-process the HTML files in the repo, but we didn't automate use of that script in the Makefile. The .wp suffix is misleading and historical (we no longer us WordPress), but it's what I am used to and I didn't come up with something more obvious or better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a651bb4550
commit
5595a70bd5
1 changed files with 11 additions and 0 deletions
|
@ -34,6 +34,17 @@ $(OUT)%.html: %.txt
|
|||
$(ASCIIDOC) -a toc -a toclevels=3 -a themedir=$(PWD) -a theme=$(THEME) -o $@ $< || \
|
||||
cp $(<:%.txt=%.html.git) $@
|
||||
|
||||
# for the web facing version of the desktop manual, just use the post-processing script
|
||||
user-manual.html.wp: user-manual.html
|
||||
bash ../scripts/prep-manual.sh $<
|
||||
|
||||
# for the web facing version of the mobile manual, re-create the HTML with only one level in
|
||||
# the table of context and then post process
|
||||
mobile-manual-v3.html.wp: mobile-manual-v3.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=1 -a themedir=$(PWD) -a theme=$(THEME) -o $(<:%.txt=%.html.tmp) $< && \
|
||||
bash ../scripts/prep-manual.sh $(<:%.txt=%.html.tmp) && \
|
||||
mv $(<:%.txt=%.html.tmp.wp) $@
|
||||
|
||||
# Alternatively::
|
||||
$(OUT)$(DOCNAME).xhtml: $(DOCSOURCE)
|
||||
$(A2X) --icons -f xhtml $<
|
||||
|
|
Loading…
Reference in a new issue