-
Notifications
You must be signed in to change notification settings - Fork 124
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
JSDOC documentation #668
Comments
I've tried these today. docdash and minami - just theme templates for jsdoc generator output (https://github.com/jsdoc/jsdoc). As you see, jsdoc also pastes source links and generates files for them What do you think? Maybe you have certain vision of tools and functions that doc generators should have? |
Great!
Yeah, it's close, just not generating the signature correctly. If you haven't done further research yet, I suggest searching the web, StackOverflow, and the documentation.js documentation to see if others have encountered this problem and if there are any solutions.
Nice! I like minami the best. What do you think about hosting our documentation on https://readthedocs.org? Please look into this and see if it's compatible with documentation.js, and let me know what you recommend. |
About documentation.js and arrow function, it isn't a rocket science, so adding documentation.js (https://github.com/documentationjs/documentation) doesn't support jsdoc (https://github.com/jsdoc/jsdoc) templates (minami, docdash), i found a couple of themes for documentation.js, but they look pretty ugly (https://github.com/giacomocerquone/documentationjs-themes-list). Actually they both work with JSDOC syntax, i think we can start with any of them and then just replace documentation.js with jsdoc or vice-versa. readthedocs advices to use sphinx or mcdocs generators, they both are written on python. I tried to import doc, generated by documentation.js, but it didn't work. I'm sure there's a way to publish documentation/jsdoc generators output, but it needs some work and setup. Actually, both jsdoc and documentation.js generate html output. We can host it on github pages. Look here: https://pushkov-fedor.github.io/documentation-test/ |
That's unfortunate that it takes an explicit comment. It should be statically analyzable. If absolutely necessary, we could add an eslint rule to enforce
Maybe the more general question is, what does documentation.js offer that other document generators do not?
Okay, might not be worth it then. We can always host a static documentation site on GitHub Pages as well. What does readthedocs offer besides hosting compared to other solutions?
Yes, not ideal.
Yes! I like that plan! |
Just added JSDoc comments to all functions btw in 1503ee2, along with an eslint rule to require them from now on. |
Awesome! I've noticed it during yesterday rebase :) About jsdoc and documentationjs. I think jsdoc is a better option, it has strong, very active repo, detailed documentation unlike documentation.js., cool themes, an ability to configure itself from configuration file and to add source code inside generated documentation files. Actually i'm a bit confused of the fact that documentation.js declares support of modern javascript, but doesn't generate correct arrow function documentation without @kind param. I've searched the web today and haven't found any solutions or even issues about this. Maybe i should try again |
Great! This is exactly the sort of explanation and recommendation I was looking for.
Yup, I don't foresee a need for Markdown or JSON output in the immediate future.
Yes, that seems odd! You can always ask on StackOverflow if you can't find anything. People are usually pretty quick to respond there. |
Let's put the documentation output in the https://github.blog/2016-08-17-simpler-github-pages-publishing/ |
Raine, please pardon my rush, i totally forgot about typescript part of em. I've done small research during these 2 days. My favorite JSDoc doesn't go well with it. I've dived deeper in documentationjs. It still has awful documentation (it's a little a funny :) ), but i succeeded in running it through em's typescript files. It works as we needed (generates @param and @returns from code), but goes bad with combination of js and ts files. There's amazing tool Docusaurus which allows to create astonishing and detailed documentation site. But it uses markdown format and needs from us much more time than generators. https://docusaurus.io/ So i just leave it here for your information. Also i would like to clarify your view of whole documentation epic and its purpose. We can run generator through all files, generate Thank you! |
Does it not work at all? Or are there problems? If so, briefly describe the problems.
What does "go bad" mean? Please explain in detail.
Yes, this looks quite good. I somewhat prefer the left sidebar of minami, but the main panel and details are good.
Thanks, interesting. Yeah for now let's just stick with tools that can generate docs from JSDOC comments.
Yes, I'm glad you asked. I'm sorry if I misrepresented the scope of this epic right now. JSDOC generation is a low-hanging fruit. Since we're using JSDOC comments anyway, this is an easy way to get something basic up. When we have a public API, that will require detailed documentation. However detailed documentation of the internal API is very low priority right now. We should be focusing on bugs, features, testing, refactoring, and preparing for the beta over detailed internal docs.
This will be a good step later on down the road.
If there are particularly confusing parts of components, I am open to refactoring and/or documenting their usage. This should be done on an as-needed, ad hoc basis for now rather than a systematic documentation push. |
I would suggest adding an npm script |
Try these and compare:
The text was updated successfully, but these errors were encountered: