From b8a66d214bfc5ed24a959edcf04817672fe20472 Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Mon, 9 Nov 2020 15:02:48 -0600 Subject: [PATCH] fix: remove wallet routes from yaml --- src/common/navigation.yaml | 6 ------ src/common/routes/get-routes.js | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/common/navigation.yaml b/src/common/navigation.yaml index c7550337..ee8daed2 100644 --- a/src/common/navigation.yaml +++ b/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: diff --git a/src/common/routes/get-routes.js b/src/common/routes/get-routes.js index 36511fb3..1e7b7287 100644 --- a/src/common/routes/get-routes.js +++ b/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); } });