[Checkins]
SVN: Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py
Include fncychap.sty in generated LaTeX output.
Uli Fouquet
uli at gnufix.de
Tue Feb 26 07:27:30 EST 2008
Log message for revision 84263:
Include fncychap.sty in generated LaTeX output.
Changed:
U Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py
-=-
Modified: Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py
===================================================================
--- Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py 2008-02-26 12:17:55 UTC (rev 84262)
+++ Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py 2008-02-26 12:27:29 UTC (rev 84263)
@@ -148,6 +148,12 @@
# sphinx will handle that errors
pass
+ if len(args) < 1:
+ argv.append(srcdir)
+ if len(args) < 2:
+ argv.append(htmldir)
+ args = argv
+
if opts and '-h' in [x for x,y in opts]:
sphinx.usage(argv, msg=None)
return 1
@@ -168,13 +174,11 @@
self.body.append(r'%s' % node.astext())
raise nodes.SkipNode
LaTeXTranslator.visit_raw = visit_raw
+ if os.path.isdir(argv[-1]):
+ copyfile(os.path.join(HERE, 'texinputs', 'fncychap.sty'),
+ os.path.join(argv[-1], 'fncychap.sty'))
+
- if len(args) < 1:
- argv.append(srcdir)
- if len(args) < 2:
- argv.append(htmldir)
- args = argv
-
print "Source directory is: ", argv[-2]
print "Target directory is: ", argv[-1]
print "(run `%s -h` to see the options available)" % argv[0]
More information about the Checkins
mailing list