Skip to content

Commit 7ea4094

Browse files
committed
fixup!
1 parent 3c1848b commit 7ea4094

4 files changed

Lines changed: 12 additions & 44 deletions

File tree

components/Layout/index.jsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

components/Metabar/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub';
44

55
import { editURL } from '#theme/config';
66

7-
/** @param {import('../Layout').Props} props */
87
export default ({ metadata, headings = [], readingTime }) => {
98
const editThisPage = editURL.replace('{path}', metadata.path);
109
const authors = metadata.authors?.split(',').map(id => ({

components/Sidebar/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const redirect = url => (window.location.href = url);
88

99
/**
1010
* Sidebar component for MDX documentation with page navigation
11-
* @param {import('../Layout').Props} props
1211
*/
1312
export default ({ metadata }) => {
1413
const items = pages.map(([heading, path]) => ({

doc-kit.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ export default {
1313
editURL: 'https://github.com/nodejs/learn/edit/main/pages{path}.md',
1414
imports: {
1515
...web.defaultConfiguration.imports,
16-
'#theme/Layout': join(import.meta.dirname, 'components/Layout/index.jsx'),
16+
'#theme/Navigation': join(
17+
import.meta.dirname,
18+
'components/Navigation/index.jsx'
19+
),
20+
'#theme/Sidebar': join(
21+
import.meta.dirname,
22+
'components/Sidebar/index.jsx'
23+
),
24+
'#theme/Metabar': join(
25+
import.meta.dirname,
26+
'components/Metabar/index.jsx'
27+
),
1728
},
1829
},
1930
};

0 commit comments

Comments
 (0)