Over the last two weeks, the dev team was intensively working on major updates of the Freestyle Python API documentation. The idea was to incorporate the contents of the original Freestyle API reference manual into the Blender/Freestyle Python API implementation in the form of Sphinx-based docstrings (i.e., pieces of API descriptions in string literals). This way the dev team can take the advantages of the new Blender 2.5 documentation system that allows us 1) to keep the API implementation and documentation in sync by having docstrings within the source code, and 2) to generate an up-to-date and nicely formatted API reference manual through the fully automated Blender 2.5 documentation tools. Not only we imported the contents of the original Freestyle API reference manual and reformatted them with Sphinx mark-ups, but also we made a substantial revision of the text by filling missing entries, elaborating sparse descriptions, and making C++-oriented descriptions more suitable for Python programmers.
For those who are interested in how the new Freestyle Python API reference looks like, here is a screenshot (click it to enlarge):
Branch users can generate the API reference themselves by following the instructions shown in the Web page of the documentation tools. Note that generating the formatted API documentation is not part of the usual build process. You need to start the documentation generation separately after you have built a Blender executable file.
The next target is to finish the Python API improvements (finally). The documentation updates were indeed a nice opportunity to go through the current API implementation with a fresh mind, and we identified some remaining API design and implementation issues. We are going to address them in the next weeks. The work on the API improvements will also be accompanied with further documentation updates in line with any changes in the API implementation. All standard style modules are accordingly updated as well.