u
This commit is contained in:
1 parent
0be0b0767a
commit
5f28a10d89
852 files changed
+8962
-111755
No files matched your search
@@ -21,7 +21,7 @@ type G3SidebarItem = DefaultTheme.SidebarItem & {
|
||||
*
|
||||
* 几个刻意的选择:
|
||||
* - srcDir: 'content' —— Markdown 全部在 docs/content 下,站点根即 content/
|
||||
* - alias 直连 packages 源码 —— 组件库 / framework 尚未构建也能开发,改组件即时热更
|
||||
* - alias 直连 packages 源码 —— 组件库尚未构建也能开发,改组件即时热更
|
||||
* (tokens 例外:它是 SCSS 编译产物,alias 指向 dist/index.css,需先 build tokens)
|
||||
*
|
||||
* 部署到子路径时用环境变量 DOCS_BASE_URL=/docs/,不在配置里写死。
|
||||
@@ -64,13 +64,6 @@ export default defineConfig({
|
||||
find: /^@g3soft\/ui$/,
|
||||
replacement: fileURLToPath(new URL('../../packages/ui/src/index.ts', import.meta.url)),
|
||||
},
|
||||
{
|
||||
// framework 也直连源码:改布局 / 偏好即时热更
|
||||
find: /^@g3soft\/framework$/,
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/framework/src/index.ts', import.meta.url),
|
||||
),
|
||||
},
|
||||
{
|
||||
// tokens 是 SCSS 编译产物:仅裸导入指向 dist/index.css(由 @g3soft/tokens 的 build 生成)
|
||||
find: /^@g3soft\/tokens$/,
|
||||
@@ -115,7 +108,10 @@ export default defineConfig({
|
||||
text: '使用',
|
||||
icon: 'boxes',
|
||||
collapsed: false,
|
||||
items: [{ text: '快速上手', link: '/ui/usage/getting-started' }],
|
||||
items: [
|
||||
{ text: '快速上手', link: '/ui/usage/getting-started' },
|
||||
{ text: '双向布局(RTL)', link: '/ui/usage/rtl' },
|
||||
],
|
||||
},
|
||||
{
|
||||
text: '通用组件',
|
||||
@@ -179,14 +175,6 @@ export default defineConfig({
|
||||
],
|
||||
},
|
||||
] satisfies G3SidebarItem[],
|
||||
'/framework/': [
|
||||
{
|
||||
text: '布局',
|
||||
icon: 'layout-dashboard',
|
||||
collapsed: false,
|
||||
items: [{ text: 'Layout 布局框架', link: '/framework/layout' }],
|
||||
},
|
||||
] satisfies G3SidebarItem[],
|
||||
'/api/': [
|
||||
{
|
||||
text: '接口文档',
|
||||
|
||||
Reference in new issue
Block a user