[python-users] Sphinx

Jan Ulrich Hasecke juhasecke at googlemail.com
Di Mai 4 11:48:14 CEST 2010


Hallo Andi,

ich hoffe, ich nerve noch nicht zu sehr:

Nächste Frage

Nehmen wir an ich hab:

myprojekt/
myprojekt/test.py
myprojekct/docs

und in docs die Sphinx-Doku.

index.rst:

.. automodule:: test

.. autofunction:: test.bar()


Was muss ich wo eintragen, damit ich über autodoc die docstrings aus test.py einbinden kann?

Ich kriege immer den Fehler:

/Users/Shared/Code/sphinxtest/docs/index.rst:8: (WARNING/2) autodoc can't import/find function 'test.bar', it reported error: "bar", please check your spelling and sys.path

juh
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : smime.p7s
Dateityp    : application/pkcs7-signature
Dateigröße  : 2295 bytes
Beschreibung: nicht verfügbar
URL         : <http://lists.uni-koeln.de/pipermail/python-users/attachments/20100504/295441b2/attachment.p7s>


Mehr Informationen über die Mailingliste python-users