commit:     fa6017832c8c03364550d3cf438d5edb8d4247e1
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 08:07:50 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Oct 10 08:08:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa601783

dev-python/pymdown-extensions: fix doc building

Closes: https://bugs.gentoo.org/859637
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/pymdown-extensions/pymdown-extensions-9.6.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-python/pymdown-extensions/pymdown-extensions-9.6.ebuild 
b/dev-python/pymdown-extensions/pymdown-extensions-9.6.ebuild
index 93c979c06ae4..c5e7c800284c 100644
--- a/dev-python/pymdown-extensions/pymdown-extensions-9.6.ebuild
+++ b/dev-python/pymdown-extensions/pymdown-extensions-9.6.ebuild
@@ -57,3 +57,16 @@ python_prepare_all() {
 
        distutils-r1_python_prepare_all
 }
+
+python_compile_all() {
+       default
+       # We need to do this manually instead of relying on docs_compile
+       # https://bytemeta.vip/repo/facelessuser/pymdown-extensions/issues/1446
+       # https://bugs.gentoo.org/859637
+       if use doc; then
+               python -m mkdocs build || die "Failed to make docs"
+               # Colliding files found by ecompress:
+               rm site/sitemap.xml.gz || die
+               HTML_DOCS=( "site/." )
+       fi
+}

Reply via email to