dev-cpp/vexcl: improve docs WIP

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-05-13 17:56:53 +02:00
parent 1a23cc6ad5
commit d288205bf8
2 changed files with 18 additions and 4 deletions

View 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'}

View File

@@ -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
}