docs: explain tag options of html.tags config#5573
Merged
chenjiahan merged 3 commits intomainfrom Jul 10, 2025
Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
html.tagshtml.tags config
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the html.tags feature by clarifying its type options and providing detailed examples for tag injection, attributes, innerHTML content, and URL handling.
- Add cross‐reference links to
html.tagsin hooks docs. - Enrich
html.tagsdocs (Chinese and English) with multiple usage examples and expanded option descriptions. - Update TypeScript config comments to align with documentation changes.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/plugins/dev/hooks.mdx | Added link to html.tags reference |
| website/docs/zh/config/html/tags.mdx | Expanded Chinese docs with examples and detailed options |
| website/docs/en/plugins/dev/hooks.mdx | Added link to html.tags reference |
| website/docs/en/config/html/tags.mdx | Expanded English docs with examples and detailed options |
| packages/core/src/types/config.ts | Updated JSDoc comments for hash and publicPath fields |
Comments suppressed due to low confidence (1)
website/docs/en/config/html/tags.mdx:15
- The English documentation contains Chinese headings and descriptions; these should be translated into English (e.g., 'Basic Example' instead of '基础示例').
## 基础示例
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
HtmlTagtypehashandpublicPathoptionsChecklist