-
Notifications
You must be signed in to change notification settings - Fork 151
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
command-line option "template" requires a value. #303
Comments
Hmm, sounds like a cache thing.. how about if you run jsdoc2md with the |
Any update? |
Unfortunately that does not seem to have any effect. |
I also have this issue. Running with I do have some extra information though. This issue only reproduces for me if my template starts with front-matter (i.e: I think there is something about the parsed I can also give you a stack trace:
Is there any extra info I could provide that might help? |
Hi, I was able to reproduce this issue (using a template with front-matter) in jsdoc2md v7 but not in v8.. could you try it again with the latest jsdoc2md please? |
Yes. This happens with version 8. Given you're having trouble reproducing it, I've created a repo with a minimal repro in it: https://github.com/chris48s/jsdoc-to-markdown-287-repro The key thing here really is this section of the workflow and the build If you can't see the individual outputs of the workflow steps, you can fork or copy the repo, push it up and run it yourself to get a repro you can inspect. Does that help? |
Nice reproduction case, thanks for that.. I have a feeling the issue is related to a fix in jsdoc-api that is implemented but not yet live.. Could you do me a favour and test your repro case using this prerelease version please.. install:
This version is not complete nor public yet, I just knocked it up especially - hopefully it includes the fix you need.. |
Hi, I have isolated the bug and can confirm the fix has been implemented and will be included in the next release of jsdoc2md.. Let me know if you still have any issues using the prerelease mentioned in my last message.. |
Sorry I didn't get a chance to have a look at this for few days. Trying to install Thanks |
Great, thanks for confirming. 👍 |
And yes, the pre-release version I mentioned before is now live.. Release notes. |
Most time, when running the command to generate the doc with a custom template it fails throwing this error.
If I change the template file and run the command again it works but every time I rerun the script with the same template file I get the same error:
command-line option "template" requires a value.
this is my script
"scripts": { "docs": "jsdoc2md \"./library/*.js\" > \"./docs/api.md\" -t \"./docs/api-template.hbs\"" },
and a very simple template
The text was updated successfully, but these errors were encountered: