Maya Python and Sphinx Autodoc features?

Maya Python and Sphinx Autodoc features?

Anonymous
Not applicable
749 Views
2 Replies
Message 1 of 3

Maya Python and Sphinx Autodoc features?

Anonymous
Not applicable
Hi,

I am in the process of writing a custom Python API for my studio. I've been tasked with providing a documentation system to allow my colleagues to build their own tools based on our API base classes and functions. I have chosen Sphinx, as it is what Python uses to create their own docs online. Sphinx offers a very cool 'autodoc' extension that...well...automatically document your code based on your docstrings.

Sphinx - http://sphinx.pocoo.org/index.html

The autodoc extenstion - http://sphinx.pocoo.org/ext/autodoc.html#module-sphinx.ext.autodoc

THE PROBLEM:

Autodesk only provides the .pyc files for the cmds and mel packages. This poses a problem, as autodoc relies on importable .py files with docstrings.

PYMEL you say ?!?

That is a good solution, but I'd rather not rewrite the code, and I also don't want to get caught in a bind if pymel goes south or an application upgrade fries everything.

If anyone out there has ever gotten some sort of autodoc feature to work with anything else, please respond.

Thanks!!

-MT
0 Likes
750 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Have you tried epydoc? I has an introspect-only option, and a runtime API, so it doesn't rely on parsing source code.
0 Likes
Message 3 of 3

Anonymous
Not applicable
epydoc FTW! Thanks!
0 Likes