mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9609 from tk0miya/9608_apidoc_pymod_definition_for_implicit_namespace
Fix #9608: apidoc: module is not described if implicit namespace package
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -25,6 +25,8 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9608: apidoc: apidoc does not generate a module definition for implicit
|
||||
namespace package
|
||||
* #9487: autodoc: typehint for cached_property is not shown
|
||||
* #9509: autodoc: AttributeError is raised on failed resolving typehints
|
||||
* #9518: autodoc: autodoc_docstring_signature does not effect to ``__init__()``
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
{{- [pkgname, "package"] | join(" ") | e | heading }}
|
||||
{% endif %}
|
||||
|
||||
{%- if is_namespace %}
|
||||
.. py:module:: {{ pkgname }}
|
||||
{% endif %}
|
||||
|
||||
{%- if modulefirst and not is_namespace %}
|
||||
{{ automodule(pkgname, automodule_options) }}
|
||||
{% endif %}
|
||||
|
||||
@@ -635,6 +635,8 @@ def test_namespace_package_file(tempdir):
|
||||
assert content == ("testpkg namespace\n"
|
||||
"=================\n"
|
||||
"\n"
|
||||
".. py:module:: testpkg\n"
|
||||
"\n"
|
||||
"Submodules\n"
|
||||
"----------\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user