[seed] [docs] Factor out gtk-doc displayed version number



commit 09bf288d0aa2a1156a29d74a98d19a4f0e17b373
Author: Tim Horton <hortont424 gmail com>
Date:   Mon Aug 10 09:27:47 2009 -0800

    [docs] Factor out gtk-doc displayed version number

 configure.ac                 |    2 ++
 doc/modules/Makefile.am      |    5 ++---
 doc/modules/book.xml         |    9 ++++++---
 doc/reference/Makefile.am    |    4 ++--
 doc/reference/seed-docs.sgml |    8 +++++---
 doc/reference/version.xml.in |    1 +
 6 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ab74a1f..124b403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -434,8 +434,10 @@ tests/javascript/structs/Makefile
 tests/c/Makefile
 doc/Makefile
 doc/modules/Makefile
+doc/modules/version.xml
 doc/tutorial-standalone/Makefile
 doc/reference/Makefile
+doc/reference/version.xml
 doc/mapping/Makefile
 examples/Makefile
 examples/clutter-pad/Makefile
diff --git a/doc/modules/Makefile.am b/doc/modules/Makefile.am
index 6868c2a..c2d9bab 100644
--- a/doc/modules/Makefile.am
+++ b/doc/modules/Makefile.am
@@ -1,13 +1,12 @@
 SUBDIRS=canvas multiprocessing readline sandbox sqlite gtkbuilder
-EXTRA_DIST=make-functions.js book.xml
+EXTRA_DIST=make-functions.js book.xml version.xml.in
 
 if ENABLE_GTK_DOC
-html/index.html: book.xml sqlite/sqlite.xml sqlite/sqlite-funcs.xml readline/readline.xml readline/readline-funcs.xml make-functions.js gtkbuilder/gtkbuilder-funcs.xml gtkbuilder/gtkbuilder.xml sandbox/sandbox.xml sandbox/sandbox-funcs.xml
+html/index.html: version.xml book.xml sqlite/sqlite.xml sqlite/sqlite-funcs.xml readline/readline.xml readline/readline-funcs.xml make-functions.js gtkbuilder/gtkbuilder-funcs.xml gtkbuilder/gtkbuilder.xml sandbox/sandbox.xml sandbox/sandbox-funcs.xml
 	mkdir -p html;
 	gtkdoc-mkhtml "Seed" book.xml;
 	mv *.html *.css *.png *.sgml *.devhelp* html
 
-
 bookdir = $(datadir)/doc/seed/modules/html
 book_DATA = html/index.html
 
diff --git a/doc/modules/book.xml b/doc/modules/book.xml
index 9ef46df..02f0b82 100644
--- a/doc/modules/book.xml
+++ b/doc/modules/book.xml
@@ -1,12 +1,15 @@
 <?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [
+<!ENTITY version SYSTEM "version.xml">
+]>
 <book id="index" xmlns:xi="http://www.w3.org/2003/XInclude";>
  <bookinfo>
     <title>Seed Modules Reference Manual</title>
     <releaseinfo>
-      Documentation for Seed 0.8.6 modules.
+      Documentation for Seed &version; modules.
       The latest version of this documentation can be found on-line at
-      <ulink role="online-location" url="http://www.gnome.org/~racarr/seed/gtk-\
-doc/index.html">http://www.gnome.org/~racarr/seed/modules/</ulink>.
+      <ulink role="online-location" url="http://library.gnome.org/devel/seed/unstable/";>http://library.gnome.org/devel/seed/unstable/</ulink>.
     </releaseinfo>
   </bookinfo>
  
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
index be7c39c..f7e596e 100644
--- a/doc/reference/Makefile.am
+++ b/doc/reference/Makefile.am
@@ -55,7 +55,7 @@ HTML_IMAGES=
 
 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
 # e.g. content_files=running.sgml building.sgml changes-2.0.sgml
-content_files=seed-docs.sgml seed-sections.txt building.sgml introduction.sgml building-osx.sgml contact.sgml imports.sgml
+content_files=seed-docs.sgml seed-sections.txt building.sgml introduction.sgml building-osx.sgml contact.sgml imports.sgml version.xml
 
 # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
 # These files must be listed here *and* in content_files
@@ -75,7 +75,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/doc/reference/seed-docs.sgml b/doc/reference/seed-docs.sgml
index ee71b6a..b4bdeb2 100644
--- a/doc/reference/seed-docs.sgml
+++ b/doc/reference/seed-docs.sgml
@@ -1,13 +1,15 @@
 <?xml version="1.0"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
-               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
+               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [
+<!ENTITY version SYSTEM "version.xml">
+]>
 <book id="index" xmlns:xi="http://www.w3.org/2003/XInclude";>
   <bookinfo>
     <title>Seed Reference Manual</title>
     <releaseinfo>
-      Documentation for Seed 0.8.6.
+      Documentation for Seed &version;.
       The latest version of this documentation can be found on-line at
-      <ulink role="online-location" url="http://library.gnome.org/devel/seed/";>http://library.gnome.org/devel/seed/</ulink>.
+      <ulink role="online-location" url="http://library.gnome.org/devel/seed/unstable/";>http://library.gnome.org/devel/seed/unstable/</ulink>.
     </releaseinfo>
   </bookinfo>
 
diff --git a/doc/reference/version.xml.in b/doc/reference/version.xml.in
new file mode 100644
index 0000000..d78bda9
--- /dev/null
+++ b/doc/reference/version.xml.in
@@ -0,0 +1 @@
+ VERSION@



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