Skip to content

Commit

Permalink
NEW: sphinx+autodoc - proof of concept
Browse files Browse the repository at this point in the history
Note that this only makes sense with the namespace_fixup branch of mdp.
  • Loading branch information
keszybz committed Jul 26, 2010
1 parent 58c8bb8 commit ad42b8b
Show file tree
Hide file tree
Showing 11 changed files with 110 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sphinx/ext/private_members_too.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys

def do_not_skip(app, what, name, obj, skip, options):
ret = skip
if name.startswith('_') and not name.startswith('__'):
ret = False
#print "autodoc-skip-member", name, skip, '->', ret
return ret

def setup(app):
app.connect('autodoc-skip-member', do_not_skip)
return
7 changes: 7 additions & 0 deletions sphinx/source/doc/bimdp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BiMDP module
============

.. automodule:: bimdp
:members:
:undoc-members:
:inherited-members:
9 changes: 9 additions & 0 deletions sphinx/source/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _api:

API documentation
=================

.. toctree::

mdp/index
bimdp
9 changes: 9 additions & 0 deletions sphinx/source/doc/mdp/graph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

module mdp.graph
================

.. automodule:: mdp.graph
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions sphinx/source/doc/mdp/helper_funcs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=======================
module mdp.helper_funcs
=======================

.. automodule:: mdp.helper_funcs
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions sphinx/source/doc/mdp/hinet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

module mdp.hinet
================

.. automodule:: mdp.hinet
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
25 changes: 25 additions & 0 deletions sphinx/source/doc/mdp/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

package mdp
===========

.. toctree::

nodes
graph
parallel
hinet
utils
helper_funcs

.. automodule:: mdp
:members:
:undoc-members:
:inherited-members:
:show-inheritance:

Individual nodes are in :doc:`nodes`

.. numx
.. numx_fft
.. numx_linalg
.. numx_rand
11 changes: 11 additions & 0 deletions sphinx/source/doc/mdp/nodes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
================
module mdp.nodes
================

.. contents::

.. automodule:: mdp.nodes
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions sphinx/source/doc/mdp/parallel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

module mdp.parallel
===================

.. automodule:: mdp.parallel
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions sphinx/source/doc/mdp/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

module mdp.utils
================

.. .. automodule:: mdp.utils
.. :members:
.. :undoc-members:
.. :inherited-members:
.. :show-inheritance:
1 change: 1 addition & 0 deletions sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ To learn more about MDP:
* :ref:`Full list <node-list>` of implemented algorithms
* Typical usage :ref:`examples <examples>`
* `API Index <api/index.html>`_
* `autodoc api <doc/index.html>`_

Using MDP is as easy as: ::

Expand Down

0 comments on commit ad42b8b

Please sign in to comment.