-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
harmonize i/e formats and improve doc
- Loading branch information
1 parent
aacdf48
commit 016dabb
Showing
35 changed files
with
1,902 additions
and
1,602 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,4 +1,5 @@ | ||
docs/documentation.html | ||
docs/*.html | ||
docs/gh-pages-site/ | ||
|
||
cmake_build/ | ||
qmake_build/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
.PHONY: all clean | ||
html := $(patsubst %.adoc,%.html,$(wildcard *.adoc)) | ||
html := $(subst README.html,documentation.html,$(html)) | ||
webhtml := $(patsubst %,gh-pages-site/%,$(html)) | ||
examples := $(wildcard example_data/*.txt) | ||
|
||
all: documentation.html README.rst example_data/example_documents.json | ||
.PHONY: all clean html | ||
|
||
documentation.html: documentation.md | ||
pandoc $< -s --toc -N -o $@ | ||
all: $(html) $(webhtml) example_data/example_documents.json | ||
|
||
README.rst: documentation.md | ||
pandoc documentation.md -t rst --toc -s | \ | ||
sed 's/:Author:/..\n Author: /;/\.\. raw/,/ *<\/style>/d' > $@ | ||
%.html: %.adoc | ||
asciidoctor -b xhtml -a lbversion="$$(cat ../data/VERSION.txt)" $< | ||
|
||
gh-pages-site/%.html: %.html | ||
mkdir -p gh-pages-site | ||
xsltproc add_nav.xsl $< > $@ | ||
|
||
documentation.html: README.adoc | ||
asciidoctor -b xhtml -a lbversion="$$(cat ../data/VERSION.txt)" $< -o $@ | ||
|
||
example_data/documentation.txt: documentation.html | ||
lynx -dump -nolist -nonumbers -width=70 $< | \ | ||
sed '/[email protected]/s/$$/\n/;1,/^ *1 Intro/{s/^\( *\)[*+o]/\1 /}' > $@ | ||
lynx -dump -nolist -nonumbers -width=79 $< | \ | ||
sed 's/\xe2\x80\x8b//g;/^ *Last updated[-: 0-9]*$$/d' > $@ | ||
|
||
example_data/example_documents.json: example_data/documentation.txt example_data/make_example_docs.py example_data/hello_annotations.txt | ||
example_data/example_documents.json: $(examples) example_data/documentation.txt example_data/make_example_docs.py | ||
python3 example_data/make_example_docs.py | ||
|
||
clean: | ||
rm -f documentation.html README.rst \ | ||
rm -f *.html \ | ||
example_data/documentation.txt example_data/example_documents.json |
Oops, something went wrong.