-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docusaurus] Fix broken links #2720
Conversation
tutorials were moved to the /docs/tutorials directory, api reference was moved to an external site
Docusaurus has checks to validate our links are not broken. To make Docusaurus aware of anchors we create we use the <Heading> component they provide.
Would have prevented us from publishing the site with broken links. For broken anchors we just warn since those still take us to the correct page.
@CristianLara has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2720 +/- ##
=======================================
Coverage 99.98% 99.99%
=======================================
Files 203 203
Lines 18671 18671
=======================================
+ Hits 18669 18670 +1
+ Misses 2 1 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The errors on broken links should be quite helpful going forward!
Summary: ## Context Duplicate of same change in botorch: pytorch/botorch#2720 ## Motivation The recent website upgrade moved the location of tutorials and api reference breaking existing links to those. Here we fix those links and also configure Docusaurus to raise an error on broken links in the future. Pull Request resolved: #3300 Test Plan: Docusaurus checks for broken links when creating a production build. Running `./scripts/make_docs.sh -b` now results in a clean build with no broken links reported. ## Related PRs - #3294 Reviewed By: saitcakmak, Balandat Differential Revision: D69036887 Pulled By: CristianLara fbshipit-source-id: 1f95fca91a3715e9642da349eb58fa9622d9fdeb
@CristianLara merged this pull request in b197bf1. |
Motivation
The recent website upgrade moved the location of tutorials and api reference breaking existing links to those. Here we fix those links and also configure Docusaurus to raise an error on broken links in the future.
Test Plan
Docusaurus checks for broken links when creating a production build. Running
./scripts/build_docs.sh -b
now results in a clean build with no broken links reported.Related PRs