gpambrozio/PythonScripts — pull request #1 by robintw (2012-02-24 22:44:00+00:00)
Title: Updated to allow documentation of other Sphinx-generated documentation as well as the Python standard library.

gpambrozio,

I hope the below is of interest to you. I've never submitted a pull request via GitHub before - so I hope I've done all of this correctly. Thanks so much for the script and the docset for Python - I found out about it about an hour ago and have already used it many tens of times to look up documentation. I tried to get it set up to do NumPy as well, and that's what led to the alterations below.

Any queries - please feel free to contact me in any way.

Robin

Details below:
------------

Updated to allow documentation of other Sphinx-generated documentation as well as the Python standard library.

This was designed for generating docsets for NumPy and SciPy but should work with any Python modules that have been
documented using Sphinx.

The change has simply added processing of a single command-line argument, if present. If the script is called with no arguments
it behaves exactly as previously, generating documentation for whichever version of the Python standard library documentation
is in the current directory. If the script is called with one command-line argument, it simply sets the docset_name to the given
argument, and uses that whenever required in the code.

This allows the script to be called as ./create_docset.py numpy1.7 in a directory containing the NumPy HTML documentation
to produce a docset without any errors being generated.