Skip to content

Commit 745e92c

Browse files
committed
Add viewcode functionality
Support for viewing the source listings of autodocumented C modules has now been added. closes: #4
1 parent 4428fe0 commit 745e92c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1392
-278
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ valid-classmethod-first-arg=mcs,cls
197197

198198
# these are common "protected" variable names that are usually acceptable
199199
# to access. For example, the ._fields attribute on a namedtuple()
200-
exclude-protected=_asdict,_fields,_replace,_source,_make
200+
exclude-protected=_asdict,_fields,_replace,_source,_make,_viewcode_c_modules
201201

202202

203203
[DESIGN]

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
99
`v0.2.0-dev`_ (unreleased)
1010
==========================
1111

12+
Added
13+
-----
14+
15+
* Viewcode functionality which allows for listing the source C files and
16+
providing links between the documentation and the C source listings.
17+
1218
Fixes
1319
-----
1420

docs/_api/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:orphan:
22

3-
src
4-
===
3+
sphinx_c_autodoc
4+
================
55

66
.. toctree::
77
:maxdepth: 4

docs/_api/sphinx_c_autodoc.clang.comments.rst

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

docs/_api/sphinx_c_autodoc.clang.patches.rst

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

docs/_api/sphinx_c_autodoc.clang.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ sphinx\_c\_autodoc.clang package
44
Submodules
55
----------
66

7-
.. toctree::
7+
sphinx\_c\_autodoc.clang.comments module
8+
----------------------------------------
9+
10+
.. automodule:: sphinx_c_autodoc.clang.comments
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
sphinx\_c\_autodoc.clang.patches module
16+
---------------------------------------
17+
18+
.. automodule:: sphinx_c_autodoc.clang.patches
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
822

9-
sphinx_c_autodoc.clang.comments
10-
sphinx_c_autodoc.clang.patches
1123

1224
Module contents
1325
---------------
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sphinx\_c\_autodoc.domains package
2+
==================================
3+
4+
Submodules
5+
----------
6+
7+
sphinx\_c\_autodoc.domains.c module
8+
-----------------------------------
9+
10+
.. automodule:: sphinx_c_autodoc.domains.c
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
16+
Module contents
17+
---------------
18+
19+
.. automodule:: sphinx_c_autodoc.domains
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

docs/_api/sphinx_c_autodoc.loader.rst

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

docs/_api/sphinx_c_autodoc.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ Subpackages
77
.. toctree::
88

99
sphinx_c_autodoc.clang
10+
sphinx_c_autodoc.domains
1011
sphinx_c_autodoc.napoleon
12+
sphinx_c_autodoc.viewcode
1113

1214
Submodules
1315
----------
1416

15-
.. toctree::
17+
sphinx\_c\_autodoc.loader module
18+
--------------------------------
19+
20+
.. automodule:: sphinx_c_autodoc.loader
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
1624

17-
sphinx_c_autodoc.loader
1825

1926
Module contents
2027
---------------
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sphinx\_c\_autodoc.viewcode package
2+
===================================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: sphinx_c_autodoc.viewcode
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:

0 commit comments

Comments
 (0)