You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by mx...@apache.org on 2010/09/14 11:10:37 UTC

svn commit: r996802 - in /tcl/rivet/trunk/doc: Makefile.am README xml/calendar.xml xml/examples.xml

Author: mxmanghi
Date: Tue Sep 14 09:10:37 2010
New Revision: 996802

URL: http://svn.apache.org/viewvc?rev=996802&view=rev
Log:
2010-09-14 Massimo Manghi <mx...@apache.org>
    * doc/html/*: directory removed from repository 
    * doc/Makefile.am: New targets for creating the doc/html/ directory and copying new or modified graphic files from
    doc/images to doc/html/images
    * doc/REAME: new instructions on how to build the html output of the manual
    * doc/xml/calendar.xml,doc/xml/examples.xml: fix wrong references to images to be displayed


Added:
    tcl/rivet/trunk/doc/README
Modified:
    tcl/rivet/trunk/doc/Makefile.am
    tcl/rivet/trunk/doc/xml/calendar.xml
    tcl/rivet/trunk/doc/xml/examples.xml

Modified: tcl/rivet/trunk/doc/Makefile.am
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/Makefile.am?rev=996802&r1=996801&r2=996802&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/Makefile.am (original)
+++ tcl/rivet/trunk/doc/Makefile.am Tue Sep 14 09:10:37 2010
@@ -14,6 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+.PHONY:	clean 
+
+MANDIRS = html/ html/images
+PICTURES:=$(wildcard images/*.png)
 
 # English, multiple files.
 html/index.html: rivet.xml rivet-chunk.xsl rivet.xsl xml/*.xml
@@ -29,9 +33,25 @@ html/rivet.html: rivet.xml rivet-nochunk
 # This means these are not build automatically, but at least
 # people aren't forced to build them either.
 
-docs: html/index.html
+docs: mandirs graphics html/index.html
+
+docs-nochunk: html/rivet.html
+
+graphics: mandirs $(PICTURES)
+	for gfile in $?; do \
+	    cp -v $$gfile html/images/ ; \
+	done ; \
+	touch graphics
 
-docs-nochunk:	html/rivet.html
+mandirs: $(MANDIRS)
+
+$(MANDIRS):
+	mkdir $@
 
 clean:
-	-rm html/*.html
+	-rm html/*.html 
+	-rm html/images/*.*
+	if [ -e graphics ]; then \
+	    rm graphics ; \
+	fi 
+

Added: tcl/rivet/trunk/doc/README
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/README?rev=996802&view=auto
==============================================================================
--- tcl/rivet/trunk/doc/README (added)
+++ tcl/rivet/trunk/doc/README Tue Sep 14 09:10:37 2010
@@ -0,0 +1,8 @@
+$Id: $
+
+Graphic files that are to be displayed in the manual must be in the doc/images/ directory. 
+Files in this directory are copied into the doc/html/images directory where they are referenced 
+by the html pages. Files are to be added to svn manually. References to this files must be relative
+to the manual root and therefore look like
+
+<graphic fileref="images/calendar.png" />

Modified: tcl/rivet/trunk/doc/xml/calendar.xml
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/xml/calendar.xml?rev=996802&r1=996801&r2=996802&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/xml/calendar.xml (original)
+++ tcl/rivet/trunk/doc/xml/calendar.xml Tue Sep 14 09:10:37 2010
@@ -383,7 +383,7 @@ puts $current_month
 				A sample output from HtmlCalendar (with some styling)			
 			</para>
 			<para>
-				<graphic fileref="calendar.png"/>			
+				<graphic fileref="images/calendar.png"/>			
 			</para>
 		</refsect1>
 	</refentry>

Modified: tcl/rivet/trunk/doc/xml/examples.xml
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/xml/examples.xml?rev=996802&r1=996801&r2=996802&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/xml/examples.xml (original)
+++ tcl/rivet/trunk/doc/xml/examples.xml Tue Sep 14 09:10:37 2010
@@ -39,7 +39,7 @@
 	  <para>
 	    The result should look something like this:
 	  </para>
-	  <graphic fileref="table.png"/>
+	  <graphic fileref="images/table.png"/>
 
     </example>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-cvs-help@tcl.apache.org