mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 16:13:21 -04:00
dev-cpp/vexcl: improve docs WIP
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
11
dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch
Normal file
11
dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/docs/conf.py
|
||||
+++ b/docs/conf.py
|
||||
@@ -45,7 +45,7 @@
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
-extensions = ['breathe', 'sphinx.ext.mathjax',
|
||||
+extensions = ['breathe', 'sphinx.ext.mathjax', 'sphinx.ext.autodoc',
|
||||
'matplotlib.sphinxext.plot_directive']
|
||||
|
||||
breathe_projects = {'VEXCL' : 'xml'}
|
||||
@@ -3,9 +3,11 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
#DOCS_AUTODOC=0
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DEPEND="dev-python/sphinx-bootstrap-theme"
|
||||
DOCS_DEPEND="
|
||||
dev-python/breathe
|
||||
dev-python/sphinx-bootstrap-theme
|
||||
"
|
||||
DOCS_DIR="docs"
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
@@ -29,9 +31,10 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "s|git_version()|${PV}|g" -i docs/conf.py || die
|
||||
sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user