From 10ff488eb96544074c88ba1aae26025b425dba58 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 24 Mar 2015 20:59:04 -0700 Subject: docs: Use automatically retrieved version for docs This eliminates one more hardcoded version from the repo, yay! --- Makefile | 2 +- docs/config.adoc | 1 - docs/manual.html | 6 +++--- docs/quickstart.html | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ed2f50d..0e64129 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docs/config.adoc b/docs/config.adoc index 8ac9da4..0d4f48d 100644 --- a/docs/config.adoc +++ b/docs/config.adoc @@ -1,5 +1,4 @@ website ; repository -:version: 1.6 :toc: right :source-highlighter: pygments :source-language: c++ diff --git a/docs/manual.html b/docs/manual.html index ef738dd..a0fd721 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -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 - + \ No newline at end of file diff --git a/docs/quickstart.html b/docs/quickstart.html index e2ac185..2dbed65 100644 --- a/docs/quickstart.html +++ b/docs/quickstart.html @@ -1068,7 +1068,7 @@ pugixml is Copyright (C) 2006-2015 Arseny Kapoulkine. -- cgit v1.2.3