Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC]: add API documentation index page #23

Open
3 tasks done
kgryte opened this issue Sep 6, 2021 · 3 comments
Open
3 tasks done

[RFC]: add API documentation index page #23

kgryte opened this issue Sep 6, 2021 · 3 comments

Comments

@kgryte
Copy link
Member

kgryte commented Sep 6, 2021

Description

This RFC proposes adding an API documentation index page (e.g., see NumPy).

This would provide a single page which links to all the package docs. This would be useful both to provide a high level overview of symbols in the namespace and for crawling.

Related Issues

No.

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.
@kgryte
Copy link
Member Author

kgryte commented Sep 13, 2021

One question is how this index should be organized. By namespace? Alphabetically according to path basename (e.g., @stdlib/math/base/special/sin => sin)? Do we replicate the tree structure? Do we list all packages as just a single flat list?

@kgryte
Copy link
Member Author

kgryte commented May 20, 2022

I think replicating the tree structure should be fine. We can, however, be more economical with space by arranging tree leaves across, say, 4 columns. For example,

A

  array

    base

      bar      foo1    foo4   foo7
      beep     foo2    foo5   foo8
      boop     foo3    foo6   foo9

    contains
    ...

There might be some tricky issues with layout (namely, indentation). Could also limit tree depth and use . syntax (e.g., base.special.sin), which may also be fine.

@kgryte
Copy link
Member Author

kgryte commented Feb 15, 2024

An example of a nicely organized index page is D3: https://d3js.org/api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant