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

Does sdoc generate documentation for js files ? #130

Open
s0rin opened this issue Apr 6, 2018 · 2 comments
Open

Does sdoc generate documentation for js files ? #130

s0rin opened this issue Apr 6, 2018 · 2 comments

Comments

@s0rin
Copy link

s0rin commented Apr 6, 2018

Does sdoc generate documentation for js files within a rails project? (for ex. for app/assets/javascripts/home/settings.js). I found no reference about this so far.

There is an abandoned project https://github.com/breakpointer/ajax-rdoc developed for this purpose, it works with Rails 2.1.0 and no updates since 10 years.

@s0rin
Copy link
Author

s0rin commented Apr 28, 2018

JavaScript documentation can be generated for ex. with JSDoc [1] which is a separate installation and a different usage, but how to document the *.js.erb files then?

[1] https://github.com/jsdoc3/jsdoc

@zzak
Copy link
Member

zzak commented Jun 18, 2021

@s0rin sdoc only generates documentation via rdoc, and that only supports a few types of files, such as:

RDoc::Parser::C
RDoc::Parser::ChangeLog
RDoc::Parser::Markdown
RDoc::Parser::RD
RDoc::Parser::Ruby
RDoc::Parser::RubyTools
RDoc::Parser::Simple
RDoc::Parser::Text

It would be interesting (although maybe out of scope for this project) if there was a way to combine documentation generators for Ruby and JavaScript / TypeScript for projects using both.

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

2 participants