[gnome-autoar/wip/lantw/autoar-0.2: 3/3] docs: Install documentation in a versioned directory



commit f9400d170df57145bb190d61c029d60e807e614f
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Jan 17 03:46:16 2017 +0800

    docs: Install documentation in a versioned directory
    
    Since gnome-autoar API is still not stable, it is important to be able
    to keep multiple versions installed in a single prefix. API version is
    now added to title to avoid confusing users with books having the same
    title. Package version is also added to the main page.

 configure.ac                                       |    2 +-
 docs/reference/Makefile.am                         |    2 +-
 ...e-autoar-docs.xml => gnome-autoar-0.2-docs.xml} |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2298e68..b30831f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,7 +49,7 @@ AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
 AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
 
 # check for gtk-doc
-GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+GTK_DOC_CHECK([1.25],[--flavour no-tmpl])
 
 # check for gobject-introspection
 GOBJECT_INTROSPECTION_CHECK([1.30.0])
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index b7770f6..6e52633 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -5,7 +5,7 @@ NULL =
 # We require automake 1.6 at least.
 AUTOMAKE_OPTIONS = 1.6
 
-DOC_MODULE=gnome-autoar
+DOC_MODULE=gnome-autoar-@API_VERSION@
 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
 MKDB_OPTIONS=--xml-mode --output-format=xml
 
diff --git a/docs/reference/gnome-autoar-docs.xml b/docs/reference/gnome-autoar-0.2-docs.xml
similarity index 84%
rename from docs/reference/gnome-autoar-docs.xml
rename to docs/reference/gnome-autoar-0.2-docs.xml
index a71c7e5..bcfa73e 100644
--- a/docs/reference/gnome-autoar-docs.xml
+++ b/docs/reference/gnome-autoar-0.2-docs.xml
@@ -3,14 +3,14 @@
                "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 % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
+  %gtkdocentities;
 ]>
 <book id="index">
   <bookinfo>
-    <title>gnome-autoar Reference Manual</title>
+    <title>&package_name; 0.2 Reference Manual</title>
     <releaseinfo>
-       gnome-autoar provides functions, widgets, and gschemas for GNOME
-       applications which want to use archives as a convenient method
-       to transfer directories over the internet.
+       This document is for &package_name; 0.2, version &package_version;.
     </releaseinfo>
   </bookinfo>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]