[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.18,1.19

Fred L. Drake python-dev@python.org
Tue, 09 Jan 2001 14:02:12 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv20761/tools

Modified Files:
	mkhowto 
Log Message:

Added a --global-module-index option to specify a (possibly relative) URL
to the Global Module Index for a set of documents.  This is used to include
a reference to the global index from the per-document module indexes, so
that it is just a little easier to find.

(Someone suggested this, but I do not remember who.  Please let me know if
it was you -- thanks!)


Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** mkhowto	2000/11/03 02:57:31	1.18
--- mkhowto	2001/01/09 22:02:10	1.19
***************
*** 92,95 ****
--- 92,96 ----
      runs = 0
      numeric = 0
+     global_module_index = None
      style_file = os.path.join(TOPDIR, "html", "style.css")
      about_file = os.path.join(TOPDIR, "html", "about.dat")
***************
*** 118,122 ****
                                      "keep", "quiet", "runs=", "image-type=",
                                      "about=", "numeric", "style=",
!                                     "up-link=", "up-title="]
                                     + list(self.ALL_FORMATS))
          for opt, arg in opts:
--- 119,124 ----
                                      "keep", "quiet", "runs=", "image-type=",
                                      "about=", "numeric", "style=",
!                                     "up-link=", "up-title=",
!                                     "global-module-index="]
                                     + list(self.ALL_FORMATS))
          for opt, arg in opts:
***************
*** 164,167 ****
--- 166,171 ----
              elif opt == "--up-title":
                  self.up_title = arg
+             elif opt == "--global-module-index":
+                 self.global_module_index = arg
              #
              # Format specifiers:
***************
*** 406,409 ****
--- 410,414 ----
          l2hoption(fp, "EXTERNAL_UP_LINK", options.up_link)
          l2hoption(fp, "EXTERNAL_UP_TITLE", options.up_title)
+         l2hoption(fp, "GLOBAL_MODULE_INDEX", options.global_module_index)
          fp.write("1;\n")
          fp.close()