docs: Use automatically retrieved version for docs

This eliminates one more hardcoded version from the repo, yay!
This commit is contained in:
Arseny Kapoulkine 2015-03-24 20:59:04 -07:00
parent fc20b0afbb
commit 10ff488eb9
4 changed files with 5 additions and 6 deletions

View file

@ -71,6 +71,6 @@ $(BUILD)/%.o: %
.SECONDEXPANSION:
docs/%.html: docs/%.adoc $$(shell sed -n 's/include\:\:\(.*\)\[.*/docs\/\1/p' docs/%.adoc)
asciidoctor -b html5 $< -o $@
asciidoctor -b html5 -a version=$(VERSION) $< -o $@
.PHONY: all test clean release .FORCE

View file

@ -1,5 +1,4 @@
website <http://pugixml.org>; repository <http://github.com/zeux/pugixml>
:version: 1.6
:toc: right
:source-highlighter: pygments
:source-language: c++

View file

@ -168,7 +168,7 @@ body.toc2{padding-left:15em;padding-right:0}
#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
body.toc2.toc-right{padding-left:0;padding-right:15em}
body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #efefed;left:auto;right:0}}@media only screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
#toc.toc2{width:30em}
#toc.toc2{width:20em}
#toc.toc2 #toctitle{font-size:1.375em}
#toc.toc2>ul{font-size:.95em}
#toc.toc2 ul ul{padding-left:1.25em}
@ -5509,8 +5509,8 @@ If exceptions are disabled, then in the event of parsing failure the query is in
</div>
<div id="footer">
<div id="footer-text">
Last updated 2015-03-24 10:02:58 PDT
Last updated 2015-03-24 20:19:09 PDT
</div>
</div>
</body>
</html>
</html>

View file

@ -1068,7 +1068,7 @@ pugixml is Copyright (C) 2006-2015 Arseny Kapoulkine.</pre>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2015-03-24 09:12:58 PDT
Last updated 2015-03-24 20:19:09 PDT
</div>
</div>
</body>