Skip to content

Commit abdcdd5

Browse files
committed
chore(docs): increase vitepress build memory limit
1 parent 74a643e commit abdcdd5

5 files changed

Lines changed: 100 additions & 3 deletions

File tree

.github/workflows/pr-ci-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
run: pnpm build
4848

4949
- name: Build docs
50+
env:
51+
VP_LOCAL_SEARCH: 'false'
52+
VP_BUILD_MINIFY: 'false'
5053
run: pnpm -F docs build
5154

5255
- name: Save PR number

docs/.vitepress/config.mts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const prodAlias = {
1717
'@opentiny/tiny-robot-style': '@opentiny/tiny-robot/dist/style.css',
1818
}
1919

20+
const tinyVueAlias = fileURLToPath(new URL('./tiny-vue-runtime.ts', import.meta.url))
21+
const useLocalSearch = process.env.VP_LOCAL_SEARCH !== 'false'
22+
const useBuildMinify = process.env.VP_BUILD_MINIFY !== 'false'
23+
2024
// https://vitepress.dev/reference/site-config
2125
export default defineConfig({
2226
title: 'TinyRobot',
@@ -35,12 +39,16 @@ export default defineConfig({
3539
],
3640
vite: {
3741
plugins: [vueJsx(), SidebarBadgePlugin()],
42+
build: {
43+
minify: useBuildMinify,
44+
},
3845
server: {
3946
open: true,
4047
proxy: process.env.VP_MODE === 'development' ? { '/playground': 'http://localhost:5184' } : undefined,
4148
},
4249
resolve: {
4350
alias: {
51+
'@opentiny/vue': tinyVueAlias,
4452
...(process.env.VP_MODE === 'development' ? devAlias : prodAlias),
4553
},
4654
},
@@ -62,8 +70,6 @@ export default defineConfig({
6270
logo: '/logo-mini.svg',
6371
siteTitle: 'TinyRobot',
6472
...themeConfig,
65-
search: {
66-
provider: 'local',
67-
},
73+
...(useLocalSearch ? { search: { provider: 'local' } } : {}),
6874
},
6975
})
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import {
2+
TinyBaseSelect,
3+
TinyButton,
4+
TinyInput,
5+
TinyModal,
6+
TinyNumeric,
7+
TinyOption,
8+
TinyPopconfirm,
9+
TinyRadio,
10+
TinyRadioGroup,
11+
TinySelect,
12+
TinySlider,
13+
TinySwitch,
14+
TinyTabItem,
15+
TinyTabs,
16+
TinyTooltip,
17+
} from './tiny-vue'
18+
import TinyNotify from '@opentiny/vue-notify'
19+
20+
export * from './tiny-vue'
21+
export { TinyButton as Button, TinySwitch as Switch }
22+
export { TinyNotify as Notify }
23+
24+
export default {
25+
BaseSelect: TinyBaseSelect,
26+
Button: TinyButton,
27+
Input: TinyInput,
28+
Modal: TinyModal,
29+
Notify: TinyNotify,
30+
Numeric: TinyNumeric,
31+
Option: TinyOption,
32+
Popconfirm: TinyPopconfirm,
33+
Radio: TinyRadio,
34+
RadioGroup: TinyRadioGroup,
35+
Select: TinySelect,
36+
Slider: TinySlider,
37+
Switch: TinySwitch,
38+
TabItem: TinyTabItem,
39+
Tabs: TinyTabs,
40+
Tooltip: TinyTooltip,
41+
TinyBaseSelect,
42+
TinyButton,
43+
TinyInput,
44+
TinyModal,
45+
TinyNotify,
46+
TinyNumeric,
47+
TinyOption,
48+
TinyPopconfirm,
49+
TinyRadio,
50+
TinyRadioGroup,
51+
TinySelect,
52+
TinySlider,
53+
TinySwitch,
54+
TinyTabItem,
55+
TinyTabs,
56+
TinyTooltip,
57+
}

docs/.vitepress/tiny-vue.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export { default as TinyBaseSelect } from '@opentiny/vue-base-select'
2+
export { default as TinyButton } from '@opentiny/vue-button'
3+
export { default as TinyInput } from '@opentiny/vue-input'
4+
export { default as TinyModal } from '@opentiny/vue-modal'
5+
export { default as TinyNumeric } from '@opentiny/vue-numeric'
6+
export { default as TinyOption } from '@opentiny/vue-option'
7+
export { default as TinyPopconfirm } from '@opentiny/vue-popconfirm'
8+
export { default as TinyRadio } from '@opentiny/vue-radio'
9+
export { default as TinyRadioGroup } from '@opentiny/vue-radio-group'
10+
export { default as TinySelect } from '@opentiny/vue-select'
11+
export { default as TinySlider } from '@opentiny/vue-slider'
12+
export { default as TinySwitch } from '@opentiny/vue-switch'
13+
export { default as TinyTabItem } from '@opentiny/vue-tab-item'
14+
export { default as TinyTabs } from '@opentiny/vue-tabs'
15+
export { default as TinyTooltip } from '@opentiny/vue-tooltip'

docs/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@
2222
"@opentiny/tiny-robot-svgs": "workspace:^",
2323
"@opentiny/tiny-schema-renderer": "1.0.0-beta.5",
2424
"@opentiny/vue": "^3.20.0",
25+
"@opentiny/vue-base-select": "^3.20.0",
26+
"@opentiny/vue-button": "^3.20.0",
27+
"@opentiny/vue-input": "^3.20.0",
28+
"@opentiny/vue-modal": "^3.20.0",
29+
"@opentiny/vue-notify": "^3.20.0",
30+
"@opentiny/vue-numeric": "^3.20.0",
31+
"@opentiny/vue-option": "^3.20.0",
32+
"@opentiny/vue-popconfirm": "^3.20.0",
33+
"@opentiny/vue-radio": "^3.20.0",
34+
"@opentiny/vue-radio-group": "^3.20.0",
35+
"@opentiny/vue-select": "^3.20.0",
36+
"@opentiny/vue-slider": "^3.20.0",
37+
"@opentiny/vue-switch": "^3.20.0",
38+
"@opentiny/vue-tab-item": "^3.20.0",
39+
"@opentiny/vue-tabs": "^3.20.0",
40+
"@opentiny/vue-tooltip": "^3.20.0",
2541
"@opentiny/vue-theme": "^3.20.0",
2642
"dompurify": "^3.3.1",
2743
"markdown-it": "^14.1.0",

0 commit comments

Comments
 (0)