-
Notifications
You must be signed in to change notification settings - Fork 9
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: broken link on icons readme page in patternhub #2935
base: main
Are you sure you want to change the base?
Conversation
🔭🐙🐈 Test this branch here: https://db-ui.github.io/mono/review/fix-link-in-patternhubs-icons-readme-broken |
@nmerget even though that @bruno-sch has a valid solution here, it might not be the best, as I would assume that we should link to an |
If we want to enable the link in GitHub and Patternhub, we can't use relative paths. They have to be absolute :( |
por que? There seems to be some logic that let's those items appear as |
@@ -23,4 +23,4 @@ You can add an icon before or after a tag, by adding an `data-` attribute to you | |||
|
|||
If you have custom icons and want to use them for foundations and/or in components, you need to generate a **woff2** file. | |||
|
|||
[More information](./CustomIcons.md) | |||
[More information](./custom-icons) |
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.
this won't work if this documentation is opened via https://github.com/db-ui/mono/blob/fix-link-in-patternhubs-icons-readme-broken/packages/foundations/docs/Icons.md
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.
That's basically true. In the end, this also applies to all other internal links here: If links point to paths with the file extension .md
, they work in Github, but not in Patternhub. And vice versa.
A possible solution would be to have links in the md files end with the appendix .md
. However, when copying these files to Patternhub via node-script, remove .md
from links.
What do you think?
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.
That's basically true. In the end, this also applies to all other internal links here: If links point to paths with the file extension
.md
, they work in Github, but not in Patternhub. And vice versa.A possible solution would be to have links in the md files end with the appendix
.md
. However, when copying these files to Patternhub via node-script, remove.md
from links.What do you think?
I agree with what you're suggesting. In either case we would need some kind of transformation of these links to another format. And as the codebase out of GitHub is displayed at github.com out of the box, but does get some kind of transformation for being displayed in "patternhub", we should rewrite the URL in the latter step / setup.
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.
as aligned with @bruno-sch: the links within markdown need to be correct and during the transformation for GitHub Pages those links would need to get transformed as well to the resulting structure.
@nmerget could you please have a look how we could set the links within markdown to target other Markdown files and still have those links adapted within the transformation of patternhub ? |
Proposed changes
Link is corrected. Fixes #2930
Types of changes
Further comments