Skip to content

fix(docs): plain markdown for the API reference .md pages - #784

Merged
fclairamb merged 5 commits into
mainfrom
fix/docs-api-markdown
Nov 6, 2026
Merged

fclairamb merged 5 commits into
mainfrom
fix/docs-api-markdown

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

The .md copy of each API reference page (e.g. /docs/api/accept-invite.md) was the raw MDX generated by docusaurus-plugin-openapi-docs: imports and <RequestSchema {...require(...)}> components, with no field in it. Same for the API sections of llms-full.txt.

  • scripts/gen-api-markdown.ts runs after docusaurus build and rewrites those pages from openapi.yaml: endpoint, authentication, parameters, request body and response field tables (nested fields as user.email, items[].name). Error responses name the Error object instead of repeating it.
  • Tag pages list their operations, /docs/api.md lists the tags, servers and auth scheme.
  • The same content replaces the 336 API sections of llms-full.txt. The script fails if a section is missing or two sections share a title.
  • Rendering lives in src/lib/apiMarkdown.ts, unit-tested with bun test ./src.
  • excludeImports: true on docusaurus-plugin-llms drops the import lines left in other pages (e.g. tour.md).

Checked locally: bun run build passes, no @theme/ or require( left in any .md or llms-full.txt, tsc and bun test ./src green.

🤖 Generated with Claude Code

docusaurus-plugin-llms copies each page's source into its .md twin, and
the API reference sources are generated MDX: imports and JSX components
that load the fields from JSON. /docs/api/*.md and the API sections of
llms-full.txt showed that raw MDX with no field in it.

A post-build script now renders those pages from openapi.yaml: endpoint,
authentication, parameters, request body and response field tables.
Tag pages list their operations, /docs/api.md lists the tags. The llms
plugin also drops import lines from the other pages (excludeImports).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread web/docs/src/lib/apiMarkdown.ts Fixed
@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.23%. Comparing base (f4641dc) to head (13a1ce0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #784      +/-   ##
==========================================
+ Coverage   89.20%   89.23%   +0.02%     
==========================================
  Files        1320     1320              
  Lines      135152   135152              
==========================================
+ Hits       120568   120601      +33     
+ Misses      14575    14542      -33     
  Partials        9        9              

see 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb merged commit 3270ac6 into main Nov 6, 2026
31 checks passed
@fclairamb
fclairamb deleted the fix/docs-api-markdown branch November 6, 2026 18:59
@fclairamb fclairamb mentioned this pull request Nov 6, 2026
fclairamb added a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.44.1](v0.44.0...v0.44.1)
(2026-11-07)


### Bug Fixes

* **dash0:** keep valid sessions when a token refresh fails transiently
([#782](#782))
([8e77846](8e77846))
* **deps:** update module github.com/crewjam/saml to v0.5.2
([#786](#786))
([9d370fe](9d370fe))
* **deps:** update module github.com/posthog/posthog-go to v1.40.1
([#775](#775))
([37ada84](37ada84))
* **deps:** update module github.com/posthog/posthog-go to v1.41.1
([#785](#785))
([8684c71](8684c71))
* **docs:** plain markdown for the API reference .md pages
([#784](#784))
([3270ac6](3270ac6))
* **security:** normalize trailing-dot custom status domains
([#778](#778))
([8b2a7ca](8b2a7ca))
* **slack:** resolve check and incident link unfurls
([#779](#779))
([930f18e](930f18e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants