Date: Mon, 28 Feb 2022 12:03:28 GMT From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 4d0c38877a77 - main - textproc/py-mkdocs-autorefs: New port Message-ID: <202202281203.21SC3Sat095345@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d0c38877a77eb7623f27e02127a22c6a8c92b1f commit 4d0c38877a77eb7623f27e02127a22c6a8c92b1f Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2022-02-28 11:48:40 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2022-02-28 11:48:40 +0000 textproc/py-mkdocs-autorefs: New port MkDocs generates anchors for each heading, and they can always be used to link to something, either within the same page or by specifying the path of the other page. But with this plugin, you can link to a heading from any other page on the site without needing to know the path of either of the pages, just the heading title itself. WWW: https://github.com/mkdocstrings/autorefs --- textproc/Makefile | 1 + textproc/py-mkdocs-autorefs/Makefile | 21 +++++++++++++++++++++ textproc/py-mkdocs-autorefs/distinfo | 3 +++ textproc/py-mkdocs-autorefs/pkg-descr | 9 +++++++++ 4 files changed, 34 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index b24af10abded..0debc484f844 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1364,6 +1364,7 @@ SUBDIR += py-misaka SUBDIR += py-mistune SUBDIR += py-mkdocs + SUBDIR += py-mkdocs-autorefs SUBDIR += py-mkdocs-material SUBDIR += py-mkdocs-material-extensions SUBDIR += py-mkdocs-nature diff --git a/textproc/py-mkdocs-autorefs/Makefile b/textproc/py-mkdocs-autorefs/Makefile new file mode 100644 index 000000000000..30861e52c8f1 --- /dev/null +++ b/textproc/py-mkdocs-autorefs/Makefile @@ -0,0 +1,21 @@ +PORTNAME= mkdocs-autorefs +DISTVERSION= 0.3.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Automatically link across pages in MkDocs + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markdown>=3.3<4.0:textproc/py-markdown@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mkdocs>=1.1<2.0:textproc/py-mkdocs@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/textproc/py-mkdocs-autorefs/distinfo b/textproc/py-mkdocs-autorefs/distinfo new file mode 100644 index 000000000000..a8c6497ce053 --- /dev/null +++ b/textproc/py-mkdocs-autorefs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645878017 +SHA256 (mkdocs-autorefs-0.3.1.tar.gz) = 12baad29359f468b44d980ed35b713715409097a1d8e3d0ef90962db95205eda +SIZE (mkdocs-autorefs-0.3.1.tar.gz) = 8940 diff --git a/textproc/py-mkdocs-autorefs/pkg-descr b/textproc/py-mkdocs-autorefs/pkg-descr new file mode 100644 index 000000000000..39b83729ed13 --- /dev/null +++ b/textproc/py-mkdocs-autorefs/pkg-descr @@ -0,0 +1,9 @@ +MkDocs generates anchors for each heading, and they can always be used to link +to something, either within the same page or by specifying the path of the +other page. + +But with this plugin, you can link to a heading from any other page on the site +without needing to know the path of either of the pages, just the heading title +itself. + +WWW: https://github.com/mkdocstrings/autorefs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202281203.21SC3Sat095345>