JustinGOSSES / wellio.js

JavaScript for converting well-log standard .las file format to json format
https://justingosses.github.io/wellio.js/
MIT License
34 stars 5 forks source link

Documention is mostly inline...can we reformat and make more user-friendly? #19

Closed JustinGOSSES closed 4 years ago

JustinGOSSES commented 4 years ago

wellio.js doesn't have that much code but documenting it in a friendly manner might help more people understand its internals.

I've mostly used sphinx for documentation in Python. Sphinx has a JS version, but it is pretty heavy featured. Something small and light that looks pretty by default but isn't super powerful might be a better choice.

I've previously looked at : https://github.com/documentationjs/documentation/blob/master/docs/GETTING_STARTED.md

but I'm open to other options?

dcslagel commented 4 years ago

@JustinGOSSES,

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

Observations:

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

JustinGOSSES commented 4 years ago

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.

JustinGOSSES commented 4 years ago

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.

dcslagel commented 4 years ago

@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

JustinGOSSES commented 4 years ago

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/

dcslagel commented 4 years ago

Great, I'll use the example going forward.

Thanks DC

github-actions[bot] commented 4 years ago

Stale issue message