Ticket #12991: trac_12991-doctest.patch

File trac_12991-doctest.patch, 794 bytes (added by jhpalmieri, 10 years ago)
  • doc/common/builder.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1337718599 25200
    # Node ID cf11432fc13409e9558cd34e9e01e4464f3c209a
    # Parent  b53ac0f078944ebf35525de6fcb3542e37207502
    Do not doctest autogenerated rst files.
    
    diff --git a/doc/common/builder.py b/doc/common/builder.py
    a b class ReferenceSubBuilder(DocBuilder): 
    886886            logger.error("Warning: Missing title for %s", module_name)
    887887            title = "MISSING TITLE"
    888888
     889        # Don't doctest the autogenerated file.
     890        outfile.write(".. nodoctest\n\n")
     891        # Now write the actual content.
    889892        outfile.write(".. _%s:\n\n"%module_name)
    890893        outfile.write(title + '\n')
    891894        outfile.write('='*len(title) + "\n\n")