Skip to content

Automated SEO fixes: preserve Artifacts title and fix API reference#76

Merged
petradonka merged 2 commits into
mainfrom
automated-seo-fixes/artifact-title
May 15, 2026
Merged

Automated SEO fixes: preserve Artifacts title and fix API reference#76
petradonka merged 2 commits into
mainfrom
automated-seo-fixes/artifact-title

Conversation

@petradonka
Copy link
Copy Markdown
Collaborator

@petradonka petradonka commented May 15, 2026

Automated SEO fixes: preserve Artifacts title and fix API reference

What changed

  • Restored src/content/docs/reference/cli/artifacts.mdx to use title: Artifacts and documented it as an intentional title_too_short exception.
  • Updated the SEO audit source-file mapping so standalone Astro routes like /api/ and /openapi.yaml map to local source files instead of being treated as unfixable.
  • Added a visually hidden H1 to src/pages/api.astro so the generated Scalar API reference has an H1 for SEO and accessibility checks.
  • Removed the stale integrity attribute from the Scalar CDN script tag so the API reference is not blocked by an SRI mismatch.
  • Moved the /api topbar Docs link into the left breadcrumb area between the Warp logo and API Reference.

Validation

  • npm run build passed.
  • Verified the built /api/ page includes the Scalar API reference script without an integrity attribute.
  • Verified the rendered API reference DOM includes the Warp topbar, Scalar reference container, and endpoint text.

SEO audit notes

  • Artifacts is now allowlisted as an intentionally short title because the Reference > CLI context disambiguates it and the page documents the oz artifact resource.
  • /api/ is no longer categorized as unfixable solely because it is generated; the local shell lives in src/pages/api.astro, while API content still comes from developers/agent-api-openapi.yaml.

Conversation: https://app.warp.dev/conversation/f0fb6f31-765c-4849-9a21-2b068657e089
Run: https://oz.warp.dev/runs/019e2a6f-5f24-77ea-9dc1-02e0140a2756
This PR was generated with Oz.

Co-Authored-By: Oz oz-agent@warp.dev

Update frontmatter title from 'Artifacts' to 'Artifact commands' to meet
the 20-char minimum for <title> tags. Sidebar label remains 'Artifacts'.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 15, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 15, 2026 10:27am

Request Review

Co-Authored-By: Oz <oz-agent@warp.dev>
@petradonka petradonka changed the title Automated SEO fixes: resolve title_too_short on artifacts CLI reference Automated SEO fixes: preserve Artifacts title and fix API reference May 15, 2026
@petradonka petradonka requested a review from hongyi-chen May 15, 2026 10:27
@petradonka petradonka marked this pull request as ready for review May 15, 2026 10:27
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 15, 2026

@petradonka

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR updates the docs SEO audit workflow to recognize standalone Astro routes, preserves the intentional short Artifacts title, and adjusts the standalone API reference shell/topbar.

Concerns

  • The API reference still loads a third-party Scalar bundle from jsDelivr, but the PR removes subresource integrity instead of replacing it with a hash for the upgraded version.

Security

  • Loading the CDN script without SRI weakens the supply-chain protection for a script that executes on docs.warp.dev.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread src/pages/api.astro
})();
</script>
<script is:inline src="https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.52.2" integrity="sha384-lQKcRGSJRRAHGfUX6ajRHvcWdCi8lgITkVTftrhsN5rVkWmsjVaW0encVdMEhGhi" crossorigin="anonymous"></script>
<script is:inline src="https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.57.1" crossorigin="anonymous"></script>
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.

⚠️ [IMPORTANT] [SECURITY] Removing SRI from this third-party CDN script makes the page trust any bytes jsDelivr serves for this package version; update the integrity hash for @scalar/api-reference@1.57.1 or self-host/pin the bundle instead.

Copy link
Copy Markdown
Collaborator

@hongyi-chen hongyi-chen left a comment

Choose a reason for hiding this comment

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

LGTM but might be worth looking into that one important Oz comment / triggering another review

@petradonka
Copy link
Copy Markdown
Collaborator Author

LGTM but might be worth looking into that one important Oz comment / triggering another review

Good callout. I've intentionally done that, because https://docs.warp.dev/api doesn't work in prod right now, and it doesn't quite make sense to have SRI on externally hosted stuff that could change. Will merge this in to fix prod.

Thanks!

@petradonka petradonka merged commit a9de1f4 into main May 15, 2026
9 of 10 checks passed
@petradonka petradonka deleted the automated-seo-fixes/artifact-title branch May 15, 2026 16:33
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