Fails. It's amazing how far can some bugs go unnoticed.
<a href="#" onclick="return toggle(this)">module</a> <a href="content.html" class="m-doc">content</a> <span class="m-doc">This overwrites the docstring for <code>content</code>.</span>
<ul class="m-doc">
<li>module <a href="content.docstring_summary.html" class="m-doc">docstring_summary</a> <span class="m-doc">This module retains summary from the docstring</span></li>
+ <li>module <a href="content.submodule.html" class="m-doc">submodule</a> <span class="m-doc">This submodule has an external summary.</span></li>
<li>class <a href="content.Class.html" class="m-doc">Class</a> <span class="m-doc">This overwrites the docstring for <code>content.Class</code>.</span></li>
<li>class <a href="content.ClassWithSummary.html" class="m-doc">ClassWithSummary</a> <span class="m-doc">This class has summary from the docstring</span></li>
</ul>
<dl class="m-doc">
<dt>module <a href="content.docstring_summary.html" class="m-doc">docstring_summary</a></dt>
<dd>This module retains summary from the docstring</dd>
+ <dt>module <a href="content.submodule.html" class="m-doc">submodule</a></dt>
+ <dd>This submodule has an external summary.</dd>
</dl>
</section>
<section id="classes">
"""Yes so this is module summary, not shown in the output"""
import enum
-from . import docstring_summary
+from . import docstring_summary, submodule
class Class:
"""And this class summary, not shown either"""
--- /dev/null
+# This module has an external summary
And adds detailed docs.
+.. py:module:: content.submodule
+ :summary: This submodule has an external summary.
+
.. py:class:: content.Class
:summary: This overwrites the docstring for ``content.Class``.