summaryrefslogtreecommitdiff
path: root/sphinx/ext/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-31 01:18:57 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-31 01:18:57 +0900
commit52afc79e1f1a809319d53c11bd15c8f6e9eb7b12 (patch)
tree13ffe477be1cd0f7b3b2a4f22af1babd69dc2fed /sphinx/ext/apidoc.py
parent3ddbd73f495014a72d7afdd25714801d08239de5 (diff)
parent0f8a868bf738342194d07f2edcc866001590fd63 (diff)
downloadsphinx-git-52afc79e1f1a809319d53c11bd15c8f6e9eb7b12.tar.gz
Merge branch '2.0' into refactor_latex
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r--sphinx/ext/apidoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index 16eea9c11..1d12ac6a6 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -10,7 +10,7 @@
Copyright 2008 Société des arts technologiques (SAT),
https://sat.qc.ca/
- :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -128,7 +128,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
subpackages = [module_join(master_package, subroot, pkgname)
for pkgname in subpackages]
# 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
sub != INITPY]
submodules = [module_join(master_package, subroot, modname)