[Checkins] SVN: Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py Remove old directive.

Uli Fouquet uli at gnufix.de
Tue Feb 26 21:21:43 EST 2008


Log message for revision 84309:
  Remove old directive.

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-27 02:15:22 UTC (rev 84308)
+++ Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py	2008-02-27 02:21:43 UTC (rev 84309)
@@ -26,8 +26,8 @@
 from ulif.rest import pygments_directive
 import sphinx
 from sphinx.util.console import nocolor
+import latex_hacks
 
-
 HERE = os.path.dirname(__file__)
 
 SRCDIR_ALL = os.path.dirname(os.path.dirname(__file__))
@@ -38,22 +38,6 @@
 
 LATEX_ALL = os.path.join(HERE, 'latex')
 
-
-def simple_directive(
-    name, arguments, options, content, lineno,
-    content_offset, block_text, state, state_machine):
-    """A docutils directive, that feeds content as literal block.
-
-    This is needed to circumvent highlighting quirks when doing
-    non-HTML output. The pygments_directive delivers plain HTML, which
-    we must avoid when generating LaTeX for example.
-    """
-    return [nodes.literal_block('', '\n'.join(content), options=options)]
-
-simple_directive.arguments = (1, 0, 1)
-simple_directive.content = 1
-
-
 LATEX_SETTINGS = {
     'DEFAULT': LatexFormatter(),
     'VARIANTS' : {
@@ -168,8 +152,6 @@
             directives.register_directive('code-block',
                                           pygments_latex_directive)
 
-            import latex_hacks
-            
             # Set default sourcedir...
             if len(args) < 2:
                 argv[-1] = latexdir



More information about the Checkins mailing list