Skip to content

docs: add llms copy button #1146

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

Merged
merged 2 commits into from
Aug 4, 2025
Merged

docs: add llms copy button #1146

merged 2 commits into from
Aug 4, 2025

Conversation

Timeless0911
Copy link
Contributor

Summary

add llms copy button

image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

@Copilot 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 adds LLMS (Large Language Model Services) copy button functionality to the website theme by integrating components from the @rspress/plugin-llms package. The changes enable users to copy content and view options related to LLMS features directly from the documentation pages.

  • Imports LLMS runtime components for copy and view functionality
  • Creates a custom MDX component that wraps H1 headers with LLMS controls
  • Exports the custom MDX component to make it available throughout the site
Comments suppressed due to low confidence (1)

website/theme/index.tsx:22

  • The component name 'MyH1' is generic and doesn't describe its purpose. Consider renaming it to 'H1WithLlmsControls' or 'LlmsEnhancedH1' to better reflect that it adds LLMS functionality to H1 elements.
  const MyH1 = ({ ...props }) => {

Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 52b2bf0
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/689067def0914300085357ef
😎 Deploy Preview https://deploy-preview-1146--rslib.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

netlify bot commented Aug 4, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 425b1ec
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/689067fedf76120008d96742
😎 Deploy Preview https://deploy-preview-1146--rslib.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.

@Timeless0911 Timeless0911 enabled auto-merge (squash) August 4, 2025 08:12
@Timeless0911 Timeless0911 merged commit 4fe09ae into main Aug 4, 2025
18 of 22 checks passed
@Timeless0911 Timeless0911 deleted the docs/llms-copy branch August 4, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants