/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/doc_generate/autodoc_rstx.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-29 03:28:14 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7305.
  • Revision ID: jelmer@jelmer.uk-20190529032814-fzqbrgf9647u9ptq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Generate reStructuredText source for the User Reference Manual.
18
18
Loosely based on the manpage generator autodoc_man.py.
19
19
 
20
 
Written by the Bazaar community.
 
20
Written by the Bazaar/Breezy community.
21
21
"""
22
22
 
23
23
from __future__ import absolute_import
130
130
    """Dump text for a topic to a file."""
131
131
    topic_id = "%s-%s" % (topic, "help")
132
132
    filename = breezy.osutils.pathjoin(output_dir, topic_id + ".txt")
133
 
    with open(filename, "w") as f:
 
133
    with open(filename, "wb") as f:
134
134
        f.write(text.encode('utf-8'))
135
135
    return topic_id
136
136
 
149
149
 
150
150
rstx_head = """\
151
151
#####################
152
 
Bazaar User Reference
 
152
Breezy User Reference
153
153
#####################
154
154
 
155
155
About This Manual
156
156
#################
157
157
 
158
 
This manual is generated from Bazaar's online help. To use
 
158
This manual is generated from Breezy's online help. To use
159
159
the online help system, try the following commands.
160
160
 
161
161
    Introduction including a list of commonly used commands::
174
174
 
175
175
        brz help topic-or-command-name
176
176
 
177
 
The following web sites provide further information on Bazaar:
 
177
The following web sites provide further information on Breezy:
178
178
 
179
179
:Home page:                     http://www.breezy-vcs.org/
180
 
:Bazaar docs:                   http://doc.bazaar.canonical.com/
 
180
:Breezy docs:                   http://www.breezy-vcs.org/doc/
181
181
:Launchpad:                     https://launchpad.net/brz/
182
182
"""
183
183