docs: add bootstrap extension
authorErik Faye-Lund <kusmabite@gmail.com>
Wed, 6 Jan 2021 13:00:52 +0000 (14:00 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Apr 2023 22:45:41 +0000 (22:45 +0000)
commitf72033bb707046ef5966cb55cbf9bd9fb7bb038f
treea21b288e04a28c81c6da8698ecf8b01f9d6eacef
parent7da0482636a3475232ed906cfd611b2d912227f7
docs: add bootstrap extension

To get Sphinx and Bootstrap to work well together, we need to massage
the output from Sphinx a bit. This adds an extension to do such changes,
based on work from here:

https://github.com/pydata/pydata-sphinx-theme

...However, because we don't ship as an external theme, we can't just do
things as a part of __init__.py, so instead we register an extension
that does the heavy lifting for us.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8399>
docs/_exts/bootstrap.py [new file with mode: 0644]