tom*_*ton 8 python docstring python-sphinx
我正在使用Sphinx来记录我的Python包.当我在我的模块上使用automodule指令时:
.. automodule:: mymodule
:members:
Run Code Online (Sandbox Code Playgroud)
它会打印包括文档字符串中的GPL通知在内的所有内容.有没有办法告诉Sphinx忽略docstring/GPL还是应该把它留在文档中?
Dav*_*use 11
我刚刚遇到了同样的问题并通过将许可证通知移出文档字符串并进入文件顶部的常规注释块来修复它.
例如:
# Copyright 2013 Example, inc. All rights reserved.
#
# License ...
# ...
# ...
""" This is the module docstring.
Description of the module here.
Etc, etc.
"""
import ....
...
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
888 次 |
最近记录: |