Add copy instructions button to docs homepage#938
Closed
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add a button the Astro starlight docs template that copies the content of pkg/cli/template/instructions.md to the clipboard.
- the button should be visible at top of the top of the page.
Add copy instructions button to docs homepage
Sep 19, 2025
Copilot stopped work on behalf of
pelikhan due to an error
September 19, 2025 05:19
Collaborator
|
@copilot show screenshot |
Contributor
Author
Here's a screenshot showing the copy instructions button in action: The button is prominently positioned at the top of the docs homepage, right after the hero section. When clicked, it copies the complete contents of Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Collaborator
|
can you move this button |
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.

Added a prominent "Copy Instructions (.github/instructions)" button to the top of the GitHub Agentic Workflows documentation homepage that allows users to easily copy the complete instructions template to their clipboard.
What this adds
The new button provides a convenient way for users to copy the entire contents of
pkg/cli/templates/instructions.mddirectly from the documentation site. This makes it much easier for developers to get started with GitHub Agentic Workflows by providing instant access to the comprehensive instructions template that can be pasted into their own repositories'.github/instructions/directory.Implementation details
CopyInstructionsButton.astrothat reads the instructions content at build timeWhy this is useful
The instructions template contains nearly 1000 lines of comprehensive documentation about GitHub Agentic Workflows syntax, configuration options, security considerations, and best practices. Having this available as a one-click copy operation significantly reduces friction for new users who want to set up proper instructions for AI coding agents in their repositories.
The button integrates seamlessly with the existing documentation design and provides immediate access to the complete GitHub Agentic Workflows instructions template.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com/tmp/go-build2984995671/b304/cli.test -test.testlogfile=/tmp/go-build2984995671/b304/testlog.txt -test.paniconexit0 -test.v=true -test.timeout=3m0s(dns block)/tmp/go-build2682131174/b304/cli.test -test.testlogfile=/tmp/go-build2682131174/b304/testlog.txt -test.paniconexit0 -test.v=true -test.timeout=3m0s(dns block)https://api.github.com/repos/githubnext/gh-aw/releasesnode /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro dev(http block)node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build(http block)telemetry.astro.buildnode /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro dev(dns block)node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.