Skip to content

Conversation

@hzy
Copy link
Contributor

@hzy hzy commented Nov 10, 2025

Change-Id: I608aa99fec95a9d3c09284f92a86bc7391af164b

Copilot AI review requested due to automatic review settings November 10, 2025 15:39
@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for lynx-doc ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 379d5a8
🔍 Latest deploy log https://app.netlify.com/projects/lynx-doc/deploys/6912d5fd27fc6f0008ba858e
😎 Deploy Preview https://deploy-preview-526--lynx-doc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
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

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 prefix and base parameters to postprocessLLMs function for flexible URL construction
  • Introduces COMMON_OPTIONS constant 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.

@hzy hzy force-pushed the p/hzy/docs-mcp-server-3 branch 2 times, most recently from 12eba1e to f409e75 Compare November 11, 2025 02:27
Change-Id: I608aa99fec95a9d3c09284f92a86bc7391af164b
@hzy hzy force-pushed the p/hzy/docs-mcp-server-3 branch from f409e75 to 379d5a8 Compare November 11, 2025 06:21
@colinaaa colinaaa merged commit 825d244 into lynx-family:main Nov 11, 2025
5 checks passed
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