Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ import {
import DefaultTheme from 'vitepress/theme'
import AgentComponentDemo from '../../src/components/AgentComponentDemo.vue'
import AgentComponentsDemo from '../../src/components/AgentComponentsDemo.vue'
import ComponentCatalog from '../../src/components/ComponentCatalog.vue'
import DateFieldDemo from '../../src/components/DateFieldDemo.vue'
import FormComponentDemo from '../../src/components/FormComponentDemo.vue'
import InteractivePreview from '../../src/components/InteractivePreview.vue'
import ListDemo from '../../src/components/ListDemo.vue'
import MapDemo from '../../src/components/MapDemo.vue'
import MiniProgramBlocksGallery from '../../src/components/MiniProgramBlocksGallery.vue'
import PlatformTabsDemo from '../../src/components/PlatformTabsDemo.vue'
import PrimitiveCatalog from '../../src/components/PrimitiveCatalog.vue'
import PrimitiveExample from '../../src/components/PrimitiveExample.vue'
import PrimitiveInteractionDemo from '../../src/components/PrimitiveInteractionDemo.vue'
import PullRefreshDemo from '../../src/components/PullRefreshDemo.vue'
Expand All @@ -60,11 +62,13 @@ const theme: Theme = {
app.component('FormComponentDemo', FormComponentDemo)
app.component('InteractivePreview', InteractivePreview)
app.component('ListDemo', ListDemo)
app.component('ComponentCatalog', ComponentCatalog)
app.component('MiniProgramBlocksGallery', MiniProgramBlocksGallery)
app.component('MapDemo', MapDemo)
app.component('RobotChatDemo', RobotChatDemo)
app.component('PlatformTabsDemo', PlatformTabsDemo)
app.component('PullRefreshDemo', PullRefreshDemo)
app.component('PrimitiveCatalog', PrimitiveCatalog)
app.component('PrimitiveExample', PrimitiveExample)
app.component('SignatureDemo', SignatureDemo)
app.component('WatermarkDemo', WatermarkDemo)
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ outline: false
# 组件

选择组件查看双端演示、用法和 API。

<ComponentCatalog />
10 changes: 5 additions & 5 deletions apps/docs/e2e/docs-smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('docs smoke baseline', () => {
}
})

it('keeps one concise headless install surface and linked detail pages', () => {
it('keeps one headless install surface and restores the overview catalogs', () => {
const config = readFileSync(resolve(docsRoot, '.vitepress/config.ts'), 'utf8')
const zhOverview = readFileSync(resolve(docsRoot, 'primitives/index.md'), 'utf8')
const enOverview = readFileSync(resolve(docsRoot, 'en/primitives/index.md'), 'utf8')
Expand All @@ -32,10 +32,10 @@ describe('docs smoke baseline', () => {

expect(zhOverview).toContain('pnpm add @varo-ui/headless @varo-ui/h5')
expect(enOverview).toContain('pnpm add @varo-ui/headless @varo-ui/weapp')
expect(zhOverview).not.toContain('<PrimitiveCatalog')
expect(enOverview).not.toContain('<PrimitiveCatalog')
expect(zhComponents).not.toContain('<ComponentCatalog')
expect(enComponents).not.toContain('<ComponentCatalog')
expect(zhOverview).toContain('<PrimitiveCatalog locale="zh" />')
expect(enOverview).toContain('<PrimitiveCatalog locale="en" />')
expect(zhComponents).toContain('<ComponentCatalog />')
expect(enComponents).toContain('<ComponentCatalog locale="en" />')
expect(config).toContain('/blocks/build-your-own')
expect(config).toContain('/en/blocks/build-your-own')
expect(existsSync(resolve(docsRoot, 'blocks/build-your-own.md'))).toBe(true)
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/en/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ outline: false
# Components

Choose a component to view its demos, usage, and API.

<ComponentCatalog locale="en" />
4 changes: 4 additions & 0 deletions apps/docs/en/primitives/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ See [Wevu Registry](/en/guide/shadcn-mode) for global styles and Tailwind config
| `@varo-ui/headless` | Platform-neutral state and events |
| `@varo-ui/h5/primitives` | DOM, keyboard, and ARIA |
| `@varo-ui/weapp/primitives` | WXML, touch, and native events |

## Catalog

<PrimitiveCatalog locale="en" />
4 changes: 4 additions & 0 deletions apps/docs/primitives/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ pnpm add @varo-ui/headless @varo-ui/weapp
| `@varo-ui/headless` | 平台中立状态与事件 |
| `@varo-ui/h5/primitives` | DOM、键盘与 ARIA |
| `@varo-ui/weapp/primitives` | WXML、触摸与原生事件 |

## 目录

<PrimitiveCatalog locale="zh" />
Loading