docs: fix linkcheck
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 6 Oct 2023 08:05:45 +0000 (10:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 9 Oct 2023 11:54:11 +0000 (11:54 +0000)
commitd5c2139ce4483cb1c224e068644ffb97772da48b
treefdea960b4be258d6b91cefcd643d307dc3bca57e
parent00f9e412510c7f821670675270ae322f6304fa0a
docs: fix linkcheck

When running with the linkcheck builder,
app.builder.default_translator_class is None, making us throw an
exception and give up.

We don't need the bootstrap extension in this case, so just do nothing
instead.

Fixes: f72033bb707 ("docs: add bootstrap extension")
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25585>
docs/_exts/bootstrap.py