Coder Social home page Coder Social logo

Comments (3)

dtao avatar dtao commented on August 20, 2024

This is exactly what autodoc does, if you're interested (major work-in-progress). It uses esprima with the comment option set to include comments along with the AST. It then attempts to associate each comment with a node of the AST, and parses those with doctrine.

There's a lot of potential there, but it's messy in places. I'm still actively working on it. If you're interested in contributing, let me know; otherwise, if you want to tackle the problem your own way, that should give you a decent idea where to start.

from doctrine.

heff avatar heff commented on August 20, 2024

Cool, I'll check it out. I ended up doing the same actually.
https://github.com/videojs/doc-generator

I got far enough to generate the video.js API docs with relatively few jsdoc tags.
https://github.com/videojs/video.js/blob/v4.4.0/docs/api/vjs.Player.md
...came from...
https://github.com/videojs/video.js/blob/v4.4.0/src/js/player.js
Some of the tags left can actually be removed now, like param tags I think. It's been a few months since I've touched it.

I never got it to work with nested scopes though, at least not without using tags, so it may not be super useful outside of video.js land.

from doctrine.

tmcw avatar tmcw commented on August 20, 2024

Cool, good discussion here!

I also maintain a list of documentation generators, and would point to esdoc, typedoc, and documentation.js as major entrants in the 'inference assisted documentation' space.

Closing this issue to keep Issues focused on actionable tasks, but feel free to continue discussing!

from doctrine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.