-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
ddd3f22
to
3d50e95
Compare
Moved #615 tracking to here ^^ |
It's currently very painful that PR's to add docs have been removing API docs entirely from the README without ensuring that docs generated are available 100% of the time. We've received multiple bug reports of users simply not being able to find docs. |
Let's close this PR as |
👍... I think we should revisit this in the future, but agreed, not right now and this PR is so old that it would be super painful to merge anyway. |
Now with the #1670 coming to an end, the good progress on merging non-swappable code pieces #2222 and the previous notes on sustainable modules ipfs/notes#273, I believe it might be the right time to reconsider http://documentation.js.org @alanshaw @achingbrain what's your take? @ipfs/docs what's your advice? |
👋 I haven't solved the best approach to integrate generated documentation yet however we will want to optimise the output so that it can be nicely consumed by VuePress(the platform I'm building the POC with over the next month). Essentially markdown with custom front matter. At this stage I feel like we should have a docs app for each language implementation in order to have fine grain control over versioning and internationalisation, these are things we should discuss once I'm further down the road with the prototype. |
I had this idea that we'd add typescript declarations (i.e. not convert the project to typescript just a type delcarations file What do you think? |
@alanshaw that sounds like a great idea with a double benefit. Would you use tsdoc for this? There is a markdown plugin that might help us out too. |
Ref #615
Preview: http://ipfs.github.io/js-ipfs/
Awesome API Documentation
We want to improve the documentation in the whole project and for that this endeavour exists.
To improve the documentation we settled on using
jsdoc
style inline comments to describe the APIs and after that using documentation.js to generate beautiful docs.If you want to help out, please comment on this issue which module you are tackling.
Test Instructions
Currently the integration intoaegir
is not yet done, so when documenting you can usedocumentation.js
directly to test that everything works fine.^9.2.0
"docs": "aegir-docs"
npm run docs
docs/index.html
in your favorite browserModules
IPFS
IPLD
libp2p
multiformats
Other work