Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Generate & include package documentation for JS modules #70

Closed
Mr0grog opened this issue Jun 7, 2018 · 2 comments
Closed

Generate & include package documentation for JS modules #70

Mr0grog opened this issue Jun 7, 2018 · 2 comments
Labels
dif/medium Prior experience is likely helpful effort/days Estimated to take multiple days, but less than a week topic/design-front-end Front-end implementation of UX/UI work topic/infra Infrastructure

Comments

@Mr0grog
Copy link
Collaborator

Mr0grog commented Jun 7, 2018

In #68, I noted that we aren’t currently able to generate API docs for JS modules:

This does not have package API docs like the Go section does because the JS libraries don’t have much in the way of generatable docs. What they do have is semi-structured in the READMEs — if we came up a standard way to structure it, we could include them here, but I eventually gave up on finding a way to do this that worked well and didn’t feel totally janky. This requires a broader effort.

@olizilla chimed in to say:

@alanshaw let's JSDoc js-ipfs and js-ipfs-api. I don't see any reason not to, and am happy to start PRing things.

Which sounds great! I’m going to merge #68 without this, but we should track this work here.

Two major items jump out at me that aren’t straightforward:

  1. Keeping the doc comments in the code and the API section of the README will be a pain. We could replace that section with a link or we could generate the README section from the doc comments.

  2. Incorporating/linking/whatever the commands part of the API (e.g. ipfsInstance.files.write) in a way that feels good.

Let’s start with js-ipfs and see how that works, then move on to other packages (js-ipfs-api next, then other ones that we think are highly relevant).

@daviddias
Copy link

Cross posting #68 (comment) to here:

On JSDocs, check out ipfs/js-ipfs#651 and ipfs/js-ipfs#615

@Mr0grog Mr0grog added enhancement dif/hard Having worked on the specific codebase is important labels Aug 24, 2018
@meiqimichelle meiqimichelle added topic/design-content Content design, writing, information architecture and removed blocked topic/design-content Content design, writing, information architecture labels Jun 4, 2019
@jessicaschilling jessicaschilling changed the title Generate & include package documentation for JS modules Content Enhancement: Generate & include package documentation for JS modules Jul 26, 2019
@jessicaschilling jessicaschilling changed the title Content Enhancement: Generate & include package documentation for JS modules Generate & include package documentation for JS modules Sep 19, 2019
@jessicaschilling jessicaschilling added topic/design-front-end Front-end implementation of UX/UI work dif/medium Prior experience is likely helpful effort/days Estimated to take multiple days, but less than a week OKR: Beta Launch and removed topic/design-content Content design, writing, information architecture dif/hard Having worked on the specific codebase is important Epic labels Sep 19, 2019
@jessicaschilling jessicaschilling added topic/docs Documentation topic/infra Infrastructure and removed OKR 0: IPFS-hosted beta launch topic/docs Documentation labels Dec 16, 2019
@jessicaschilling
Copy link
Contributor

Closing this issue, since our overall approach to API/CLI docs is being worked in #393 in Q1 2020.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dif/medium Prior experience is likely helpful effort/days Estimated to take multiple days, but less than a week topic/design-front-end Front-end implementation of UX/UI work topic/infra Infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants