[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.11,1.12
Fred L. Drake
python-dev@python.org
Tue, 29 Aug 2000 11:15:08 -0700
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv22029/tools
Modified Files:
mkhowto
Log Message:
Add a --style option to allow specifying an alternate CSS style sheet for
HTML generation; the machinery was there but no option to set it was
defined.
Simplify some of the path-math since we can assume a recent version of
Python.
Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** mkhowto 2000/07/31 17:47:49 1.11
--- mkhowto 2000/08/29 18:15:05 1.12
***************
*** 21,24 ****
--- 21,26 ----
--numeric Don't rename the HTML files; just keep node#.html for
the filenames.
+ --style Specify the CSS file to use for the output (filename,
+ not a URL).
Other options:
***************
*** 43,48 ****
! MYDIR = os.path.normpath(os.path.join(os.getcwd(), sys.path[0]))
! TOPDIR = os.path.normpath(os.path.join(MYDIR, os.pardir))
ISTFILE = os.path.join(TOPDIR, "texinputs", "python.ist")
--- 45,50 ----
! MYDIR = os.path.abspath(sys.path[0])
! TOPDIR = os.path.dirname(MYDIR)
ISTFILE = os.path.join(TOPDIR, "texinputs", "python.ist")
***************
*** 110,114 ****
"link=", "split=", "logging", "debugging",
"keep", "quiet", "runs=", "image-type=",
! "about=", "numeric"]
+ list(self.ALL_FORMATS))
for opt, arg in opts:
--- 112,116 ----
"link=", "split=", "logging", "debugging",
"keep", "quiet", "runs=", "image-type=",
! "about=", "numeric", "style="]
+ list(self.ALL_FORMATS))
for opt, arg in opts:
***************
*** 145,151 ****
# always make this absolute:
self.about_file = os.path.normpath(
! os.path.join(os.getcwd(), arg))
elif opt == "--numeric":
self.numeric = 1
#
# Format specifiers:
--- 147,155 ----
# always make this absolute:
self.about_file = os.path.normpath(
! os.path.abspath(arg))
elif opt == "--numeric":
self.numeric = 1
+ elif opt == "--style":
+ self.style_file = os.path.abspath(arg)
#
# Format specifiers: