mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #10200: apidoc: Duplicated submodules are shown for modules
This commit is contained in:
parent
5134dbcd0d
commit
6050062efa
2
CHANGES
2
CHANGES
@ -72,6 +72,8 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
|
||||
and .so files
|
||||
* #10279: autodoc: Default values for keyword only arguments in overloaded
|
||||
functions are rendered as a string literal
|
||||
* #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
|
||||
|
@ -117,6 +117,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
|
||||
submodules = [sub.split('.')[0] for sub in py_files
|
||||
if not is_skipped_module(path.join(root, sub), opts, excludes) and
|
||||
not is_initpy(sub)]
|
||||
submodules = sorted(set(submodules))
|
||||
submodules = [module_join(master_package, subroot, modname)
|
||||
for modname in submodules]
|
||||
options = copy(OPTIONS)
|
||||
|
Loading…
Reference in New Issue
Block a user