-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix: Support mapping links to full URLs from hint
Github repo
#934
Conversation
helpers/update-site/documentation.js
Outdated
* In this case we need to replace it with the a valid | ||
* url in the website. | ||
*/ | ||
if (val[2].startsWith('https')) { |
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.
It is a bit weird to say the link is for github and then check just for https.
if (val[2].startsWith('https')) { | |
if (val[2].startsWith('https://github.com/')) { |
helpers/update-site/documentation.js
Outdated
if (val[2].startsWith('https')) { | ||
replacement = | ||
`${val[1]}/docs/${file.frontMatter.section}${file.frontMatter.tocTitle ? `/${file.frontMatter.tocTitle.replace(' ', '-')}` : ''}/${val[4].replace('/docs/', '/')}/`; | ||
|
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.
Maybe we could document what the different val[x]
are?
@molant I have addressed all your feedback. I also fix an edge case, when the package is the |
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.
LGMT
@molant any additional feedback or is this good to merge? |
Fix #933
Pull request checklist
Make sure you:
Short description of the change(s)