Browse Source

docs: support open in new tab in sidebar of component docsite, #220

pointhalo 4 years ago
parent
commit
d33decd8bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/side-nav.js

+ 1 - 0
src/components/side-nav.js

@@ -34,6 +34,7 @@ const SideNav = ({ location = null, type = null, itemsArr, edges, style, hasBann
                     text: node.frontmatter.title,
                     icon: <Icon svg={<IconNode />} size={'extra-large'} /> || '',
                     order: node.frontmatter.order || 0,
+                    link: `/${node.fields.slug}`,
                     category: navData[categoryIndex].text || navData[categoryIndex].textUs,
                 });
                 navData[categoryIndex].items.sort((a, b) => a.order - b.order);