Skip to content

Add copy button to hard-coded API docs#37628

Open
jhgilbert wants to merge 5 commits into
masterfrom
jen.gilbert/hardcoded-api-docs-copy
Open

Add copy button to hard-coded API docs#37628
jhgilbert wants to merge 5 commits into
masterfrom
jen.gilbert/hardcoded-api-docs-copy

Conversation

@jhgilbert

@jhgilbert jhgilbert commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Merge readiness

Adds a button to the hard-coded (non-generated) API docs. There are only four pages like this, all in the Overview section (example).

Note that CORS errors are expected in staging, since there is no staging plaintext build, so the Copy button fails over to the HTML scrape. But you can see that the URL of the failed request does exist (for example, https://docs.datadoghq.com/api/latest.md), so it would work fine in prod, where the request would be coming from the same origin (docs.datadoghq.com).

Also removes an unwanted underline on hover, the CSS just wasn't fleshed out enough on the original button.

If you're the docs reviewer, not much for you to do here, feel free to stamp it. I can seek CorpWeb approval myself, don't worry about escalating it for me.

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

Additional notes

@jhgilbert jhgilbert requested a review from a team as a code owner June 18, 2026 21:01
@jhgilbert jhgilbert added the WORK IN PROGRESS No review needed, it's a wip ;) label Jun 18, 2026
@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Jun 18, 2026
@jhgilbert jhgilbert requested a review from a team as a code owner June 18, 2026 22:11
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/documentation | missing_tms_preview   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 61f029b | Docs | Datadog PR Page | Give us feedback!

@jhgilbert jhgilbert removed the WORK IN PROGRESS No review needed, it's a wip ;) label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants