Add textproc/py-sphinxcontrib-napoleon

Sphinx extension that parses both NumPy and Google style docstrings

Napoleon is a pre-processor that parses NumPy and Google style docstrings and
converts them to reStructuredText before Sphinx attempts to parse them. This
happens in an intermediate step while Sphinx is processing the documentation,
so it doesn't modify any of the docstrings in your actual source code files.

WWW: https://pypi.org/project/sphinxcontrib-napoleon/
This commit is contained in:
Danilo G. Baio 2020-05-18 22:05:38 +00:00
parent f3b394bba3
commit 0019c1e729
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=535793
4 changed files with 33 additions and 0 deletions

View file

@ -1368,6 +1368,7 @@
SUBDIR += py-sphinxcontrib-htmlhelp
SUBDIR += py-sphinxcontrib-httpdomain
SUBDIR += py-sphinxcontrib-jsmath
SUBDIR += py-sphinxcontrib-napoleon
SUBDIR += py-sphinxcontrib-newsfeed
SUBDIR += py-sphinxcontrib-programoutput
SUBDIR += py-sphinxcontrib-qthelp

View file

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= sphinxcontrib-napoleon
DISTVERSION= 0.7
CATEGORIES= textproc
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dbaio@FreeBSD.org
COMMENT= Sphinx extension that parses both NumPy and Google style docstrings
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.5.2:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pockets>=0.3:devel/py-pockets@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1589655696
SHA256 (sphinxcontrib-napoleon-0.7.tar.gz) = 407382beed396e9f2d7f3043fad6afda95719204a1e1a231ac865f40abcbfcf8
SIZE (sphinxcontrib-napoleon-0.7.tar.gz) = 21232

View file

@ -0,0 +1,6 @@
Napoleon is a pre-processor that parses NumPy and Google style docstrings and
converts them to reStructuredText before Sphinx attempts to parse them. This
happens in an intermediate step while Sphinx is processing the documentation,
so it doesn't modify any of the docstrings in your actual source code files.
WWW: https://pypi.org/project/sphinxcontrib-napoleon/