-
Notifications
You must be signed in to change notification settings - Fork 129
fix: pluginLLMsPostprocess: honor "base" config #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for lynx-doc ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the llms-postprocess plugin to support configurable URL prefixes and base paths, enabling dynamic link generation for different deployment environments. The changes convert hardcoded absolute URLs to a parameterized approach and update AGENTS.md files to use relative links.
Key changes:
- Adds
prefixandbaseparameters topostprocessLLMsfunction for flexible URL construction - Introduces
COMMON_OPTIONSconstant for consistent markdown formatting options - Converts all links in AGENTS.md files from absolute (
https://lynxjs.org/next/...) to relative paths (/guide/...)
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
plugins/llms-postprocess/src/postprocess.ts |
Adds URL parameterization with prefix/base parameters, introduces COMMON_OPTIONS, implements link normalization and absolute path construction logic |
plugins/llms-postprocess/src/index.ts |
Updates function call to pass hardcoded prefix and config-derived base parameter |
plugins/llms-postprocess/scripts/main.ts |
Updates function call with hardcoded prefix and version-specific base path |
docs/public/zh/AGENTS.md |
Converts all absolute documentation links to relative paths |
docs/public/AGENTS.md |
Converts all absolute documentation links to relative paths |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
12eba1e to
f409e75
Compare
Change-Id: I608aa99fec95a9d3c09284f92a86bc7391af164b
f409e75 to
379d5a8
Compare
Change-Id: I608aa99fec95a9d3c09284f92a86bc7391af164b