Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Added detailed explanations of how Rsbuild generates HTML files for each entry defined in source.entry, including the use of html-rspack-plugin and the ability to control HTML generation via the html property in the entry description object.

Checklist

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

Copilot AI review requested due to automatic review settings May 31, 2025 08:53
@netlify
Copy link

netlify bot commented May 31, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 2f7afc1
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/683ac373f478b200082d35b2
😎 Deploy Preview https://deploy-preview-5337--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: 81 (🟢 up 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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
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 enhances the documentation for HTML generation within the Rsbuild configuration, adding detailed explanations and updated code examples for both Chinese and English versions.

  • Added a dedicated "HTML 生成" / "HTML generation" section in guide and configuration docs.
  • Updated configuration examples and explanatory comments for both single-entry and global HTML generation control.
  • Revised inline comments in source config types for improved clarity.

Reviewed Changes

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

Show a summary per file
File Description
website/docs/zh/guide/basic/html-template.mdx Added section explaining HTML generation and default template usage.
website/docs/zh/config/tools/html-plugin.mdx Revised text to clarify disabling HTML generation for the plugin.
website/docs/zh/config/source/entry.mdx Enhanced explanation and examples for entry configuration and HTML generation control.
website/docs/en/guide/basic/html-template.mdx Added section for HTML generation and detail on the built-in template.
website/docs/en/config/source/entry.mdx Updated instructions and examples regarding disabling HTML generation for entries.
packages/core/src/types/config.ts Improved documentation comments for the source.entry configuration.

@chenjiahan chenjiahan merged commit 05b3805 into main May 31, 2025
12 checks passed
@chenjiahan chenjiahan deleted the html_generation_0531 branch May 31, 2025 09:02
@chenjiahan chenjiahan mentioned this pull request Jun 2, 2025
@chenjiahan chenjiahan mentioned this pull request Jun 26, 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.

1 participant