Debian Codegraph @

README.rst

raw
1 ##################
2 sphinx-reredirects
3 ##################
4
5 .. image:: https://img.icons8.com/wired/64/undefined/forward-arrow--v1.png
6 :align: right
7
8 .. image:: https://gitlab.com/documatt/sphinx-reredirects/badges/master/pipeline.svg
9 :target: https://gitlab.com/documatt/sphinx-reredirects/-/commits/master
10
11 .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
12 :target: https://github.com/psf/black
13
14 .. image:: https://img.shields.io/pypi/v/sphinx-reredirects
15 :target: https://pypi.org/project/sphinx-reredirects/
16
17 sphinx-reredirects is the extension for `Sphinx documentation <https://www.sphinx-doc.org/>`_ 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.
18
19 * docs: https://documatt.gitlab.io/sphinx-reredirects
20 * code: https://gitlab.com/documatt/sphinx-reredirects where issues and contributions are welcome
21
22 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.
23
24 *****
25 About
26 *****
27
28 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://documatt.com/blog/.
29
30 *****
31 Legal
32 *****
33
34 Forward Arrow icon by `Icons8 <https://icons8.com/icon/74159/forward-arrow>`_.
35
36 sphinx-reredirects is licensed under BSD3.