File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub';
44
55import { editURL } from '#theme/config' ;
66
7- /** @param {import('../Layout').Props } props */
87export default ( { metadata, headings = [ ] , readingTime } ) => {
98 const editThisPage = editURL . replace ( '{path}' , metadata . path ) ;
109 const authors = metadata . authors ?. split ( ',' ) . map ( id => ( {
Original file line number Diff line number Diff 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 */
1312export default ( { metadata } ) => {
1413 const items = pages . map ( ( [ heading , path ] ) => ( {
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments