Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with Error: Unknown @page '_nav' in toTree() #71

Closed
jantimon opened this issue Jul 22, 2018 · 3 comments
Closed

Fails with Error: Unknown @page '_nav' in toTree() #71

jantimon opened this issue Jul 22, 2018 · 3 comments
Labels

Comments

@jantimon
Copy link

npx documentalist "src/**/*"

node version: 6

Error: Unknown @page '_nav' in toTree()
    at PageMap.toTree (_npx/61470/lib/node_modules/documentalist/dist/page.js:55:19)
    at MarkdownPlugin.compile (_npx/61470/lib/node_modules/documentalist/dist/plugins/markdown.js:42:27)
    at _npx/61470/lib/node_modules/documentalist/dist/documentalist.js:127:69
    at step (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:38:23)
    at Object.next (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:19:53)
    at step (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:23:97)
    at Object.next (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:19:53)
    at _npx/61470/lib/node_modules/documentalist/dist/documentalist.js:13:71
    at __awaiter (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:9:12)
    at Documentalist.documentFiles (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:114:16)
    at Documentalist.<anonymous> (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:102:44)
    at step (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:38:23)
    at Object.next (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:19:53)
    at _npx/61470/lib/node_modules/documentalist/dist/documentalist.js:13:71
    at __awaiter (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:9:12)
    at Documentalist.documentGlobs (_npx/61470/lib/node_modules/documentalist/dist/documentalist.js:98:16)

@giladgray
Copy link
Contributor

giladgray commented Jul 24, 2018

@jantimon this is expected given the default options: https://palantir.github.io/documentalist/#IMarkdownPluginOptions.
name a page _nav.md or change that option.

@crazytoucan
Copy link

Maybe documentalist could improve its error messaging a bit in this case? This hit me too today, and it was not obvious how I was supposed to address the issue.

@giladgray
Copy link
Contributor

fixed in af350da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants