Related to https://github.com/opentofu/opentofu/issues/1863 (potentially a fix for that, albeit ~may require rebuild of runner image(?)~ edit: didn't; website runner uses fresh clone every time)
Changes Docusaurus' config to throw instead of warning when it detects broken links, as all the broken links should now be fixed.
Note that fixing these links lets through new warnings about broken anchors --onBrokenAnchors remains set to warn.
Be aware also that many of the problematic links "fixed" here were actually correct, but affected by a Docusaurus bug mis-parsing links where they are split over multiple lines of Markdown.
Fixes https://github.com/opentofu/opentofu.org/issues/85
Related to https://github.com/opentofu/opentofu/issues/1863 (potentially a fix for that, albeit ~may require rebuild of runner image(?)~ edit: didn't; website runner uses fresh clone every time)
Changes Docusaurus' config to
throw
instead ofwarn
ing when it detects broken links, as all the broken links should now be fixed.Note that fixing these links lets through new warnings about broken anchors --
onBrokenAnchors
remains set towarn
.Be aware also that many of the problematic links "fixed" here were actually correct, but affected by a Docusaurus bug mis-parsing links where they are split over multiple lines of Markdown.
Follows two other PRs:
https://github.com/opentofu/opentofu.org/pull/322
https://github.com/opentofu/opentofu/pull/1884 and backports:
Effectively also merges https://github.com/opentofu/opentofu.org/pull/86 (original attempt to switch to
throw
).