devinabox: List in the generated README where built documentation exists.
brett.cannon pushed 254340e39c79 to devinabox: http://hg.python.org/devinabox/rev/254340e39c79 changeset: 32:254340e39c79 user: Brett Cannon <brett@python.org> date: Sat Feb 26 21:50:53 2011 -0800 summary: List in the generated README where built documentation exists. files: make_a_box.py diff --git a/make_a_box.py b/make_a_box.py --- a/make_a_box.py +++ b/make_a_box.py @@ -131,6 +131,7 @@ url = 'https://brettsky@bitbucket.org/ned/coveragepy' directory = 'coveragepy' size = 133 # Includes the coverage report + docs = os.path.join('coverage_report', 'index.html') def build(self): """Run coverage over CPython.""" @@ -220,6 +221,7 @@ url = 'http://svn.python.org/projects/peps/trunk/' directory = 'peps' size = 20 + docs = os.path.join(directory, 'pep-0000.html') def build(self): """Build the PEPs.""" @@ -235,6 +237,7 @@ url = 'http://hg.python.org/devguide' directory = 'devguide' + docs = os.path.join(directory, '_build', 'html', 'index.html') def build(self): """Build the devguide using Sphinx from CPython's docs.""" @@ -259,6 +262,7 @@ url = 'http://hg.python.org/cpython' directory = 'cpython' size = 330 # Only docs are built + docs = os.path.join(directory, 'Doc', 'build', 'html', 'index.html') def create(self): """Clone CPython and get the necessary tools to build the @@ -303,6 +307,7 @@ if response not in ('Y', 'y'): sys.exit(0) else: + print() for provider in desired_providers: ins = provider() print('Fetching {} ...'.format(provider.__name__)) @@ -312,4 +317,9 @@ with open('README', 'w') as file: header = 'Python-Dev In a Box: created on {}\n' file.write(header.format(datetime.date.today())) + file.write('\n') + file.write('Documentation indices can be found at:\n') + for provider in desired_providers: + if hasattr(provider, 'docs'): + file.write(' {}\n'.format(provider.docs)) sys.exit(0) -- Repository URL: http://hg.python.org/devinabox
participants (1)
-
brett.cannon