1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Theme and extension support for Sphinx documentation that is published to

docs.openstack.org and developer.openstack.org.

WWW: https://pypi.org/project/openstackdocstheme/

PR:		228681
Submitted by:	freebsd_ports@k-worx.org
Sponsored by:	iXsystems Inc.
This commit is contained in:
Martin Wilke 2018-06-22 13:43:05 +00:00
parent e3fee82cc7
commit 9ee7c94ae7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473041
5 changed files with 68 additions and 0 deletions

View File

@ -1328,6 +1328,7 @@
SUBDIR += py-nltk
SUBDIR += py-numpydoc
SUBDIR += py-openpyxl
SUBDIR += py-openstackdocstheme
SUBDIR += py-orange3-text
SUBDIR += py-pager
SUBDIR += py-pandocfilters

View File

@ -0,0 +1,37 @@
# $FreeBSD$
PORTNAME= openstackdocstheme
DISTVERSION= 1.21.0
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= freebsd_ports@k-worx.org
COMMENT= OpenStack Docs Theme
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/dulwich@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils concurrent autoplist
NO_ARCH= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/dulwich@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/build/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo -and ! -name objects.inv")
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1527880367
SHA256 (openstackdocstheme-1.21.0.tar.gz) = 20df88482739f76c9007385c6314de7b787ad5c7bdcd23df5aa5c9c012f32d92
SIZE (openstackdocstheme-1.21.0.tar.gz) = 1191580

View File

@ -0,0 +1,23 @@
--- openstackdocstheme/ext.py.orig 2018-03-29 20:08:16 UTC
+++ openstackdocstheme/ext.py
@@ -95,13 +95,13 @@ def _html_page_context(app, pagename, te
global _html_context_data
if _html_context_data is None:
_html_context_data = {}
- try:
- _html_context_data['gitsha'] = subprocess.check_output(
- ['git', 'rev-parse', 'HEAD'],
- ).decode('utf-8').strip()
- except Exception:
- logger.warning('Cannot get gitsha from git repository.')
- _html_context_data['gitsha'] = 'unknown'
+ #try:
+ # _html_context_data['gitsha'] = subprocess.check_output(
+ # ['git', 'rev-parse', 'HEAD'],
+ # ).decode('utf-8').strip()
+ #except Exception:
+ # logger.warning('Cannot get gitsha from git repository.')
+ _html_context_data['gitsha'] = 'unknown'
doc_path = _get_doc_path(app)
repo_name = app.config.repository_name

View File

@ -0,0 +1,4 @@
Theme and extension support for Sphinx documentation that is published to
docs.openstack.org and developer.openstack.org.
WWW: https://pypi.org/project/openstackdocstheme/