GithubHelp home page GithubHelp logo

Comments (7)

JustinGOSSES avatar JustinGOSSES commented on June 15, 2024 1

I've added some documentation to the index.js file. and did an initial build. You can use that as example. None of the tests are documented yet.

Should be live here:
https://justingosses.github.io/wellio.js/docs/

from wellio.js.

dcslagel avatar dcslagel commented on June 15, 2024

@JustinGOSSES,

Caveat: While I have documentation experience it is not with Sphinx nor with Javascript documentation.

Observations:

  • I did a scan of the various tools available: Both Documentation.js and Sphinx.js look like solid choices. Both have been around for a while and are active with recent issue and pull request activity. Their licenses are ICS and MIT respectively.
  • It is a plus for Sphinx.js that you have Sphinx experience.
  • It looks like both Documentation.js and Sphinx.js are using JSDoc format underneath. The JSDoc format seems to be the most standard Javascript documentation format. So regardless of a tool decision, updating the code with JSDoc documentation style and tags has to be done as some point.
    https://www.npmtrends.com/documentation-vs-esdoc-vs-jsdoc-vs-sphinx-js
    https://jsdoc.app/about-getting-started.html

My 2 cents...
It might be best to to do an iteration of revising the code comments to adopt the JSDoc standards and style as well as iterating the content before committing to documentation generation tool.

DC

from wellio.js.

JustinGOSSES avatar JustinGOSSES commented on June 15, 2024

I tried documentation.js on another project. It is pretty easy to get started with but it seems JSDoc has a limitation that config files for it can't find functions that are module exports. As such, it will include those files in the documentation but you can't structure the order they appear or include additional information around where they appear. They only appear at the bottom of the documentation page in the order they're discovered in the source files, which is okay but not exactly ideal.

Hence, I'll try to do some research into non-Doc.js based documentation libraries that can handles functions that are module exports.

from wellio.js.

JustinGOSSES avatar JustinGOSSES commented on June 15, 2024

Seems like pretty much everyone uses JSdoc based documentation for JS. Problem isn't quite as bad as first though though. Started to put in some JSdoc style function descriptions as described here https://github.com/documentationjs/documentation/blob/master/docs/GETTING_STARTED.md

Will add documentation build script to github actions eventually.

from wellio.js.

dcslagel avatar dcslagel commented on June 15, 2024

@JustinGOSSES,

If you could implement an example JSdoc documentation of one function in a Wellio.js project file and post it on a draft branch?

That would give me (and maybe others) a project template to update the other Wellio.js function documentation to JSdoc format.

DC

from wellio.js.

dcslagel avatar dcslagel commented on June 15, 2024

Great, I'll use the example going forward.

Thanks
DC

from wellio.js.

github-actions avatar github-actions commented on June 15, 2024

Stale issue message

from wellio.js.

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.