[gegl] docs: build automations



commit 80fbfd1878659c1c5ec81d1fd455c2672b971a51
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Nov 19 18:28:34 2012 +0100

    docs: build automations

 docs/Makefile.am |   46 ++++++++++++++++++++++++----------------------
 docs/editor.txt  |    6 +++---
 docs/gegl.css    |    2 +-
 3 files changed, 28 insertions(+), 26 deletions(-)
---
diff --git a/docs/Makefile.am b/docs/Makefile.am
index cebbeec..ce07da0 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -9,6 +9,14 @@ gtkdochtmldir = $(datadir)/gtk-doc/html/gegl
 gtkdocimgdir = $(datadir)/gtk-doc/html/gegl/images
 gtkdocexampledir = $(datadir)/gtk-doc/html/gegl/images/examples
 
+# run the sync-txt target after adding a text file
+sync-txt:
+	txts=ASC_DOC=`for a in *.txt;do echo -n ' '$$a|sed s/txt/html/;done;echo ''`;\
+	  txts=$$txts" #ASC_DOC_HOTPATCH";\
+		cat Makefile.am | sed "s/ASC\_DOC.*ASC_DOC_HOTPATCH/$$txts/" > /tmp/mktmp; cp /tmp/mktmp Makefile.am;
+ASC_DOC= abyss_policy.html development.html editor.html index.html journal.html todo.html #ASC_DOC_HOTPATCH
+
+
 HTML_FILES = \
 	operations.html		\
 	class-hierarchy.html
@@ -50,8 +58,10 @@ HTML_FILES += $(ENSCRIPT_FILES)
 GTKDOC_FILES += $(ENSCRIPT_FILES)
 endif
 
+BUILT_EXTRA_DIST = class-hierarchy.html operations.html $(ASC_DOC)
+
 if HAVE_ASCIIDOC
-HTML_FILES += index.html development.html
+HTML_FILES += $(ASC_DOC)
 endif
 
 EXTRA_DIST = \
@@ -77,7 +87,6 @@ dist_gtkdocimg_DATA = \
 	images/standard-aux.png
 dist_gtkdocexample_DATA = $(EXAMPLE_FILES)
 
-BUILT_EXTRA_DIST = index.html class-hierarchy.html operations.html development.html
 
 CLEANFILES = README $(HTML_FILES) index.txt
 DISTCLEANFILES = index.txt
@@ -167,28 +176,21 @@ if HAVE_ENSCRIPT
 	$(ENSCRIPT) -E --color --language=html -p$@ $<
 endif
 
-api.html: $(top_srcdir)/gegl/gegl.h\
-          $(top_builddir)/gegl/gegl-version.h\
-          $(top_srcdir)/gegl/buffer/gegl-buffer.h\
-	  $(top_srcdir)/gegl/buffer/gegl-buffer-iterator.h\
-          $(top_srcdir)/gegl/gegl-utils.h\
-          $(top_srcdir)/gegl/property-types/gegl-color.h\
-          $(top_srcdir)/gegl/gegl-matrix.h\
-          $(top_srcdir)/gegl/property-types/gegl-path.h\
-          $(top_srcdir)/gegl/property-types/gegl-curve.h\
+API_DOC_FILES = \
+	$(top_srcdir)/gegl/gegl.h			\
+	$(top_builddir)/gegl/gegl-version.h		\
+	$(top_srcdir)/gegl/buffer/gegl-buffer.h	\
+	$(top_srcdir)/gegl/buffer/gegl-buffer-iterator.h\
+    $(top_srcdir)/gegl/gegl-utils.h \
+    $(top_srcdir)/gegl/property-types/gegl-color.h\
+    $(top_srcdir)/gegl/gegl-matrix.h \
+    $(top_srcdir)/gegl/property-types/gegl-path.h\
+    $(top_srcdir)/gegl/property-types/gegl-curve.h
+
+api.html: $(API_DOC_FILES) \
 	  $(top_srcdir)/tools/create-reference.rb
 if HAVE_RUBY
-	$(top_srcdir)/tools/create-reference.rb 	\
-	    $(top_srcdir)/gegl/gegl.h			\
-	    $(top_builddir)/gegl/gegl-version.h		\
-	    $(top_srcdir)/gegl/buffer/gegl-buffer.h	\
-	    $(top_srcdir)/gegl/buffer/gegl-buffer-iterator.h\
-            $(top_srcdir)/gegl/gegl-utils.h \
-            $(top_srcdir)/gegl/property-types/gegl-color.h\
-            $(top_srcdir)/gegl/gegl-matrix.h \
-            $(top_srcdir)/gegl/property-types/gegl-path.h\
-            $(top_srcdir)/gegl/property-types/gegl-curve.h\
-	    $@
+		$(top_srcdir)/tools/create-reference.rb $(API_DOC_FILES) $@
 endif
 
 images/inheritance.png: Makefile
diff --git a/docs/editor.txt b/docs/editor.txt
index bf14e8f..c7e69bd 100644
--- a/docs/editor.txt
+++ b/docs/editor.txt
@@ -4,7 +4,7 @@ Isaac Wagner
 isaacbw src gnome org
 
 DESIRED FEATURES
-================
+----------------
 
 *Resizable image preview thumbnails on nodes
 *Text annotations
@@ -22,13 +22,13 @@ DESIRED FEATURES
 *Can "shade" nodes which reduces their size to just displaying the node title
 
 LIBRARIES
-=========
+---------
 
 GTK+
 Cairo
 
 DESIGN NOTES
-============
+------------
 
 Node editing and rendering code will be modular and reusable within other node manipulation applications
 
diff --git a/docs/gegl.css b/docs/gegl.css
index 61b13ea..beadc4e 100644
--- a/docs/gegl.css
+++ b/docs/gegl.css
@@ -200,7 +200,7 @@
           position: fixed;
           width: 12em;
           top: 0;
-          left: 0;
+          right: 0;
           z-index: 2;
           height: 100%;
           overflow: auto;



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