Skip to content

Commit e50e659

Browse files
committed
docs: restore uni-app and hbuilderx sidebar entries
1 parent 1195cc9 commit e50e659

File tree

4 files changed

+58
-9
lines changed

4 files changed

+58
-9
lines changed

website/docs/quick-start/frameworks/hbuilderx.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ keywords:
1818
- rax
1919
- mpx
2020
---
21-
# uni-app HbuilderX 使用方式
21+
# uni-app HBuilderX 使用方式
2222

23-
## 默认使用方式
23+
:::caution
24+
本文同时包含两条 `HBuilderX` 路线:
25+
26+
- `HBuilderX Vue3 Vite`:推荐
27+
- `HBuilderX Vue2 Webpack`:仅供存量项目维护
28+
:::
29+
30+
## HBuilderX Vue3 Vite(推荐)
2431

2532
> 配置会稍微复杂一些,这里推荐直接使用或者参考模板: [uni-app-vue3-tailwind-hbuilder-template](https://github.com/sonofmagic/uni-app-vue3-tailwind-hbuilder-template) 或者 [若依移动端 (Gitee 地址)](https://gitee.com/sonofmagic/RuoYi-App)
2633
@@ -95,7 +102,7 @@ export default defineConfig({
95102

96103
<!-- 另外出于开发体验的角度,还是推荐使用 `vscode` 作为你的开发工具,`hbuilderx` 只用于进行原生发布调试与 `ucloud` 部署用。 -->
97104

98-
## Hbuilderx 与 uni-app cli 环境汇总
105+
## HBuilderX 与 uni-app cli 环境汇总
99106

100107
首先,你需要知道你的项目究竟使用的是什么打包工具,截止今天 `2023/12/18` 目前如下所示:
101108

@@ -108,7 +115,7 @@ export default defineConfig({
108115

109116
也就是说,目前 `hbuilderx vue2` 的项目是最老的,无法使用最新版本的 `tailwindcss`,其他都可以使用。
110117

111-
## hbuilderx vue2 webpack4 postcss7 版本模板
118+
## HBuilderX Vue2 Webpack(存量项目) {#hbuilderx-vue2-webpack}
112119

113120
如果你实在必须在 `hbuilderx vue2` 的项目中使用 `tailwindcss`,那么你可以使用下面的方法来使用 `tailwindcss`
114121

website/docs/quick-start/v4/uni-app-vite-hbuilder.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ import UniAppHbuilderShared from './UniAppHbuilderShared.mdx'
2222

2323
# HBuilderX
2424

25+
:::caution
26+
这条 `HBuilderX(uni-app)` 路线对应 `Vue3 + Vite`,属于推荐方案。
27+
28+
如果你已经使用 `HBuilderX` 工作流、插件生态或发布流程,可以直接按本文接入;如果你希望更贴近当前仓库推荐的开发方式,也可以评估 [weapp-vite](/docs/quick-start/v4/weapp-vite)
29+
:::
30+
2531
<UniAppHbuilderShared />

website/sidebars/tutorial.ts

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,33 @@ const tutorialSidebar: SidebarConfig = [
2828
{
2929
type: 'category',
3030
label: 'uni-app',
31-
items: ['uni-app-vite', 'uni-app-x'].map(x => `quick-start/frameworks/${x}`),
31+
items: [
32+
{
33+
type: 'doc',
34+
label: 'CLI Vue3 Vite(推荐)',
35+
id: 'quick-start/frameworks/uni-app-vite',
36+
},
37+
{
38+
type: 'doc',
39+
label: 'HBuilderX Vue3 Vite(推荐)',
40+
id: 'quick-start/frameworks/hbuilderx',
41+
},
42+
{
43+
type: 'link',
44+
label: 'HBuilderX Vue2 Webpack(存量项目)',
45+
href: '/docs/quick-start/frameworks/hbuilderx#hbuilderx-vue2-webpack',
46+
},
47+
{
48+
type: 'doc',
49+
label: 'CLI Vue2 Webpack(存量项目)',
50+
id: 'quick-start/frameworks/uni-app',
51+
},
52+
{
53+
type: 'doc',
54+
label: 'uni-app x',
55+
id: 'quick-start/frameworks/uni-app-x',
56+
},
57+
],
3258
},
3359
...['taro', 'rax', 'mpx', 'native', 'api'].map(x => `quick-start/frameworks/${x}`),
3460
],
@@ -83,6 +109,16 @@ const tutorialSidebar: SidebarConfig = [
83109
label: 'Vite Vue3 CLI(推荐)',
84110
id: 'quick-start/v4/uni-app-vite',
85111
},
112+
{
113+
type: 'doc',
114+
label: 'HBuilderX Vue3 Vite(推荐)',
115+
id: 'quick-start/v4/uni-app-vite-hbuilder',
116+
},
117+
{
118+
type: 'doc',
119+
label: 'CLI Vue2 Webpack(存量项目)',
120+
id: 'quick-start/v4/uni-app-webpack',
121+
},
86122
{
87123
type: 'doc',
88124
label: 'uni-app x',

website/static/llms-index.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "1.0.0",
3-
"generatedAt": "2026-03-30T12:51:11.367Z",
3+
"generatedAt": "2026-04-01T16:03:32.865Z",
44
"siteUrl": "https://tw.icebreaker.top",
55
"totals": {
66
"all": 175,
@@ -3949,11 +3949,11 @@
39493949
"mpx"
39503950
],
39513951
"headings": [
3952-
"默认使用方式",
3952+
"HBuilderX Vue3 Vite(推荐)",
39533953
"# tailwind.config.js",
39543954
"# vite.config.[tj]s",
3955-
"Hbuilderx 与 uni-app cli 环境汇总",
3956-
"hbuilderx vue2 webpack4 postcss7 版本模板",
3955+
"HBuilderX 与 uni-app cli 环境汇总",
3956+
"HBuilderX Vue2 Webpack(存量项目) {#hbuilderx-vue2-webpack}",
39573957
"Hack hbuilderx vue2 Way",
39583958
"视频演示"
39593959
],

0 commit comments

Comments
 (0)