Skip to content

docs: add code examples for html tags config options#5904

Merged
chenjiahan merged 1 commit intomainfrom
tag_examples_0821
Aug 21, 2025
Merged

docs: add code examples for html tags config options#5904
chenjiahan merged 1 commit intomainfrom
tag_examples_0821

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Add usage examples for the append and head options in the HTML tags configuration documentation to improve clarity.

Checklist

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

Copilot AI review requested due to automatic review settings August 21, 2025 06:21
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit b25ab7d
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a6bb02ca634b00083f4748
😎 Deploy Preview https://deploy-preview-5904--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (🔴 down 21 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

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

This PR adds code examples to the HTML tags configuration documentation to improve clarity for developers. The documentation now includes practical usage examples for the append and head configuration options.

Key Changes

  • Added TypeScript code examples for the append option showing how to insert tags before existing ones
  • Added TypeScript code examples for the head option demonstrating how to inject tags into the <body> element
  • Applied these improvements to both English and Chinese documentation versions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
website/docs/en/config/html/tags.mdx Added code examples for append and head options in English documentation
website/docs/zh/config/html/tags.mdx Added code examples for append and head options in Chinese documentation

@chenjiahan chenjiahan merged commit 741109f into main Aug 21, 2025
12 checks passed
@chenjiahan chenjiahan deleted the tag_examples_0821 branch August 21, 2025 06:28
@chenjiahan chenjiahan mentioned this pull request Aug 21, 2025
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