Skip to content

Use absolute URLs in llms.txt#654

Merged
aaronpowell merged 1 commit intomainfrom
combine-llms-txt-generation
Feb 3, 2026
Merged

Use absolute URLs in llms.txt#654
aaronpowell merged 1 commit intomainfrom
combine-llms-txt-generation

Conversation

@aaronpowell
Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, agent, or skill file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, or skill with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New collection file.
  • New skill file.
  • Update to existing instruction, prompt, agent, collection or skill.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings February 3, 2026 03:56
@aaronpowell aaronpowell merged commit 7144b12 into main Feb 3, 2026
10 checks passed
@aaronpowell aaronpowell deleted the combine-llms-txt-generation branch February 3, 2026 03:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the llms.txt generator to emit absolute links so entries resolve correctly outside the website’s relative URL context.

Changes:

  • Introduced a raw-GitHub base URL and helper to build absolute links.
  • Switched agent/prompt/instruction/skill and documentation links from relative paths to absolute raw GitHub URLs.

const prompts = promptsData.items;
const instructions = instructionsData.items;
const skills = skillsData.items;

Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

Remove the trailing whitespace on this otherwise blank line to keep formatting clean (and avoid lint/format failures if whitespace checks are enabled).

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +9
// Base URL for absolute links (to raw GitHub content)
const GITHUB_RAW_BASE = "https://raw.githubusercontent.com/github/awesome-copilot/main";

Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The raw GitHub base URL is duplicated here; the same value already exists as REPO_BASE_URL in website/src/scripts/utils.ts (and is wrapped by getRawGitHubUrl). To avoid drift, consider centralizing this constant in a shared module and reusing it here (and aligning naming with the existing REPO_BASE_URL).

Copilot uses AI. Check for mistakes.
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.

2 participants