-
Notifications
You must be signed in to change notification settings - Fork 31
Chore: fix docs anchors #1778
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
Chore: fix docs anchors #1778
Conversation
Hello! 👋 This repository uses Auto for releasing packages using PR labels. ✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs. |
@@ -30,6 +30,8 @@ yarn-error.log* | |||
# Generated files | |||
.docusaurus | |||
.cache-loader | |||
docusaurus/website/scripts/plugin.schema.json |
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.
added some files to .gitignore
to avoid committing them accidentally
|
||
# Add docusaurus header to the top of the file | ||
sed $SED_OPTS "1i\\ | ||
sed -i.bak "1i\\ |
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.
Had to change a bit the way sed works as it was not working on my mac - it was creating metadata.md" file (yes with quotes at the end). Moved it towards a sed command that works on both mac and gnu
@@ -31,6 +31,7 @@ const config: Config = { | |||
baseUrl: 'developers/plugin-tools/', | |||
onBrokenLinks: 'throw', | |||
onBrokenMarkdownLinks: 'warn', | |||
onBrokenAnchors: 'throw', |
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.
Fails now when broken anchors are detected, instead of only warning
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.
Lovely stuff. 🚀
I also had the same issue on my Mac with the file name with quote mark.
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.
LGTM 🎉
Run it locally on my mac and it works as expected 👍
What this PR does / why we need it:
Fixing broken anchors, mostly related to anchors changing due to #1770
Making
onBrokenAnchors
throw an error now to catch those broken anchors earlier.Special notes for your reviewer:
sed
works as it was not working on my mac - it was creatingmetadata.md"
file (yes with quotes at the end). Moved it towards a sed command that works on both mac and gnuTesting