docs: add copy-to-clipboard to Report Builder LLM prompt and API blocks#15216
Merged
Maffooch merged 1 commit intoJul 10, 2026
Merged
Conversation
…ase-URL blocks The Doks docs theme (clipboard.js) only adds a copy button to fenced code blocks that Hugo wraps in <div class="highlight">, which requires the fence to declare a language. Two Report Builder blocks used a bare ``` fence and therefore rendered as plain <pre> with no copy button: - PRO__report_builder_llm.md: the self-contained LLM prompt users are meant to copy wholesale into Claude/ChatGPT - PRO__report_builder_api.md: the API base-URL example Tagging both fences as ```text matches the working Dashboards LLM guide and gives every command/prompt in the Report Builder docs a copy button. Authored by T. Walker - DefectDojo
9ea3d02 to
fb295b8
Compare
Maffooch
approved these changes
Jul 10, 2026
Contributor
|
Didn't even know you could do that. Nice work! |
paulOsinski
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Report Builder LLM guide (added in #15008) presents a large, self-contained prompt that users are meant to copy in one shot and paste into Claude/ChatGPT — but that block had no copy-to-clipboard button, unlike the equivalent block in the Dashboards LLM guide (#15111).
Root cause: the docs theme (Doks /
@thulite/doks-core) adds its copy button viaclipboard.js, which targets every element with classhighlight. Hugo only wraps a fenced code block in<div class="highlight">when the fence declares a language. Two Report Builder blocks used a bare```fence, so they rendered as plain<pre>with no copy button.Change
Tag the two bare fences as
```text(matching the working Dashboards LLM guide):PRO__report_builder_llm.md— the self-contained LLM promptPRO__report_builder_api.md— the API base-URL exampleEvery other fence in the Report Builder docs already declared
bash/json/python/shell, so they already had copy buttons. After this change, all API and LLM code/prompt blocks in the Report Builder docs are copy-to-clipboard capable.Verification
Built the site locally with Hugo (
hugo --gc) and confirmed:report-builder-llm/went from 1 → 2.highlightblocks; the prompt now renders as<code class="language-text">inside<div class="highlight">.report-builder-api/shows all fences wrapped in.highlight.Docs-only change; no code paths affected.
Generated with Claude Code under the direction of T. Walker (skywalke34) - DefectDojo