fix: 修复gitignore忽略问题#1874
Merged
Merged
Conversation
Contributor
Author
|
@robinv8 review please |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the repository’s .gitignore so the docs’ .vitepress source directory (config/theme) is no longer unintentionally ignored, and introduces a custom VitePress configuration/theme to support the documentation site (including an embedded H5 demo iframe and an IconList component).
Changes:
- Update
.gitignoreto ignore only VitePress build artifacts (.vitepress/cache,.vitepress/dist) instead of the entire.vitepress/directory. - Add VitePress site config (
docs/.vitepress/config.mts) including a dev-server middleware to serve the H5 demo build fromexamples/demo/dist. - Add a custom VitePress theme (CSS, Layout with iframe demo, global IconList component).
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/.vitepress/theme/style.css | Adds VitePress brand tokens and doc/demo-specific styling (icon list, resource cards, iframe wrapper, changelog timeline). |
| docs/.vitepress/theme/Layout.vue | Custom layout that conditionally embeds the H5 demo in an iframe on component docs pages. |
| docs/.vitepress/theme/index.ts | Registers the custom theme assets and globally registers IconList. |
| docs/.vitepress/theme/components/IconList.vue | New Vue version of the icon list renderer used by docs. |
| docs/.vitepress/config.mts | VitePress config (base/nav/sidebar/etc.) plus a dev middleware to serve /h5/ assets from examples/demo/dist. |
| .gitignore | Stops ignoring the whole .vitepress/ directory; ignores only cache/dist outputs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Uh oh!
There was an error while loading. Please reload this page.