Skip to content

Commit a90d9d3

Browse files
committed
Merge branch 'ADP-4947' into develop
2 parents 1b11555 + 4ec970e commit a90d9d3

279 files changed

Lines changed: 970 additions & 47 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { remarkTransformDetails } from './src/plugins/remark-transform-details.m
1414
import { remarkHeadingId } from './src/plugins/remark-heading-id.mjs';
1515
import { remarkTransformLinks } from './src/plugins/remark-transform-links.mjs';
1616
import { remarkStripImports } from './src/plugins/remark-strip-imports.mjs';
17+
import rehypeSlug from 'rehype-slug';
1718

1819
// https://astro.build/config
1920
export default defineConfig({
@@ -41,6 +42,7 @@ export default defineConfig({
4142

4243
markdown: {
4344
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
45+
rehypePlugins: [rehypeSlug],
4446
shikiConfig: {
4547
theme: 'github-light',
4648
wrap: true,
@@ -71,6 +73,7 @@ export default defineConfig({
7173
sitemap(),
7274
mdx({
7375
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
76+
rehypePlugins: [rehypeSlug],
7477
shikiConfig: {
7578
theme: 'github-light',
7679
wrap: true,

package-lock.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"react": "^19.2.3",
2525
"react-dom": "^19.2.3",
2626
"react-medium-image-zoom": "^5.4.0",
27+
"rehype-slug": "^6.0.0",
2728
"remark-directive": "^4.0.0",
2829
"remark-heading-id": "^1.0.1",
2930
"remark-mdx": "^3.1.1",
File renamed without changes.

src/components/DocusaurusShim.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
3+
export const Layout = ({ children, title, description }: any) => {
4+
return <div className="docusaurus-layout-shim">{children}</div>;
5+
};
6+
7+
export const Head = ({ children }: any) => {
8+
return <>{children}</>;
9+
};
10+
11+
export const BrowserOnly = ({ children, fallback }: any) => {
12+
const [isClient, setIsClient] = React.useState(false);
13+
React.useEffect(() => setIsClient(true), []);
14+
return isClient ? <>{children()}</> : <>{fallback}</>;
15+
};
16+
17+
export const Link = ({ children, to, ...props }: any) => {
18+
return <a href={to} {...props}>{children}</a>;
19+
};
20+
21+
export default { Layout, Head, BrowserOnly, Link };

0 commit comments

Comments
 (0)