[英]How do I display an image in Sphinx docs from a Python docstring?
[英]How do I get Sphinx to ignore the GPL notice in my docstring?
我正在使用Sphinx来记录我的Python包。 当我在我的模块上使用automodule指令时:
.. automodule:: mymodule
:members:
它会打印包括文档字符串中的GPL通知在内的所有内容。 有没有办法告诉Sphinx忽略docstring / GPL还是应该把它留在文档中?
我刚刚遇到了同样的问题并通过将许可证通知移出文档字符串并进入文件顶部的常规注释块来修复它。
例如:
# Copyright 2013 Example, inc. All rights reserved.
#
# License ...
# ...
# ...
""" This is the module docstring.
Description of the module here.
Etc, etc.
"""
import ....
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.