Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Modifies the firebase hosting config to remove the
/<version>/
prefix from the guide URLs, which has only ever been/main/
, due to #6. Also includes rewrites so that historical URLs with the/main/
prefix will still be honored, and redirected to the appropriate location that's live in the docs.Squirreling away this one-liner for generating a "sitemap" of all URLs:
which was helpful in creating the redirects.
Removes the mdboook-only meta-refresh redirects added in #4232, because the browser UX was atrocious. Refs #3417.
Issue ticket number and link
Checklist before requesting a review
If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:
Testing
In order to aid in review, I've deployed this new config from the CLI, so it's live right now. Of particular importance is ensuring that historical URLs published in various places like the README and Discord are still working. Some examples to the old-style URLs:
All of those should get redirected to the correct locations in the docs, without the
/main/
prefix.