8000 Remove Python2 leftovers (#1514) · python-sidebar/python_rtd_theme@ffdabad · GitHub
[go: up one dir, main page]

Skip to content

Commit ffdabad

Browse files
authored
Remove Python2 leftovers (readthedocs#1514)
1 parent c190c00 commit ffdabad

File tree

2 files changed

+8
-178
lines changed

2 files changed

+8
-178
lines changed

docs/demo/api.rst

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,11 @@ API documentation and generated content
77
:mod:`test_py_module`
88
=====================
99

10-
.. only:: python3
10+
.. automodule:: test_py_module.test
11+
:members:
12+
:private-members:
13+
:special-members:
1114

12-
.. automodule:: test_py_module.test
13-
:members:
14-
:private-members:
15-
:special-members:
16-
17-
.. only:: python2
18-
19-
.. automodule:: test_py_module.test_py27
20-
:members:
21-
:private-members:
22-
:special-members:
2315

2416
C++ API
2517
=======
@@ -153,18 +145,8 @@ Sphinx Extensions
153145
sphinx.ext.autosummary
154146
----------------------
155147

156-
.. only:: python3
157-
158-
.. autosummary::
159-
160-
test_py_module.test.add_numbers
161-
test_py_module.test.subtract_numbers
162-
test_py_module.test.Foo
163-
164-
.. only:: python2
165-
166-
.. autosummary::
148+
.. autosummary::
167149

168-
test_py_module.test_py27.add_numbers
169-
test_py_module.test_py27.subtract_numbers
170-
test_py_module.test_py27.Foo
150+
test_py_module.test.add_numbers
151+
test_py_module.test.subtract_numbers
152+
test_py_module.test.Foo

docs/demo/test_py_module/test_py27.py

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0