diff options
author | Florian Müllner <fmuellner@gnome.org> | 2017-05-28 21:46:02 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2017-07-19 21:24:08 +0200 |
commit | 26e7962dfe4fe9b5b544da15d48d70ed2397b5b3 (patch) | |
tree | a790cee701e1fcd1648ac7ae4c6d0f9ae9a58727 /docs | |
parent | 7f4e914b0090b920b2ad5e570839b6225a3bbeb7 (diff) | |
download | gnome-shell-26e7962dfe4fe9b5b544da15d48d70ed2397b5b3.tar.gz |
docs: Use entity for version
Meson's gtk-doc support currently requires the main SGML/XML file
to be located in the srcdir, so instead of substituting the module
version in that file directly, use a small auxiliary file that's
included via a custom entity.
https://bugzilla.gnome.org/show_bug.cgi?id=783229
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/shell/Makefile.am | 2 | ||||
-rw-r--r-- | docs/reference/shell/shell-docs.sgml (renamed from docs/reference/shell/shell-docs.sgml.in) | 3 | ||||
-rw-r--r-- | docs/reference/shell/version.xml.in | 1 | ||||
-rw-r--r-- | docs/reference/st/Makefile.am | 2 | ||||
-rw-r--r-- | docs/reference/st/st-docs.sgml (renamed from docs/reference/st/st-docs.sgml.in) | 3 | ||||
-rw-r--r-- | docs/reference/st/version.xml.in | 1 |
6 files changed, 8 insertions, 4 deletions
diff --git a/docs/reference/shell/Makefile.am b/docs/reference/shell/Makefile.am index ad3a3defe..715e3f26c 100644 --- a/docs/reference/shell/Makefile.am +++ b/docs/reference/shell/Makefile.am @@ -120,7 +120,7 @@ include $(top_srcdir)/gtk-doc.make # Other files to distribute # e.g. EXTRA_DIST += version.xml.in -EXTRA_DIST += +EXTRA_DIST += version.xml.in # Files not to distribute # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types diff --git a/docs/reference/shell/shell-docs.sgml.in b/docs/reference/shell/shell-docs.sgml index 14a9cf1cd..c349f84a5 100644 --- a/docs/reference/shell/shell-docs.sgml.in +++ b/docs/reference/shell/shell-docs.sgml @@ -3,12 +3,13 @@ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [ <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'"> + <!ENTITY version SYSTEM "version.xml"> ]> <book id="index"> <bookinfo> <title>Shell Reference Manual</title> <releaseinfo> - for Shell @VERSION@. + for Shell &version;. <!--The latest version of this documentation can be found on-line at <ulink role="online-location" url="http://[SERVER]/shell/index.html">http://[SERVER]/shell/</ulink>.--> </releaseinfo> diff --git a/docs/reference/shell/version.xml.in b/docs/reference/shell/version.xml.in new file mode 100644 index 000000000..d78bda934 --- /dev/null +++ b/docs/reference/shell/version.xml.in @@ -0,0 +1 @@ +@VERSION@ diff --git a/docs/reference/st/Makefile.am b/docs/reference/st/Makefile.am index 18e837d24..df2d357d5 100644 --- a/docs/reference/st/Makefile.am +++ b/docs/reference/st/Makefile.am @@ -85,7 +85,7 @@ include $(top_srcdir)/gtk-doc.make # Other files to distribute # e.g. EXTRA_DIST += version.xml.in -EXTRA_DIST += +EXTRA_DIST += version.xml.in # Files not to distribute # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types diff --git a/docs/reference/st/st-docs.sgml.in b/docs/reference/st/st-docs.sgml index f5df261d7..788c20460 100644 --- a/docs/reference/st/st-docs.sgml.in +++ b/docs/reference/st/st-docs.sgml @@ -3,12 +3,13 @@ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [ <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'"> + <!ENTITY version SYSTEM "version.xml"> ]> <book id="index"> <bookinfo> <title>St Reference Manual</title> <releaseinfo> - for St @VERSION@. + for St &version;. <!--The latest version of this documentation can be found on-line at <ulink role="online-location" url="http://[SERVER]/st/index.html">http://[SERVER]/st/</ulink>.--> </releaseinfo> diff --git a/docs/reference/st/version.xml.in b/docs/reference/st/version.xml.in new file mode 100644 index 000000000..d78bda934 --- /dev/null +++ b/docs/reference/st/version.xml.in @@ -0,0 +1 @@ +@VERSION@ |