-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/doc_generate/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyc

ó
;ÝZc@@s¿dZddlmZddlZddlZddlZddlZddlZddlZd„Z	d„Z
d„Zdddd	„Z
d
dddd„Zd„Zd
ZdZdZdS(s™Generate reStructuredText source for the User Reference Manual.
Loosely based on the manpage generator autodoc_man.py.

Written by the Bazaar community.
i(tabsolute_importNcC@sd|jS(sProvides name of manuals
%s_man.txt(tbzr_name(toptions((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pytget_filename"scC@sátjƒ}tj|ƒ}i|jd6tjd|ƒd6tjd|ƒd6tjd6}t|ddƒ}|dkr‚d}ntjj	|ƒ}|j
t|ƒ|j
t|ƒ|j
t
||ƒƒ|j
t|ƒdS(	sCreate manual in RSTX formattbzrcmds%Y-%m-%dt	datestamps%Y-%m-%d %H:%M:%S +0000t	timestamptversiontfilenameN(ttimetgmtimeRtstrftimetbzrlibt__version__tgetattrtNonetosutilstdirnametwritet
rstx_preamblet	rstx_headt	_get_bodyt	rstx_foot(Rtoutfilettttttparamstnominated_filenamet	topic_dir((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pytinfogen's

	cC@s’ddlm}m}m}tjj}g}|jt||dd|ƒƒ|jt||dd|ƒƒ|jt	|d|ƒƒdj
|ƒS(sBuild the manual content.i(tSECT_CONCEPTt	SECT_LISTtSECT_PLUGINtConceptst
output_dirtListss
(tbzrlib.help_topicsRRR Rthelp_topicsttopic_registrytappendt_get_sectiont_get_commands_sectiontjoin(RRRRR tregistrytresult((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyR<s

t#t=cC@s$|d	k	}||t|ƒdg}|rD|jdddgƒnt|j|ƒƒ}x³|D]«}	|j|	ƒ}
|
jddƒ\}}|j|ƒsÂ|t|ƒ}
d||
|f}
nd||f}
|rþt||	|
ƒ}|j	d|ƒq`|j	|
ƒq`Wddj
|ƒdS(
sÐBuild the manual part from topics matching that section.
    
    If output_dir is not None, topics are dumped into text files there
    during processing, as well as being included in the return result.
    ts.. toctree::s   :maxdepth: 1s
is%s
%s

%s

s%s
%s

s   %sN(Rtlentextendtsortedtget_topics_for_sectiont
get_detailtsplitt
startswitht
_dump_textR'R*(R+tsectionttitlet
hdg_level1t
hdg_level2R"tfile_per_topictlinesttopicsttopicthelptheadingttextt	underlinettopic_id((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyR(Is"
tCommandscC@s|d	k	}||t|ƒdg}|rD|jdddgƒnttjjƒƒ}x©|D]¡}tjj|ƒ}	|	jr‡q`n|}
|t|
ƒ}|	j	dt
dtƒ}d|
||f}
|rôt|||
ƒ}|j
d|ƒq`|j
|
ƒq`Wddj|ƒdS(
s3Build the commands reference section of the manual.R/s.. toctree::s   :maxdepth: 1tplaintsee_also_as_linkss%s
%s

%s

s   %ss
N(RR0R1R2Rtcommandstbuiltin_command_namestget_cmd_objectthiddent
get_help_texttFalsetTrueR7R'R*(R+R9R:R;R"R<R=tcmdstcmd_namet
cmd_objectRARCRBR@RD((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyR)gs$
	cC@sSd|df}tjj||dƒ}t|dƒ}|j|ƒ|jƒ|S(s Dump text for a topic to a file.s%s-%sR@s.txttw(RRtpathjointopenRtclose(R"R?RBRDRtf((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyR7s

s².. This file is autogenerated from the output of
..     %(bzrcmd)s help topics
..     %(bzrcmd)s help commands
..     %(bzrcmd)s help <cmd>
..
.. Generation time: %(timestamp)s

s#####################
Bazaar User Reference
#####################

About This Manual
#################

This manual is generated from Bazaar's online help. To use
the online help system, try the following commands.

    Introduction including a list of commonly used commands::

        bzr help

    List of topics and a summary of each::

        bzr help topics

    List of commands and a summary of each::

        bzr help commands

    More information about a particular topic or command::

        bzr help topic-or-command-name

The following web sites provide further information on Bazaar:

:Home page:                     http://bazaar.canonical.com/
:Official docs:                 http://doc.bazaar.canonical.com/
:Launchpad:                     https://launchpad.net/bzr/
t
(t__doc__t
__future__RR	Rtbzrlib.helpR$tbzrlib.commandstbzrlib.osutilsRRRRR(R)R7RRR(((sD/usr/lib/python2.7/dist-packages/bzrlib/doc_generate/autodoc_rstx.pyt<module>s$			
	#

Copyright © 2017 || Recoded By Mr.Bumblebee