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

Implement improved API reference presentation in docs beta #225

Closed
pkafei opened this issue Jul 25, 2019 · 6 comments
Closed

Implement improved API reference presentation in docs beta #225

pkafei opened this issue Jul 25, 2019 · 6 comments
Assignees
Labels
dif/hard Having worked on the specific codebase is important effort/weeks Estimated to take multiple weeks topic/design-content Content design, writing, information architecture topic/infra Infrastructure

Comments

@pkafei
Copy link

pkafei commented Jul 25, 2019

Implement the means of presenting API reference materials that we decide upon in #339.

@pkafei pkafei added the topic/design-content Content design, writing, information architecture label Jul 25, 2019
@Stebalien
Copy link
Contributor

Requirements:

  • Open source.
  • Docs hosted on IPFS (serverless). The rust docs implement client-side search that works pretty well.

In terms of search, Control+F is actually pretty reliable given that all our commands are on the same page. Search primarily becomes an issue when content is split across multiple pages.

A couple of simple improvements we could make:

  • Add a TOC.
  • Collapse some parts of the documentation by default (e.g., the example requests).

@jessicaschilling
Copy link
Contributor

I think just judicious addition of expand-collapse could go a long way here.

@Stebalien
Copy link
Contributor

Yep. Note: I'd prefer a TOC over expanding/collapsing individual sections as the latter may break Ctrl+F.

@lanzafame
Copy link

Another aspect to this that I would love to see, is that every API resource/command section header should be a linkable anchor, i.e. docs.ipfs.io/reference/api/http#add should like to /api/v0/add section and clicking on the header will put the anchored version of the url in the url bar so when it comes to sharing links to the docs, it is easy to share exactly what you intend on forums and such. This is especially important if we are staying with a single page.

@hsanjuan
Copy link
Member

Historical fact: It had a TOC and it was removed because it was effectively moved to the side-menu.

+1 to keeping Ctrl+F working.

They already have anchored links: https://docs.ipfs.io/reference/api/http/#api-v0-add. It's missing the anchor character thing that you can click to produce that link (but you can use the menu item). Anyway, that's an easy fix at: https://github.com/ipfs/http-api-docs

@jessicaschilling jessicaschilling added the dif/medium Prior experience is likely helpful label Jul 31, 2019
@jessicaschilling jessicaschilling changed the title IPFS HTTP APIs are Hard to Search Hotfix: IPFS HTTP APIs are Hard to Search Aug 26, 2019
@jessicaschilling jessicaschilling added dif/hard Having worked on the specific codebase is important effort/weeks Estimated to take multiple weeks and removed dif/medium Prior experience is likely helpful labels Sep 19, 2019
@jessicaschilling jessicaschilling changed the title Hotfix: IPFS HTTP APIs are Hard to Search IPFS HTTP APIs are Hard to Search Sep 19, 2019
@jessicaschilling jessicaschilling changed the title IPFS HTTP APIs are Hard to Search Implement improved API reference presentation in docs beta Oct 4, 2019
@jessicaschilling
Copy link
Contributor

Closing, since this issue has been consolidated into the overall effort for improving/automating API/CLI documentation in #393. Comments have been migrated there!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dif/hard Having worked on the specific codebase is important effort/weeks Estimated to take multiple weeks topic/design-content Content design, writing, information architecture topic/infra Infrastructure
Projects
None yet
Development

No branches or pull requests

7 participants