1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

www/py-ghp-import: Add py-ghp-import 2.0.2

GitHub Pages is a pretty awesome service that GitHub provides for hosting
project documentation. The only thing is that it requires a gh-pages branch that
is the site's document root. This means that keeping documentation sources in
the branch with code is a bit difficult. And it really turns into a head
scratcher for things like Sphinx that want to access documentation sources and
code sources at the same time.

Then I stumbled across an interesting looking package called github-tools that
looked almost like what I wanted. It was a tad complicated and more involved
than I wanted but it gave me an idea. Why not just write a script that can copy
a directory to the gh-pages branch of the repository. This saves me from even
having to think about the branch and everything becomes magical.

This is what ghp-import was written for.

WWW: https://github.com/c-w/ghp-import
This commit is contained in:
Po-Chuan Hsieh 2021-09-28 04:33:37 +08:00
parent c71c5b210b
commit edcdb5ee34
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 42 additions and 0 deletions

View File

@ -1635,6 +1635,7 @@
SUBDIR += py-frozen-flask
SUBDIR += py-gandi.cli
SUBDIR += py-gevent-websocket
SUBDIR += py-ghp-import
SUBDIR += py-google
SUBDIR += py-google-api-core
SUBDIR += py-google-api-python-client

View File

@ -0,0 +1,22 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= ghp-import
PORTVERSION= 2.0.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Copy your docs directly to the gh-pages branch
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.1:devel/py-dateutil@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1632773097
SHA256 (ghp-import-2.0.2.tar.gz) = 947b3771f11be850c852c64b561c600fdddf794bab363060854c1ee7ad05e071
SIZE (ghp-import-2.0.2.tar.gz) = 10928

View File

@ -0,0 +1,16 @@
GitHub Pages is a pretty awesome service that GitHub provides for hosting
project documentation. The only thing is that it requires a gh-pages branch that
is the site's document root. This means that keeping documentation sources in
the branch with code is a bit difficult. And it really turns into a head
scratcher for things like Sphinx that want to access documentation sources and
code sources at the same time.
Then I stumbled across an interesting looking package called github-tools that
looked almost like what I wanted. It was a tad complicated and more involved
than I wanted but it gave me an idea. Why not just write a script that can copy
a directory to the gh-pages branch of the repository. This saves me from even
having to think about the branch and everything becomes magical.
This is what ghp-import was written for.
WWW: https://github.com/c-w/ghp-import