-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(doc): replace xsltproc/fop by asciidoctor-pdf
- Loading branch information
Showing
18 changed files
with
96 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
all: $(patsubst %.asciidoc,%.pdf,$(wildcard *.asciidoc)) | ||
all: pdf html | ||
|
||
%.pdf : %.asciidoc | ||
asciidoc -a docinfo1 -b docbook -d book -o $<.docbook $< | ||
xsltproc -o $<.fo docbook/xsl/sogo-fo.xsl $<.docbook | ||
fop -c fonts/fop-config.xml $<.fo -pdf $@ | ||
ASCIIDOCS = $(wildcard SOGo*.asciidoc) | ||
PDFS = $(patsubst %.asciidoc,%.pdf, $(ASCIIDOCS)) | ||
HTML = $(patsubst %.asciidoc,%.html, $(ASCIIDOCS)) | ||
|
||
%.pdf: %.asciidoc asciidoctor-pdf-theme.yml $(wildcard includes/*.asciidoc) | ||
asciidoctor-pdf \ | ||
-a pdf-fontsdir=fonts \ | ||
-a release_version=`git describe --abbrev=0 --tags | cut -d'-' -f 2` \ | ||
-a release_month=`date +%B` \ | ||
-a pdf-theme=asciidoctor-pdf-theme.yml \ | ||
--trace \ | ||
$< | ||
|
||
%.html: %.asciidoc $(wildcard includes/*.asciidoc) | ||
asciidoctor \ | ||
-D . \ | ||
-a release_version=`git describe --abbrev=0 --tags | cut -d'-' -f 2` \ | ||
-a release_month=`date +%B` \ | ||
-n \ | ||
$< | ||
|
||
pdf: $(PDFS) | ||
|
||
html: $(HTML) | ||
|
||
clean: | ||
rm -f *.asciidoc.fo *.asciidoc.docbook *.pdf | ||
rm -f *.pdf *.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
Documentation/SOGoMozillaThunderbirdConfigurationGuide.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
Documentation/SOGoOutlookConnectorConfigurationGuide.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.