diff --git a/textproc/Makefile b/textproc/Makefile index 69a18c92fb43..7e6e3863febe 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1612,6 +1612,7 @@ SUBDIR += py-sphinx-me SUBDIR += py-sphinx-multiversion SUBDIR += py-sphinx-multiversion-zrepl + SUBDIR += py-sphinx-notfound-page SUBDIR += py-sphinx-sitemap SUBDIR += py-sphinx-tabs SUBDIR += py-sphinx-theme-builder diff --git a/textproc/py-sphinx-notfound-page/Makefile b/textproc/py-sphinx-notfound-page/Makefile new file mode 100644 index 000000000000..0b59b61600cc --- /dev/null +++ b/textproc/py-sphinx-notfound-page/Makefile @@ -0,0 +1,23 @@ +PORTNAME= sphinx-notfound-page +DISTVERSION= 1.0.4 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSIONFULL} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Generate 404 Not Found Pages Automatically for Sphinx Docs +WWW= https://sphinx-notfound-page.readthedocs.io/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.9.0:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=5:textproc/py-sphinx@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +.include diff --git a/textproc/py-sphinx-notfound-page/distinfo b/textproc/py-sphinx-notfound-page/distinfo new file mode 100644 index 000000000000..61dd25973caa --- /dev/null +++ b/textproc/py-sphinx-notfound-page/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730477793 +SHA256 (sphinx_notfound_page-1.0.4.tar.gz) = 2a52f49cd367b5c4e64072de1591cc367714098500abf4ecb9a3ecb4fec25aae +SIZE (sphinx_notfound_page-1.0.4.tar.gz) = 519228 diff --git a/textproc/py-sphinx-notfound-page/pkg-descr b/textproc/py-sphinx-notfound-page/pkg-descr new file mode 100644 index 000000000000..9fabd7bd7467 --- /dev/null +++ b/textproc/py-sphinx-notfound-page/pkg-descr @@ -0,0 +1,6 @@ +Sphinx-notfound-page is a Sphinx extension to create custom 404 pages and help +you to generate proper resource links (js, css, images, etc) to render the page +properly. + +This extension was originally developed to be used on Read the Docs but it can +be used in other hosting services as well.