~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_rstx.py

  • Committer: Ian Clatworthy
  • Date: 2009-09-09 11:43:10 UTC
  • mto: (4634.37.2 prepare-2.0)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: ian.clatworthy@canonical.com-20090909114310-glw7tv76i5gnx9pt
put rules back in Makefile supporting plain-style docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import bzrlib.osutils
32
32
 
33
33
 
 
34
# Set this to True to generate a file per topic.
 
35
# This probably ought to be an option. The files probably
 
36
# ought to be prefixed with their section name as well so
 
37
# there's zero risk of clashing with a standard sphinx
 
38
# topic (like search.html).
 
39
FILE_PER_TOPIC = False
 
40
 
 
41
 
34
42
def get_filename(options):
35
43
    """Provides name of manual"""
36
44
    return "%s_man.txt" % (options.bzr_name)
119
127
 
120
128
def _dump_text(filename, text):
121
129
    """Dump text to filename."""
 
130
    if not FILE_PER_TOPIC:
 
131
        return
122
132
    f =  open(filename, "w")
123
133
    f.writelines(text)
124
134
    f.close()