Docs: a page for each topic, and an API reference laid out like docs.rs #223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ipxreader.app/docs is one long page. Split it: install, the command line, and the directory each on a page of its own, and an API reference for ipx and the directory laid out the way docs.rs lays out a crate: a sidebar of items, a page for each endpoint with its signature, parameters, what it returns and its errors, and a page for each type it returns, with its fields.
A prototype, on the branch
docs-pagesand deployed only to the preview at https://docs-pages.ipxreader.pages.dev/docs/ (ipxreader.app is unchanged). For your approval before it is merged and deployed.Before: one long page.
After: guides a page each (Overview, Install, Command line, Directory), and an API reference for ipx and one for the directory, as docs.rs lays out a crate: a root page listing modules and types, a page a module, a page an endpoint (its declaration, parameters, body, returns, errors, an example) and a page a type (its fields, and which endpoints use it). 128 pages, generated by
site/gen.mjsfromsite/api.mjs.Overview:

The ipx reference's root:

An endpoint:

A type:

An endpoint on a phone (the sidebar follows the page there):

Yours to decide:
ipx::entries::get_feed_entries) and the types are written as Rust writes them (Option<String>,Vec<EntryRow>), to match docs.rs. Plain JSON names (string or null) would read better to someone who does not write Rust.page-check,login-check,signin),/api/clientand/api/artare left out as the page's own business.Merged to main in
e4b5055and deployed to ipxreader.app: guides at /docs/, API references at /docs/api/ipx/ and /docs/api/directory/.