docs(api): a browsable reference, and one page instead of three - #7014
Merged
Conversation
|
Claude finished @gustavosbarreto's task in 3m 32s —— View job Code Review CompleteReviewed 19 files across code quality, security, testing, language patterns, A few things I checked and confirmed hold:
To request another review round, comment |
|
Documentation preview: https://3c91ecac.shellhub-docs.pages.dev |
|
Documentation preview: https://59cb7739.shellhub-docs.pages.dev |
gustavosbarreto
force-pushed
the
docs/api-reference
branch
from
September 2, 2026 14:15
cf556d5 to
11840aa
Compare
|
Documentation preview: https://781f964b.shellhub-docs.pages.dev |
The documentation this site replaced rendered the specification as a reference you could read and search. The rewrite dropped it, leaving a page that hands over a YAML file, and the redirect for the old reference landed there. The reference is back, one page per edition behind a switch, rendered by Redoc from specifications the site now serves itself. They are bundled from openapi/spec during the build, the same way the release bundles are, so they describe the tree they ship with and no reader has to reach across origins for them. It stands outside the documentation layout on purpose: Redoc brings its own two-column reading surface and wants the window.
Authentication, keys and the specification were three pages telling one story, and two of them said the same things: the list of routes a key cannot reach, and the note that a key carries a role, appeared twice word for word. They are one page, in the order somebody works: authenticate, create the key, learn what it cannot do, rotate it, read a refusal, page a list, find the specification. The pages that linked the old two now link the section they meant, and the old URLs redirect there.
gustavosbarreto
force-pushed
the
docs/api-reference
branch
from
September 2, 2026 14:23
11840aa to
b7c9c8e
Compare
|
Documentation preview: https://e825e6f0.shellhub-docs.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentation this site replaced rendered the OpenAPI specification as a reference you could read and search. The rewrite dropped it, and the redirect for the old reference URL landed on a page that hands over a YAML file instead.
The reference is back, at
/api/reference, one edition at a time behind a switch. It is rendered by Redoc from specifications the site now serves itself, bundled fromopenapi/specduring the build the same way the release bundles are, so they describe the tree they ship with. That matters beyond tidiness: the bucket the release bundles live in only allowsdocs.shellhub.io, so a page fetching them would break on any other address the site is served from.It stands outside the documentation layout on purpose — Redoc brings its own two-column reading surface and wants the window — but carries the same header, so it reads as part of the site rather than a different one. It is reached from the REST API page instead of sitting in the navigation beside pages that read like pages.
Authentication, keys and the specification were three pages telling one story, and two of them repeated each other word for word: the list of routes an API key cannot reach, and the note that a key carries a role, appeared in both. They are now one page, in the order somebody works — authenticate, create the key, learn what it cannot do, rotate it, read a refusal, page a list, find the specification. The ten pages that linked the old two link the section they meant, and the old URLs redirect there.