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); } });