Scripts for building or compiling the software API
This module provides scripts for reading through the source code, pulling out the docstrings, and generating HTML API from them. The output will be copied to the doc/api directory.
Construct a reST header from a string.
Parameters : | string : str
level : int
|
---|---|
Returns : | str :
|
Convert a path to an import path.
Parameters : | path : str
|
---|---|
Returns : | str :
|
Construct the output file path for a module.
The form of the output path is api_[packages]_[module name].rst, where [packages] is an underscore-separated sequence of package names leading to the module, but not including “src”.
Parameters : | path : str
|
---|---|
Returns : | str :
|
Construct the output file path for a package.
If path refers to the top level of the source tree, the output is “index.rst”. Otherwise, it is an underscore-separated list of path elements relative to the project home, beginning with “api” and not including “src”.
Parameters : | path : str
|
---|---|
Returns : | str :
|
Create a documentation file for a module.
The output file consists of the following parts:
Parameters : | path : str
|
---|
Construct the documentation file for a package.
The file consists first of the docstring from the package’s __init__ module. Then follows a list of the contents of the package. Its modules come first, and the sub-packages follow.
Parameters : | children : list of str
childPackages : list of str
|
---|
Format HTML Help files so that wxPython can display them.
Produce the manual in the Microsoft HTML Help format.
Remove the old documentation from doc/htmlhelp. Then generate the new files by running the make file. Process these files to make them suitable for inclusion in wxPython’s HTML Help frames, and run them through my own script to get the syntax highlighting done properly. Finally, move the result into the doc folder and delete the build directory.
Generate a PDF of the documentation.
Delete the old PDF. Then set the PYTHONPATH to include the Transport directory. Run the make file to prepare the LaTeX sources. Then run pdflatex (twice to make sure contents and indices get updated). Move the resulting PDF into the project home folder. Delete the documentation build directory to avoid keeping old files.
Extract the docstrings from the desired modules and create HTML API.
First, remove the previous version of the documentation from the src/api directory. Then run the make.bat file generated by the sphinx-quickstart script to convert this to HTML. Finally, move the output back into the src/api directory.
Copy the SVN admin areas without connecting to the repository.
Update a conf.py file to use the new verison.
Return whether the given path should be included in the API.
Parameters : | path : str
|
---|---|
Returns : | bool :
|
Read through src/ and generate an API; update the version.
Recursively scan through the main source code folder of the project and construct code for the documented packages and modules. Treat any folder which contains an __init__.py as a package, and treat all items with a ”.py” extension in such a folder as modules. From each package, create a list of sub-packages and modules and from each module extract a list of classes and functions, constructing reST documentation as appropriate.
Compile the manual’s reST sources into a PDF and HTML Help files.
Update software documentation.
Parameters : | newVersion : str
api : bool
manual : bool
|
---|