Skip to content

docs: add Scalar API reference page#173

Merged
sachiniyer merged 1 commit intochore/sync-openapi-and-depsfrom
docs/scalar-api-reference-v3
Mar 11, 2026
Merged

docs: add Scalar API reference page#173
sachiniyer merged 1 commit intochore/sync-openapi-and-depsfrom
docs/scalar-api-reference-v3

Conversation

@sachiniyer
Copy link
Copy Markdown
Contributor

@sachiniyer sachiniyer commented Mar 11, 2026

Add a static HTML page that renders the OpenAPI spec using Scalar's
CDN-hosted API reference component. AI agent and client button are
disabled for a clean, focused documentation experience.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Open with Devin

Add a static HTML page that renders the OpenAPI spec using Scalar's
CDN-hosted API reference component. AI agent and client button are
disabled for a clean, focused documentation experience.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

sachiniyer commented Mar 11, 2026

@sachiniyer sachiniyer marked this pull request as ready for review March 11, 2026 00:46
@sachiniyer sachiniyer merged commit 491531b into chore/sync-openapi-and-deps Mar 11, 2026
6 of 7 checks passed
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@sachiniyer sachiniyer deleted the docs/scalar-api-reference-v3 branch March 11, 2026 00:46
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread docs/api/index.html
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
<script>
Scalar.createApiReference("#app", {
url: "./openapi.json",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Relative URL ./openapi.json points to non-existent file in docs/api/

The Scalar API reference is configured with url: "./openapi.json", which resolves relative to the HTML file's location (docs/api/). However, no openapi.json exists in docs/api/ — the only openapi.json in the repository is at the repo root (openapi.json). When this page is served, the fetch for the OpenAPI spec will 404 and the API reference will fail to render. The URL should likely be ../../openapi.json or the openapi.json file should be copied/symlinked into docs/api/.

Prompt for agents
In docs/api/index.html at line 13, the relative URL ./openapi.json resolves to docs/api/openapi.json, but the actual openapi.json file is at the repository root. Either:
1. Change the URL on line 13 to ../../openapi.json (i.e. url: "../../openapi.json") to point to the repo-root file, OR
2. Copy or symlink openapi.json into docs/api/, OR
3. Move or adjust the hosting so that openapi.json is served alongside this HTML file.
The correct fix depends on how docs/api/ is deployed (e.g. GitHub Pages, a static server, etc.).
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant