File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ With the resulting documentation output of:
4040 :param b: The value to add to `a`
4141 :returns: The sum of `a` and `b`
4242
43-
4443.. _autodoc: https:// www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
4544.. _Sphinx: https:// www.sphinx-doc.org/en/master/index.html
4645
@@ -79,7 +78,7 @@ Similar Tools
7978 :target: https:// sphinx-c-autodoc.readthedocs.io/en/latest/?badge=latest
8079
8180.. inclusion_end
82-
81+
8382Full Documentation
8483------------------
8584
Original file line number Diff line number Diff line change 1+ import pathlib
12import setuptools
23
4+ # The directory containing this file
5+ HERE = pathlib .Path (__file__ ).parent
6+
7+ # The text of the README file
8+ README = (HERE / "README.rst" ).read_text ()
9+
10+ # Sanitize unknown directives from pyi
11+ README = README .replace (".. c:function::" , ".. code-block:: rst\n \n .. c:function::" )
12+
313setuptools .setup (
414 name = "sphinx-c-autodoc" ,
515 version = "0.1.0" ,
616 description = "A sphinx autodoc extension for c modules" ,
7- url = "https://github.com/speedyleion/sphinx-c-autodoc" ,
17+ long_description = README ,
18+ long_description_content_type = "text/x-rst" ,
19+ url = "https://sphinx-c-autodoc.readthedocs.io/en/latest/" ,
820 package_dir = {"" :"src" },
921 packages = setuptools .find_packages ("src" ),
1022 license = "Unlicense" ,
You can’t perform that action at this time.
0 commit comments