Browse Source

fix: remove wallet routes from yaml

build/deps-updates
Thomas Osmonson 4 years ago
parent
commit
b8a66d214b
  1. 6
      src/common/navigation.yaml
  2. 4
      src/common/routes/get-routes.js

6
src/common/navigation.yaml

@ -72,12 +72,6 @@ sections:
- path: /atlas-usage
- path: /install-api
- path: /installing-memcached
- path: /stacks-wallet
pages:
- path: /overview
- path: /install
- path: /usage
- path: /security
- path: /naming-system # is an overview page
- path: /storage-hubs # this seems out of date, kill?
pages:

4
src/common/routes/get-routes.js

@ -1,3 +1,4 @@
// @ts-nocheck
/**
* Routes
*
@ -64,7 +65,7 @@ const getHeadings = mdContent => {
const routes = allRoutes.map(route => {
try {
const fileContent = fs.readFileSync(
path.join('./src/pages', (route === '/' ? 'index' : route) + '.md'),
path.join('./src/pages', `${route === '/' ? 'index' : route}.md`),
'utf8'
);
const data = fm(fileContent);
@ -77,6 +78,7 @@ const routes = allRoutes.map(route => {
} catch (e) {
console.error('ROUTES ERROR');
console.warn(e);
throw new Error(e);
}
});

Loading…
Cancel
Save