facebook / jscodeshift

A JavaScript codemod toolkit.
https://jscodeshift.com
MIT License
9.11k stars 468 forks source link

can I access docs online? #545

Closed sibelius closed 5 days ago

Daniel15 commented 1 year ago

There's no docs online at the moment, but maybe we should publish the autogenerated API docs to GitHub Pages...

roddds commented 1 year ago

There's this, but it's not much better than reading the source:

https://npmdoc.github.io/node-npmdoc-jscodeshift/build/apidoc.html

sibelius commented 1 year ago

We should migrate docs do docusuarus

olrtg commented 8 months ago

Hey! I'm currently learning the tool to do some migrations at work and it's been quite hard to do things with it. I would like to help with the docs and maybe put some specific examples of how to use the API. Would need some mentoring though with the API from time to time. How can we move forward with this?

ElonVolo commented 8 months ago

I'm one of the jscodeshift maintainers and even I end up referring back to tutorials if I haven't written a codemod in months. Doing anything with ast-types (a separate project that's the real business end up jscodeshift) is a bear but that is the library you have to learn to make maximal use of jscodeshift.

At this, my go-to is starting to be ChatGPT. Most of the code that gets generated has some mistakes, but it largely gets the ast-types constructor calls mostly right.

olrtg commented 8 months ago

Hi @ElonVolo! thanks for replying. That's helpful! I probably need more AI in my life haha

Aside from that, I guess you're not interested in building a docs website, am I correct? 🤔

mohab-sameh commented 3 weeks ago

@Daniel15 I'll assign this to myself. I'll revamp docs (probably on Mintlify). I'll incrementally move things from wiki, readme, and other relevant resources to the online docs until it's complete.

The current docs structure I have in mind is as follows:

Please let me know if you have some suggestions or requests on how the docs should look like.

trivikr commented 5 days ago

Can this be closed since docs were added in https://github.com/facebook/jscodeshift/pull/592, and deployed on https://jscodeshift.com/?

cc @Daniel15 @mohab-sameh