用户可借助该项目为 Sphinx 文档项目处理页面移动后的重定向,避免 404 错误。它能生成含元刷新重定向的 HTML 页面,支持从 conf.py 集中管理,还具备通配符及跨域重定向功能。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
################## sphinx-reredirects ##################
.. image:: logo.png :align: right
.. image:: https://gitlab.com/documatt/sphinx-reredirects/badges/master/pipeline.svg :target: https://gitlab.com/documatt/sphinx-reredirects/-/commits/master
.. image:: https://img.shields.io/badge/code style-black-000000.svg :target: https://github.com/psf/black
.. image:: https://img.shields.io/pypi/v/sphinx-reredirects :target: https://pypi.org/project/sphinx-reredirects/
sphinx-reredirects is the extension for Sphinx documentation projects that handles 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.
- docs: https://documatt.gitlab.io/sphinx-reredirects
- code: https://gitlab.com/documatt/sphinx-reredirects where issues and contributions are welcome
Good URLs are never changing URLs. But if you must, sphinx-reredirects helps you manage redirects with ease and from the single place in project's conf.py. For example, if you rename document start to intro, and tell it to sphinx-reredirects, it will generate HTML page start.html with <meta http-equiv="refresh" content="0; url=intro.html">. The extension supports wildcards and moving to different domain too.
About
sphinx-reredirects started from the urge to manage redirects for all documents during moving our Tech writer at work blog to the new domain https://techwriter.documatt.com.
Legal
Forward Arrow icon by Icons8.
sphinx-reredirects is licensed under BSD3.
Introduction
用户可借助该项目为 Sphinx 文档项目处理页面移动后的重定向,避免 404 错误。它能生成含元刷新重定向的 HTML 页面,支持从 conf.py 集中管理,还具备通配符及跨域重定向功能。【此简介由AI生成】
Customize your domain