Subject: [PATCH 1/2] gnu: qutebrowser: Install docs.

From: Sergey Trofimov <[email-masked]>
Date: Fri, 11 Apr 2025 11:03:11 +0200

* gnu/packages/web-browsers.scm (qutebrowser): Build and install
documentation.

Change-Id: I76f1b30282a7822f896c5896ff51c69016768169
---
 gnu/packages/web-browsers.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 1154242a5af..8951b50a875 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -587,6 +587,12 @@ (define-public qutebrowser
                 (string-append "os.path.join(\""
                                (assoc-ref outputs "out")
                                "\", \"share\", \"qutebrowser\"")))))
+         (add-after 'build 'build-docs
+           (lambda _
+               (substitute* "scripts/asciidoc2html.py"
+                 (("sys.executable, \"-m\", \"asciidoc\"")
+                  "\"asciidoc\""))
+               (invoke "python" "scripts/asciidoc2html.py")))
          (add-before 'check 'set-env-offscreen
            (lambda _
              (setenv "QT_QPA_PLATFORM" "offscreen")))
-- 
2.49.0