Skip to content

Commit 4cd9005

Browse files
authored
fix: markdown file URL references (#4074)
* chore: corrected those path * Update remark-transform-links.js * Update remark-transform-links.js
1 parent 5893ffd commit 4cd9005

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ We're providing a detailed migration for each component next to the documentatio
9292

9393
Check our migration docs for breaking changes:
9494

95-
1. [Alpha ➡ Beta](https://github.com/db-ux-design-system/core-web/tree/main/docs/migration/alpha-beta.md) (0.0.x➡0.x.x)
96-
2. [v0.2 ➡ v0.3](https://github.com/db-ux-design-system/core-web/tree/main/docs/migration/v0.2.x-to-v0.3.x.md)
97-
3. [v0.3 ➡ v0.4](https://github.com/db-ux-design-system/core-web/tree/main/docs/migration/v0.3.x-to-v0.4.x.md)
95+
1. [Alpha ➡ Beta](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/alpha-beta.md) (0.0.x➡0.x.x)
96+
2. [v0.2 ➡ v0.3](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v0.2.x-to-v0.3.x.md)
97+
3. [v0.3 ➡ v0.4](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v0.3.x-to-v0.4.x.md)
9898
4. v0.4 ➡ v0.5: no migration needed, no breaking changes
99-
5. [v0.5 ➡ v0.6](https://github.com/db-ux-design-system/core-web/tree/main/docs/migration/v0.5.x-to-v0.6.x.md)
100-
6. [v0.6 ➡ v0.7](https://github.com/db-ux-design-system/core-web/tree/main/docs/migration/v0.6.x-to-v0.7.x.md)
99+
5. [v0.5 ➡ v0.6](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v0.5.x-to-v0.6.x.md)
100+
6. [v0.6 ➡ v0.7](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v0.6.x-to-v0.7.x.md)
101101
7. [v0.7 ➡ v1.0](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v0.7.x-to-v1.0.0.md)
102102
8. [v1.x ➡ v2.0](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v1.x.x-to-v2.0.0.md)
103103

showcases/patternhub/scripts/remark-transform-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { visit } from 'unist-util-visit';
33
export default function transformLinks() {
44
return (tree) => {
55
visit(tree, 'link', (node) => {
6-
if (node.url.endsWith('.md')) {
6+
if (node.url.endsWith('.md') && !node.url.startsWith('https://')) {
77
// Remove the .md extension from the URL and transform it from camelCase to kebab-case
88
// e.g. `customIcons.md` -> `custom-icons`
99
// This is necessary to match the URL of the page generated by Next.js

0 commit comments

Comments
 (0)