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

Usage with [email protected] #47

Open
KnorpelSenf opened this issue Dec 14, 2020 · 9 comments
Open

Usage with [email protected] #47

KnorpelSenf opened this issue Dec 14, 2020 · 9 comments

Comments

@KnorpelSenf
Copy link

KnorpelSenf commented Dec 14, 2020

I want to use the new --entryPoints feature of typedoc that allows me to specify the entry point of the library for which I want to generate docs. It makes typedoc reduce the number of visible elements to those that are actually exported. I have to rely on a beta version for this, i.e. [email protected] or later.

Without typedoc-plugin-pages the docs can be built, but once I install it, I get the following error during building:

Error: The partial literal could not be found
    at Object.invokePartial (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/runtime.js:332:11)
    at Object.invokePartialWrapper [as invokePartial] (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/runtime.js:84:39)
    at eval (eval at createFunctionContext (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:11:28)
    at Object.prog [as fn] (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/runtime.js:268:12)
    at Object.<anonymous> (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:29:22)
    at Object.wrapper (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
    at Object.eval [as main] (eval at createFunctionContext (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:11:47)
    at main (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
    at ret (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js:16:19)
    at ret (/home/steffen/git/telegraf/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12) {
  description: undefined,
  fileName: undefined,
  lineNumber: undefined,
  endLineNumber: undefined,
  message: 'The partial literal could not be found',
  name: 'Error',
  number: undefined
}

Maybe it is relevant that I'm also using TypeScript 4.1 which is not supported by typedoc yet.

I could not find out what is causing the error, but here is a script that should reproduce the error for you from scratch.

git clone [email protected]:telegraf/telegraf.git
cd telegraf
npm install
npm i -D typedoc@beta typedoc-plugin-pages
mkdir -p docs/pages
echo -e "# Example page\n\nHere is some content" > docs/pages/page.md
echo '{"groups":[{"title":"Documentation","pages":[{"title":"MyPage","source":"./docs/pages/page.md"}]}]}' > pagesconfig.json
npm run build:docs -- --entryPoints src/index.ts --theme pages-plugin

I know that I cannot expect a quick fix as I'm using so many unstable versions everywhere, but I'd still be happy if someone could point me in the right direction so I can fork and fix it locally or maybe even PR.

@dannyrb
Copy link

dannyrb commented Jan 14, 2021

I experience the same issue using [email protected]

@dannyrb
Copy link

dannyrb commented Jan 15, 2021

Fix appears to be here: https://github.com/mipatterson/typedoc-plugin-pages/pull/41/files

@dannyrb
Copy link

dannyrb commented Jan 15, 2021

Published to NPM w/ patch applied here: https://www.npmjs.com/package/typedoc-plugin-pages-fork

@mipatterson if you want another set of eyes to babysit, more than happy to assist with basic maintenance every now and then.

@francoisromain
Copy link

@dannyrb thank you for the fork. this solved it for me

@sl1g18
Copy link

sl1g18 commented Feb 4, 2021

@dannyrb Thank you for that, it fixed the issue for me as well!

@FStefanni
Copy link

Hi,

same issue here, I hope the pr will be merged asap.

Regards

@vipulgupta2048
Copy link

@dannyrb thanks for creating the fork, can you confirm if search works for you? It seems like the search doesn't work with latest typedoc

@nifr
Copy link

nifr commented Nov 23, 2021

Information for anyone stumbling upon this issue to get the pages plugin to work.

As of 2021-11-23 there is this repository, a fork and a fork of the fork:

None of them works with TypeDoc v0.22+.

@FStefanni
Copy link

Hi,

thank you for the (unfortunate) update...
Have you tried to write to the forks maintainers to see if they can upgrade the plugin?

Regards

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

No branches or pull requests

7 participants