X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=doclib%2FSConscript;h=7a396bf4a8f3b91bd1a52cae6f36ae1a5006681b;hb=HEAD;hp=9a941ee8428ee3bae93ac3522137a30c9c714625;hpb=6f7b76c5b13f6a5f5aeb3515585c84fb0f7fbf8f;p=senf.git diff --git a/doclib/SConscript b/doclib/SConscript index 9a941ee..7a396bf 100644 --- a/doclib/SConscript +++ b/doclib/SConscript @@ -2,57 +2,58 @@ # # The documentation generation process is tightly integrated with the # scons build framework: -# +# # * SCons analyzes the Doxyfile's to find all the documentation # dependencies. This happens in the doxygen builder in # senfscons/Doxygen.py. # # * the doclib/doxy-header.html and/or doclib/doxy-footer.html files # are regenerated -# +# # * If any documentation is out-of-date with respect to it's source # files, the documentation is regenerated. -# +# # * To fix some link errors, the additional 'linklint' and 'fixlinks' # targets are used # -# +# # 1. Scanning the Doxyfile's -# +# # The doxygen builder scans all documentation source files which have # the text 'doxyfile' in any case in their name. It understands # @INCLUDE directives and will find all the dependencies of the # documentation: -# +# # * All the source files as selected by INPUT, INPUT_PATTERN, # RECURSIVE and so on. -# +# # * Any referenced tag-files -# +# # * Documentation header and/or footer -# +# # * The INPUT_FILTER program -# +# # * Any included doxygen configuration files -# +# # # 2. Regenerating header and/or footer # # If needed, the doxy-header.html and/or doxy-footer.html file will be # regenerated. The header and/or footer are generated from templates # using a simple python based templating system called yaptu which is -# included in doclib/. +# included in site_scons/lib/. +# # -# # 3. Calling doxygen -# +# # The doxygen call itself is quite complex since there is some pre- # and post-processing going on. We can separate this step into two # steps # # * Building prerequisites (e.g. images) # -# * The processing done by the Doxygen builder and doclib/doxygen.sh +# * The processing done by the Doxygen builder and +# site_scon/lib/doxygen.sh # # # 3.1. Building prerequisites @@ -64,16 +65,16 @@ # 3.2. The main doxygen build (Doxygen builder) # # The Doxygen builder will call the doxygen command to build the -# documentation. +# documentation. # -# The doxygen command is configured as 'doclib/doxygen.sh' which +# The doxygen command is configured as 'site_scon/lib/doxygen.sh' which # does some additional processing in addition to calling doxygen # proper # # * it sets environment variables depending on command line arguments. # These variables are then used in the Doxyfile's # -# * after doxygen is finished, 'installdox' is called to resolve +# * after doxygen is finished, 'installdox' is called to resolve # tag file references. # # * the HTML documentation is post-processed using some sed, tidy, and @@ -81,25 +82,30 @@ # # * a generated tag file is post-processed using an XSLT template # -# (see doclib/doxygen.sh for more information). The Doxygen +# (see site_scon/lib/doxygen.sh for more information). The Doxygen # configuration is set up such, that # -# * doxygen calls 'doclib/filter.pl' on each source file. This filter -# will strip excess whitespace from the beginning of lines in +# * doxygen calls 'site_scons/lib/filter.pl' on each source file. This +# filter will strip excess whitespace from the beginning of lines in # '\code' and '
' blocks. Additionally it will expand all tabs,
 #   tab width is 8 spaces (there should be no tabs in the source but
 #   ...)
-# 
-# * doxygen calls 'doclib/dot' to generate the 'dot' images.
 #
-# * 'doclib/dot' calls 'doclib/dot-munge.pl' on the .dot
-#    files. dot-munge.pl changes the font and font-size and adds
+# * 'site_scons/lib/filter.pl' calls 'site_scons/lib/makeDiaImageMap.py'
+#   whenever finding a '\diaimage' command. This will create an image
+#   map (in an encoded form which will be fixed by html-munge.xsl
+#   later)
+#
+# * doxygen calls 'site_scons/lib/dot' to generate the 'dot' images.
+#
+# * 'site_scons/lib/dot' calls 'site_scons/lib/dot-munge.pl' on the
+#    .dot files. dot-munge.pl changes the font and font-size and adds
 #    line-breaks to long labels
 #
-# * 'doclib/dot' calls the real dot binary. If the resulting image is
-#   more than 800 pixels wide, dot is called again, this time using
-#   the oposite rank direction (top-bottom vs. left-right). The image
-#   with the smaller width is selected and returned.
+# * 'site_scons/lib/dot' calls the real dot binary. If the resulting
+#   image is more than 800 pixels wide, dot is called again, this time
+#   using the oposite rank direction (top-bottom vs. left-right). The
+#   image with the smaller width is selected and returned.
 #
 #
 # 4. Fixing broken links
@@ -130,13 +136,13 @@ def modules():
     pathbase = env.Dir('#/senf').abspath
     pathbasel = len(pathbase)+1
     for module in env.Alias('all_docs')[0].sources:
-        if module.name != 'html.stamp' : continue 
+        if module.name != 'html.stamp' : continue
         if not module.dir.dir.dir.abspath.startswith(pathbase): continue
         mods[module.dir.dir.dir.abspath] = [ module.dir.dir.dir.abspath[pathbasel:].replace('/','_'),
                                              module.dir.dir.dir.name,
                                              module.dir.abspath[pathbasel:],
                                              0 ]
-        
+
     rv = []
     keys = mods.keys()
     keys.sort()
@@ -191,7 +197,7 @@ div.tabs li.$projectname a { background-color: #EDE497; }
     

SENF Extensible Network Framework

@@ -204,7 +210,7 @@ div.tabs li.$projectname a { background-color: #EDE497; }
  • Wiki
  • BerliOS
  • ChangeLog
  • -
  • Browse SVN
  • +
  • Browse SVN
  • Bug Tracker
  • @@ -232,7 +238,8 @@ FOOTER = """
    """ @@ -255,31 +262,19 @@ env.SetDefault( DOXYGEN = "doxygen" ) -env.Replace( - DOXYGENCOM = "site_scons/lib/doxygen.sh $DOXYOPTS $SOURCE", -) - env.Append( ENV = { 'TODAY' : str(datetime.date.today()), - 'TEXINPUTS' : os.environ.get('TEXINPUTS',env.Dir('#/doclib').abspath + ':'), - 'DOXYGEN' : str(env.File(env['DOXYGEN'])), }) env.PhonyTarget('linklint', [], [ - 'rm -rf linklint', - 'linklint -doc linklint -limit 99999999 `find -type d -name html -printf "/%P/@ "`', - '[ ! -r linklint/errorX.html ] || python doclib/linklint_addnames.py linklint/errorX.html.new', - '[ ! -r linklint/errorX.html.new ] || mv linklint/errorX.html.new linklint/errorX.html', - '[ ! -r linklint/errorAX.html ] || python doclib/linklint_addnames.py linklint/errorAX.html.new', - '[ ! -r linklint/errorAX.html.new ] || mv linklint/errorAX.html.new linklint/errorAX.html', - 'echo -e "\\nLokal link check results: linklint/index.html\\nRemote link check results: linklint/urlindex.html\\n"', + 'rm -rf doc/linklint', + 'linklint -doc doc/linklint -limit 99999999 `find -type d -name html -printf "/%P/@ "`', ]) env.PhonyTarget('fixlinks', [], [ - 'python doclib/fix-links.py -v -s .svn -s linklint -s debian linklint/errorX.txt linklint/errorAX.txt', + 'python doclib/fix-links.py -v -s .svn -s linklint -s debian -s doclib -s search', ]) - header = env.Command('doxy-header.html', 'SConscript', writeTemplate, TEMPLATE = Literal(HEADER), TITLE = "Documentation and API reference") @@ -289,7 +284,7 @@ footer = env.Command('doxy-footer.html', 'SConscript', writeTemplate, TEMPLATE = Literal(FOOTER)) env.Alias('all_docs', - env.Command('search.php', [ 'html-munge.xsl', 'SConscript' ], + env.Command('search.php', [ '#/site_scons/lib/html-munge.xsl', 'SConscript' ], [ writeTemplate, 'xsltproc --nonet --html --stringparam topdir .. -o - $SOURCE $TARGET 2>/dev/null' + "| sed" @@ -318,3 +313,5 @@ env.Clean('all', 'doxy-header.html') # I should not need this but I do ... env.Clean('all_docs', 'doxy-header.html') # I should not need this but I do ... env.Install('${DOCINSTALLDIR}', 'index.html') + +env.Depends(SENFSCons.Doxygen(env, output_directory="../doc"), env.Value(env['ENV']['REVISION']))