Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/readthedocs/sphinx_rtd_theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/demo/api.rst')
-rw-r--r--docs/demo/api.rst32
1 files changed, 24 insertions, 8 deletions
diff --git a/docs/demo/api.rst b/docs/demo/api.rst
index 111d357..ae23df7 100644
--- a/docs/demo/api.rst
+++ b/docs/demo/api.rst
@@ -7,11 +7,19 @@ API documentation and generated content
:mod:`test_py_module`
=====================
-.. automodule:: test_py_module.test
- :members:
- :private-members:
- :special-members:
+.. only:: python3
+ .. automodule:: test_py_module.test
+ :members:
+ :private-members:
+ :special-members:
+
+.. only:: python2
+
+ .. automodule:: test_py_module.test_py27
+ :members:
+ :private-members:
+ :special-members:
C++ API
=======
@@ -145,10 +153,18 @@ Sphinx Extensions
sphinx.ext.autosummary
----------------------
-.. autosummary::
+.. only:: python3
+
+ .. autosummary::
+
+ test_py_module.test.add_numbers
+ test_py_module.test.subtract_numbers
+ test_py_module.test.Foo
- test_py_module.test.add_numbers
- test_py_module.test.subtract_numbers
- test_py_module.test.Foo
+.. only:: python2
+ .. autosummary::
+ test_py_module.test_py27.add_numbers
+ test_py_module.test_py27.subtract_numbers
+ test_py_module.test_py27.Foo