diff --git a/textproc/Makefile b/textproc/Makefile index 88494d7a4bed..7fbe316d7fd5 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1620,6 +1620,7 @@ SUBDIR += py-sphinxcontrib-bitbucket SUBDIR += py-sphinxcontrib-blockdiag SUBDIR += py-sphinxcontrib-devhelp + SUBDIR += py-sphinxcontrib-django SUBDIR += py-sphinxcontrib-fulltoc SUBDIR += py-sphinxcontrib-htmlhelp SUBDIR += py-sphinxcontrib-httpdomain diff --git a/textproc/py-sphinxcontrib-django/Makefile b/textproc/py-sphinxcontrib-django/Makefile new file mode 100644 index 000000000000..1e5bd3b2a968 --- /dev/null +++ b/textproc/py-sphinxcontrib-django/Makefile @@ -0,0 +1,25 @@ +PORTNAME= sphinxcontrib-django +PORTVERSION= 2.5 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Improve the Sphinx autodoc for Django classes +WWW= https://github.com/sphinx-doc/sphinxcontrib-django + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pprintpp>=0:devel/py-pprintpp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=3.4.0,1:textproc/py-sphinx@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/textproc/py-sphinxcontrib-django/distinfo b/textproc/py-sphinxcontrib-django/distinfo new file mode 100644 index 000000000000..464b19b3fc08 --- /dev/null +++ b/textproc/py-sphinxcontrib-django/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1727314492 +SHA256 (sphinxcontrib-django-2.5.tar.gz) = 45a54c0cc1f641d6c15872828862f0738348ca8d7d5b92777bcaa530678c2cc4 +SIZE (sphinxcontrib-django-2.5.tar.gz) = 23788 diff --git a/textproc/py-sphinxcontrib-django/pkg-descr b/textproc/py-sphinxcontrib-django/pkg-descr new file mode 100644 index 000000000000..78a43dcdc6de --- /dev/null +++ b/textproc/py-sphinxcontrib-django/pkg-descr @@ -0,0 +1,14 @@ +sphinxcontrib-django is a sphinx extension which improves the documentation of +Django apps. + +Improvements for the output of Sphinx's autodoc for Django classes: +- List all model and form fields as class parameters +- Improve model field representations +- Link related and reverse related fields to the referenced class +- Hide irrelevant runtime information like declared_fieldsets, fieldsets and + Meta from classes +- Add information about autogenerated methods +- Fix intersphinx mappings to Django modules +- Custom text roles to cross-reference the documentations of Django (:setting:, + :templatetag:, :templatefilter:, :fieldlookup:) and Sphinx (:event:, + :confval:)