BitBoxSwiss / bitbox02-api-js

BitBox02 JavaScript library
Other
11 stars 9 forks source link

docs: move method docs to separate file #20

Closed Stadicus closed 4 years ago

Stadicus commented 4 years ago

To simplifiy the README and avoid inconsistencies in the future, the methods documentation is moved to a seperate file. Existing documentation is removed from README and source code.

Minor wording adjustments for better readability.

NickeZ commented 4 years ago

The code should be documented. I don't think it is a good idea to have references to a markdown file.

Stadicus commented 4 years ago

I'm open to anything. This was discussed with @Tomasvrba with the goal to not have duplicate documentation in source code and the README.

Going forward:

What would you propose?

NickeZ commented 4 years ago

There should be enough documentation in the code so that you can use it without referencing other material. It should at least not contain links to github, in that case try to link within the repository.

As far as I can see the new file methods.md could be generated from the source code documentation. Here is one such tool for example: https://github.com/jsdoc/jsdoc

Stadicus commented 4 years ago

Thanks, I'll have a look. In terms of "Getting stuff done" I propose we use the duplicate documentation for now, and optimize documentation creation in the next iteration.