mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-11-22 00:02:36 +00:00
5fa0df6e05
Spec processing now tags app.gitbook.com links in schema, parameter and response descriptions with their content ref (`data-gitbook-ref`). Before rendering an OpenAPI block, point each tagged link at the URL that ref resolves to in the current site, as links in page content already are, instead of the editor URL. The rewrite runs once per spec and request, copies only the changed objects (the spec comes from the data cache), and keeps the original href when a ref doesn't resolve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011HgypRi42LkaRDYNBtfgLF