Skip to content

docs: add @category tags to public API to prep for supabase docs - #95

Merged
mandarini merged 4 commits into
mainfrom
docs/add-category-tags
Jul 3, 2026
Merged

mandarini merged 4 commits into
mainfrom
docs/add-category-tags

Conversation

@mandarini

@mandarini mandarini commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Prepares the public API for TypeDoc-based reference documentation in the supabase/supabase docs repo, and fixes two failing JSR score criteria.

What changed

TypeDoc: @category tags

  • Added @category tags (Primitives, Types, Errors, Adapters, Middleware) to all publicly exported functions, types, classes, and error constants so TypeDoc can group them for reference navigation.

TypeDoc: cross-module {@link} references

  • Updated {@link} references throughout src/types.ts and adapter files to use module-qualified names (e.g. {@link core.resolveEnv}, {@link index.EnvError}) so TypeDoc resolves cross-entrypoint links correctly instead of producing broken anchors.

TypeDoc: new exports

  • VerifyAuthOptions and VerifyCredentialsOptions are now exported from @supabase/server/core. Both were previously internal interfaces but are part of the public API surface.

TypeDoc: typedoc.json updates

  • Added explicit highlightLanguages list (typescript, javascript, tsx, bash, sh, toml, json) so code blocks in docs render with correct syntax highlighting.
  • Removed docs/hono-adapter.md from the extras list (no longer needed).

JSR score: module docs

  • Added @module tag to the JSDoc comment in all 7 entrypoint files (src/index.ts, src/core/index.ts, src/peer/supabase-js/index.ts, and the four adapter entrypoints). JSR's scoring requires @module to identify a comment as a module-level doc; @packageDocumentation alone (TypeDoc's convention) is not recognized by JSR. Both tags now coexist.

@mandarini
mandarini requested review from a team as code owners July 3, 2026 11:41
@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@supabase/server@95

commit: 00c9202

Comment thread typedoc.json Resolved
@mandarini
mandarini merged commit e184b8e into main Jul 3, 2026
7 checks passed
@mandarini
mandarini deleted the docs/add-category-tags branch July 3, 2026 11:55
mandarini added a commit to supabase/supabase that referenced this pull request Jul 7, 2026
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs update.

*
https://docs-git-docs-wire-server-v1-reference-supabase.vercel.app/docs/reference/server/introduction
* 
<img width="417" height="628" alt="Screenshot 2026-07-06 at 6 13 33 PM"
src="https://github.com/user-attachments/assets/9fc27b04-038b-4434-8855-94051f898b5d"
/>

## What is the current behavior?

`@supabase/server` has no reference documentation page in the Supabase
docs. The library publishes a TypeDoc spec to GitHub Pages but the docs
pipeline was not wired up to consume it.

## What is the new behavior?

- Adds `spec/reference/server/v1/` with a `config.json` (category order:
Middleware, Primitives, Adapters, Errors, Types) and `partials/` for the
introduction and installing pages.
- Adds a `download.server.v1` Makefile target that fetches
`https://supabase.github.io/server/spec.json` into
`spec/reference/server/v1/server.json`, and wires it into the top-level
`download` target so it runs with the rest.
- Registers `server-v1` in `SUPPORTS_NEW_REFERENCE_PROCESS` so the build
pipeline picks up the new spec directory and generates
`content/reference/server/v1/` at build time.
- Seeds the generated `docs/ref/server/` partials (introduction and
installing) that the reference router serves.

## Additional context

The TypeDoc spec is produced by `@supabase/server`'s `docs.yml` workflow
on every push to `main`, so `make download.server.v1` will always pull
the latest published API surface. The companion PR in the server repo
([supabase/server#95](supabase/server#95)) adds
the `@category` tags that the pipeline requires for symbols to appear in
navigation.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a new **Server SDK** item under **Reference**, linking to
`/reference/server` and marked with a **New** badge.
* Published **Server Reference v1** documentation for
`@supabase/server`, including **Introduction** and **Installing** pages.

* **Chores / Improvements**
* Enhanced the reference documentation generation to include Server v1
content.
* Improved reference detail handling (including clearer TypeDoc output
such as **Deprecated** notes).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Chris Chinchilla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants