Skip to content

Commit

Permalink
Merge branch 'main' into feat-whitelabel
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Jan 7, 2025
2 parents 5b9b3c0 + 2dd94c9 commit 833adcc
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion output/stencil/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.10.4",
"@stencil/core": "4.23.0",
"@stencil/core": "4.23.1",
"cem-plugin-expanded-types": "^1.3.2",
"custom-element-jet-brains-integration": "^1.6.2",
"custom-element-vs-code-integration": "^1.4.1",
Expand Down
14 changes: 8 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/foundations/docs/Icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ You could use the CSS Custom Property `--db-icon-color` to overwrite the icons c

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](https://github.com/db-ui/mono/blob/main/packages/foundations/docs/CustomIcons.md)
[More information](./CustomIcons.md)
3 changes: 2 additions & 1 deletion showcases/patternhub/next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import remarkGfm from 'remark-gfm';
import generated from '@next/mdx';
import rehypeSlug from 'rehype-slug';
import remarkTransformLinks from './scripts/remark-transform-links.js';

const withMDX = generated({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
remarkPlugins: [remarkGfm, remarkTransformLinks],
rehypePlugins: [rehypeSlug],
providerImportSource: '@mdx-js/react'
}
Expand Down
3 changes: 2 additions & 1 deletion showcases/patternhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"iframe-resizer": "^5.3.2",
"open-cli": "^8.0.0",
"sass": "1.77.4",
"typescript": "5.4.5"
"typescript": "5.4.5",
"unist-util-visit": "^5.0.0"
}
}
17 changes: 17 additions & 0 deletions showcases/patternhub/scripts/remark-transform-links.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { visit } from 'unist-util-visit';

export default function transformLinks() {
return (tree) => {
visit(tree, 'link', (node) => {
if (node.url.endsWith('.md')) {
// Remove the .md extension from the URL and transform it from camelCase to kebab-case
// e.g. `customIcons.md` -> `custom-icons`
// This is necessary to match the URL of the page generated by Next.js
node.url = node.url
.replace(/\.md$/, '')
.replaceAll(/([a-z])([A-Z])/g, '$1-$2')
.toLowerCase();
}
});
};
}
2 changes: 1 addition & 1 deletion showcases/stencil-showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@angular/platform-browser": "17.3.12",
"@angular/platform-browser-dynamic": "17.3.12",
"@angular/router": "17.3.12",
"@stencil/core": "4.23.0",
"@stencil/core": "4.23.1",
"rxjs": "~7.8.1",
"tslib": "^2.8.1",
"zone.js": "~0.14.10"
Expand Down

0 comments on commit 833adcc

Please sign in to comment.