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: /atlas-usage
- path: /install-api - path: /install-api
- path: /installing-memcached - path: /installing-memcached
- path: /stacks-wallet
pages:
- path: /overview
- path: /install
- path: /usage
- path: /security
- path: /naming-system # is an overview page - path: /naming-system # is an overview page
- path: /storage-hubs # this seems out of date, kill? - path: /storage-hubs # this seems out of date, kill?
pages: pages:

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

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

Loading…
Cancel
Save