summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@debian.org>2026-01-26 16:52:43 -0800
committerVagrant Cascadian <vagrant@debian.org>2026-01-29 16:10:39 -0800
commit5c9d765a174ab3d3cb20a5b628ecaba27de7bfc7 (patch)
treeccf8ee189ef3f139ea1c108694931674a9ea139b /gnu
parent1718f0349536a83a76d0b4c6760d16ab147e3694 (diff)
gnu: Add python-sphinx-reredirects.
* gnu/packages/sphinx.scm (python-sphinx-reredirects): New variable. Change-Id: Ifb917b1e70af1a613c618515d26083f04648f678
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/sphinx.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 520b1bf05c1..49f5c3d4ff1 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -905,6 +905,38 @@ system. The extension allows generation of API documentation by
introspection of @code{zope.interface} instances in code.")
(license license:repoze)))
+(define-public python-sphinx-reredirects
+ (package
+ (name "python-sphinx-reredirects")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch) ;FIXME use git-fetch instead?
+ (uri (pypi-uri "sphinx_reredirects" version))
+ (sha256
+ (base32 "0acbf7v04wml24f5hrkcqnk7nqzbgq67sa3kh8zv855b6m9ik6zv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; Test requires network access
+ #:test-flags #~(list "-k" "not test_linkcheck")))
+ (native-inputs (list python-pytest python-sphinx python-flit))
+ (propagated-inputs (list python-linkify-it-py
+ python-myst-parser
+ python-sphinx-copybutton
+ python-sphinx-design
+ python-sphinx-sitemap
+ python-sphinx-copybutton
+ python-sphinxcontrib-mermaid
+ python-sphinxext-opengraph))
+ (home-page "https://documatt.com/sphinx-reredirects/")
+ (synopsis "Extension for sphinx to handle redirects")
+ (description
+ "The extension for Sphinx documentation projects that handle redirects for
+moved pages. It generates HTML pages with meta refresh redirects to the new
+page location to prevent 404 errors if you rename or move your documents.")
+ (license license:expat)))
+
(define-public python-sphinx-prompt
(package
(name "python-sphinx-prompt")