Skip to content

Commit

Permalink
Move docs up to main / route
Browse files Browse the repository at this point in the history
  • Loading branch information
nooges committed Apr 27, 2021
1 parent f0176f1 commit f009d38
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/index.md → docs/main.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Build Guide Info
slug: /
---

## Keyboard Info
Expand Down
7 changes: 4 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ module.exports = {
},
items: [
{
to: 'docs/',
to: 'main',
activeBasePath: 'docs',
label: 'Build Guides',
position: 'left',
},
{
to: 'docs/testing-pcb',
to: 'testing-pcb',
activeBasePath: 'docs',
label: 'Testing Your PCB',
position: 'left',
},
{
to: 'docs/faq/main',
to: 'faq/main',
activeBasePath: 'faq',
label: 'FAQ',
position: 'left',
Expand Down Expand Up @@ -99,6 +99,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/keebio/keebio-docs/',
routeBasePath: '/',
},
blog: {
showReadingTime: true,
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
docs: [
{
'Build Guides': [
'index',
'main',
'quefrency-rev2-sinc-build-guide',
'iris-rev3-build-guide',
'nyquist-rev3-build-guide',
Expand Down
8 changes: 4 additions & 4 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const features = [
</>
),
callToAction: "See Recommendations",
callToActionUrl: "docs/soldering-tools"
callToActionUrl: "soldering-tools"
},
{
title: ' Build Guides',
Expand All @@ -29,7 +29,7 @@ const features = [
</>
),
callToAction: "View Guides",
callToActionUrl: "docs"
callToActionUrl: "main"
},
{
title: 'Frequently Asked Questions',
Expand All @@ -41,7 +41,7 @@ const features = [
</>
),
callToAction: "View FAQ",
callToActionUrl: "docs/faq/main"
callToActionUrl: "faq/main"
},
];

Expand Down Expand Up @@ -88,7 +88,7 @@ function Home() {
'button button--outline button--secondary button--lg',
styles.getStarted,
)}
to={useBaseUrl('docs/')}>
to={useBaseUrl('main')}>
Get Started
</Link>
</div>
Expand Down

0 comments on commit f009d38

Please sign in to comment.