mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6986: apidoc: misdetects module name for .so file inside module
This commit is contained in:
parent
577b80cb8e
commit
e339c39e88
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ Bugs fixed
|
|||||||
* #6906, #6907: autodoc: failed to read the source codes encoeded in cp1251
|
* #6906, #6907: autodoc: failed to read the source codes encoeded in cp1251
|
||||||
* #6961: latex: warning for babel shown twice
|
* #6961: latex: warning for babel shown twice
|
||||||
* #6559: Wrong node-ids are generated in glossary directive
|
* #6559: Wrong node-ids are generated in glossary directive
|
||||||
|
* #6986: apidoc: misdetects module name for .so file inside module
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -128,7 +128,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
|
|||||||
subpackages = [module_join(master_package, subroot, pkgname)
|
subpackages = [module_join(master_package, subroot, pkgname)
|
||||||
for pkgname in subpackages]
|
for pkgname in subpackages]
|
||||||
# build a list of sub modules
|
# build a list of sub modules
|
||||||
submodules = [path.splitext(sub)[0] for sub in py_files
|
submodules = [sub.split('.')[0] for sub in py_files
|
||||||
if not is_skipped_module(path.join(root, sub), opts, excludes) and
|
if not is_skipped_module(path.join(root, sub), opts, excludes) and
|
||||||
sub != INITPY]
|
sub != INITPY]
|
||||||
submodules = [module_join(master_package, subroot, modname)
|
submodules = [module_join(master_package, subroot, modname)
|
||||||
|
Loading…
Reference in New Issue
Block a user