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

Question: Is there a way to configure underlying jsdoc? #45

Closed
daserge opened this issue Sep 3, 2015 · 7 comments
Closed

Question: Is there a way to configure underlying jsdoc? #45

daserge opened this issue Sep 3, 2015 · 7 comments

Comments

@daserge
Copy link

daserge commented Sep 3, 2015

jsdoc allows to pass config path like this:

jsdoc www -r -c \"jsdoc2md/conf.json\" -d docs

Is there a way to do this with jsdoc-to-markdown (so that @partial plugin can be used for example)?

@75lb
Copy link
Member

75lb commented Sep 3, 2015 via email

@daserge
Copy link
Author

daserge commented Sep 3, 2015

@75lb, got it, thanks for the quick response!

By the way - is there any workaround for this for now?
Do I get it right that Handlebars templates will not allow to wedge into jsdoc custom tags like @ partial does?

@75lb
Copy link
Member

75lb commented Sep 3, 2015

what are you trying to achieve? I'm sure there's a different, maybe better way, than using @partial.

@daserge
Copy link
Author

daserge commented Sep 3, 2015

I need to insert blocks of documentation, which are too big to include them in code, while are still related to the code.

@75lb
Copy link
Member

75lb commented Sep 3, 2015

if i remember correctly it's possible to document an identifier in a separate file..the @typedef tag is documented separately this way - not attached to code..

so if you had a separate file (e.g. docs.js) containing only doclets, like these

/**
@function move
@memberof Train
*/

/**
@member size
@type {string}
@memberof Train
*/

then you could include this file in the list of input files to parse

$ jsdoc2md lib/*.js

would this solve your problem? I have never tried it.. this is just a quick idea of the top of the head..

@daserge
Copy link
Author

daserge commented Sep 4, 2015

@75lb, thanks a lot for the workaround!
I don't think it will fit unfortunately as the large docs chunks are meant to be Markdown, i.e. they have to be editable/previewed on Github.

@75lb 75lb added this to the v2.0.0 milestone Dec 5, 2015
75lb added a commit to jsdoc2md/jsdoc-parse that referenced this issue Dec 7, 2015
@75lb 75lb removed this from the v2.0.0 milestone Dec 7, 2015
@75lb
Copy link
Member

75lb commented Dec 9, 2015

released in jsdoc2md v1.3.0 - see the --conf option

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

No branches or pull requests

2 participants