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

Discussion: Use a different documentation module #71

Closed
FezVrasta opened this issue Aug 7, 2016 · 17 comments
Closed

Discussion: Use a different documentation module #71

FezVrasta opened this issue Aug 7, 2016 · 17 comments
Labels
docs No code, just documentation.
Milestone

Comments

@FezVrasta
Copy link
Member

FezVrasta commented Aug 7, 2016

Right now we are using JSDoc but it doesn't seem to be maintained anymore.

jsdoc/jsdoc#1239

The current documentation isn't the nicest so if someone has some good name to suggest which could improve our documentation please share with us.

Alternatives

  • jsdoc2md
@FezVrasta FezVrasta added HELP WANTED docs No code, just documentation. labels Aug 7, 2016
@FezVrasta FezVrasta changed the title Use a different documentation module Discussion: Use a different documentation module Aug 7, 2016
@75lb
Copy link

75lb commented Aug 7, 2016

have you considered jsdoc2md?

version 2 is in alpha..

@FezVrasta
Copy link
Member Author

I tried it initially but I ditched it because I needed a way to customize the template and there wasn't a way with jsdoc2md

@75lb
Copy link

75lb commented Aug 8, 2016

it's fully customisable, see the dmd docs (dmd is the handlebars template for the jsdoc2md output).. maybe it's not documented well enough..

@75lb
Copy link

75lb commented Aug 8, 2016

let me know if there's any specific help you need.

@FezVrasta
Copy link
Member Author

Thanks I missed it. I don't see any real advantage tho, under the hood we would still use jsdoc so there wouldn't be any real improvement.

@75lb
Copy link

75lb commented Aug 8, 2016

what are the improvements you need? Just curious as i have both jsdoc2md v2 and a jsdoc replacement tool in development..

@FezVrasta
Copy link
Member Author

Not sure if it's just me not able to use the tool properly, but I would like to make the documentation more readable, right now it's pretty limited, expecially the doc of the options, I'm limited to a short description displayed inside the table.

image

@75lb
Copy link

75lb commented Aug 8, 2016

was that generated with jsdoc2md? If so, try the list param-list format.. i.e.

jsdoc2md --param-list-format list lib/my-app.js

It's a better format in cases like yours

@FezVrasta
Copy link
Member Author

No it's generated with the custom template I written, I will try jsdoc2md again soon.

@75lb
Copy link

75lb commented Aug 8, 2016

here is an example of --param-list-format list output.. the descriptions are given much more space, params are indented to indicate depth.

@FezVrasta
Copy link
Member Author

I see, but it doesn't seem clearer than what I have now.. By the way I guess I could just tweak my template to dedicate a whole row for the description, in this way everything would look better.

@FezVrasta
Copy link
Member Author

@75lb ok so, I have created the doc with jsdoc2md grunt and it works, the problem is that the links are wrapped by <code> tags and Jekyll doesn't render the inner URL properly.

I need a way to create the URLs as foobar. I can't find a way to edit the template with the grunt wrapper tho.

@75lb
Copy link

75lb commented Aug 9, 2016

Hi, sorry for the delay - busy day.. I will write a tutorial for how to use jsdoc2md to create Jekyll sites and get back to you..

Also, a pre-release is now available for jsdocmd v2..

@75lb
Copy link

75lb commented Aug 10, 2016

ok so, I have created the doc with jsdoc2md grunt and it works, the problem is that the links are wrapped by tags and Jekyll doesn't render the inner URL properly

can i see this for myself on a branch somewhere? Can i reproduce this myself, if so which branch do i checkout and what command should i run to generate docs?

@FezVrasta
Copy link
Member Author

FezVrasta commented Aug 11, 2016

The branch is v1-dev, the task is doc, right now I'm performing a replace using the jekyll utils inside doc/documentation.html

@FezVrasta FezVrasta modified the milestone: v1.0.0 Aug 11, 2016
@FezVrasta
Copy link
Member Author

Closing since the current task seems to work quite good, even if it's a bit hacky. Feel free to give me insights on how to improve it.

@75lb
Copy link

75lb commented Aug 24, 2016

hi @FezVrasta, sorry i didn't get back to you yet.. i've been working to complete jsdoc2md v2 - i thought i should tackle that first to get it out of the way.. will let you know once it's done and i've written a guide of how to use with Jekyll. Glad you're getting satisfactory results in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs No code, just documentation.
Projects
None yet
Development

No branches or pull requests

2 participants