-
Notifications
You must be signed in to change notification settings - Fork 289
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
refactor: bump vitepress docs to v1.2.3
#1898
Open
fu050409
wants to merge
30
commits into
DevCloudFE:dev
Choose a base branch
from
SWPUOpenSource:refactor/vitepress-docs
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
…ress api Related Issues: DevCloudFE#1879
Related Issues: DevCloudFE#1879
Related Issue: DevCloudFE#1879
Reasons: 1. The `demoList` is seems unsupported for latest version of vitepress 2. The latest `vitepress-theme-demoblock` no longer support for `:::demo <comment>` Related Issue: DevCloudFE#1879
- The latest version of `vitepress-theme-demoblock` does not support `:::demo <comment> - With `<script setup>` tag, the vitepress will give a 404 error when trying to load the demo code. Related Issue: DevCloudFE#1879
- vite@4 installed instead of vite@5 by virtue of requirements relations - vitepress@latest is installed - other updates are safe update Related Issue: DevCloudFE#1879
- Remove unknown language mark - Remove useless border-radius
- Add checks before activate active bars in the code
- Set `headers: true` in markdown config - Refactor `useToc` to fit new apis Related Issue: DevCloudFE#1879
fu050409
force-pushed
the
refactor/vitepress-docs
branch
from
June 30, 2024 11:45
b6dc492
to
8aee49a
Compare
- Rename `lodash` to `lodash-es`, `lodash` is a CommonJS module, which means it cannot be used in an ES6 module.
PR preview has been successfully built and deployed to https://vue-devui-pr-1898.surge.sh. |
PR preview has been successfully built and deployed to https://vue-devui-pr-1898.surge.sh. |
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.
重构 VitePress 至最新版
Resolved #1879
修订内容
结构性依赖更新
在此次更新中,我们使用了更新版本的
vite@4
,但是没有使用vite@5
,有部分依赖对vite@5
没有适配,故暂时使用vite@4
,我已经检查了此次更新中的依赖,没有依赖冲突和任何已知的漏洞。将 VitePress 从
v0.x
更新至v1.2.3
即最新版本我重构了所有 VitePress 的接口,确保它们在新版依旧正常工作。
重构
vitepress-theme-demoblock
至最新版本旧版本的此依赖不兼容
vitepress@1
,所以我将此依赖擢升至@3
来确保其正常工作,我暂时使用了官方提供的Demo
元件而不是我们的定制组件,我们的组件在新版中存在问题,暂时未能找到解决方案。注意,我将所有
:::demo <comment>
语法都删除了,因为官方明确表示了在新版中移除了对此语法的支持。修复了一些历史遗留问题
在重构的过程中,修复了一些历史遗留问题,例如
Menu
组件中的文档依旧使用了对script
标签使用了setup
语法,这无法被正确渲染。重构了所有
lodash
的导入,处理构建过程中的问题当前文档已可以正常使用
pnpm build
完成构建。仍然存在的问题