dufu1991 2 роки тому
батько
коміт
11e09bd88e

+ 4 - 4
doc/guide/changelog.md

@@ -4,8 +4,8 @@
 
 ## 0.4.0
 
-- 新增支持多主题配置,请参考 [主题配置](https://stdf.design/#/guide?nav=theme)、[色彩](https://stdf.design/#/guide?nav=color)、[主题生成器](https://stdf.design/#/guide?nav=generator)。
-- 按照 Tailwind 命名规则统一将灰色由 `gray5` 改为 `gray-500` 写法,请注意升级后更改写法。详见 [色彩](https://stdf.design/#/guide?nav=color)。
+- 新增支持多主题配置,请参考 [主题配置](https://stdf.design/#/guide/theme)、[色彩](https://stdf.design/#/guide/color)、[主题生成器](https://stdf.design/#/guide/generator)。
+- 按照 Tailwind 命名规则统一将灰色由 `gray5` 改为 `gray-500` 写法,请注意升级后更改写法。详见 [色彩](https://stdf.design/#/guide/color)。
 - Avatar 组件新增头像组用法,详见 [Avatar](https://stdf.design/#/components?nav=avatar&tab=4)。
 
 ## 0.3.2
@@ -39,7 +39,7 @@
 - 删除部分组件无用代码。
 - 格式化组件代码,方便后续其他参与成员统一代码风格。
 - 考虑到组件代码本身体积也不大,还是决定直接将组件源码放入 NPM 包中,方便用户直接查看源码,避免了需要去 GitHub 上查看源码的麻烦。
-- 多语言引入路径改回 `stdf/lang/xx_XX`,详见 [国际化](https://stdf.design/#/guide?nav=internation)。
+- 多语言引入路径改回 `stdf/lang/xx_XX`,详见 [国际化](https://stdf.design/#/guide/internation)。
 
 ## 0.2.7
 
@@ -54,7 +54,7 @@
 ## 0.2.4
 
 - 0.2.2 ~ 0.2.4 优化文件结构,精简 NPM 包体积。抵制 `node_modules` 体积膨胀和依赖黑洞,从我做起!
-- 多语言引入路径由 `stdf/lang/xx_XX` 改为 `stdf/dist/lang/xx_XX`,详见 [国际化](https://stdf.design/#/guide?nav=internation)。
+- 多语言引入路径由 `stdf/lang/xx_XX` 改为 `stdf/dist/lang/xx_XX`,详见 [国际化](https://stdf.design/#/guide/internation)。
 
 ## 0.2.1
 

+ 5 - 5
doc/guide/changelog_en.md

@@ -4,9 +4,9 @@
 
 ## 0.4.0
 
-- Added support for multi-theme configuration, please refer to [Theme Configuration](https://stdf.design/#/guide?nav=theme), [Color](https://stdf.design/#/guide?nav=color), [Theme Generator](https://stdf.design/#/guide?nav=generator).
-- In accordance with the Tailwind naming rules, the gray color has been uniformly changed from `gray5` to `gray-500` writing method. Please note that the writing method should be changed after the upgrade. See [Color](https://stdf.design/#/guide?nav=color) for details.
-- The Avatar component adds the usage of the avatar group, please see [Avatar](https://stdf.design/#/components?nav=avatar&tab=4).
+- Added support for multi-theme configuration, please refer to [Theme Configuration](https://stdf.design/#/guide/theme), [Color](https://stdf.design/#/guide/color), [Theme Generator](https://stdf.design/#/guide/generator).
+- In accordance with the Tailwind naming rules, the gray color has been uniformly changed from `gray5` to `gray-500` writing method. Please note that the writing method should be changed after the upgrade. See [Color](https://stdf.design/#/guide/color) for details.
+- The Avatar component adds the usage of the avatar group, please see [Avatar](https://stdf.design/#/components/avatar&tab=4).
 
 ## 0.3.2
 
@@ -39,7 +39,7 @@
 - Removed unnecessary code from some components.
 - Formatted component code to facilitate consistent code style among other contributors in the future.
 - Considering that the size of the component code itself is not large, we decided to directly include the component source code in the NPM package. This makes it easier for users to view the source code directly and avoids the hassle of having to view the source code on GitHub.
-- Reverted the language import path back to `stdf/lang/xx_XX`, as described in the [Internationalization](https://stdf.design/#/guide?nav=internation) section.
+- Reverted the language import path back to `stdf/lang/xx_XX`, as described in the [Internationalization](https://stdf.design/#/guide/internation) section.
 
 ## 0.2.7
 
@@ -54,7 +54,7 @@
 ## 0.2.4
 
 - 0.2.2 ~ 0.2.4 Optimized file structure and reduced NPM package size. Say no to bloated `node_modules` and dependency black holes!
-- Updated the language import path from `stdf/lang/xx_XX` to `stdf/dist/lang/xx_XX`. For more details, please refer to the [Internation](https://stdf.design/#/guide?nav=internation).
+- Updated the language import path from `stdf/lang/xx_XX` to `stdf/dist/lang/xx_XX`. For more details, please refer to the [Internation](https://stdf.design/#/guide/internation).
 
 ## 0.2.1
 

+ 1 - 1
doc/guide/quickStart.md

@@ -62,7 +62,7 @@ npm install -D tailwindcss postcss autoprefixer
 npx tailwindcss init -p
 ```
 
-1. 在 `tailwind.config.js` 文件内添加模板文件。注意 content 内添加`./node_modules/stdf/**/*.svelte`,这是 STDF 的组件位置。其中 theme 的 colors 可以根据自己的需要进行修改。可参考 [STDF 指南 - 色彩](/#/guide?nav=color)。
+1. 在 `tailwind.config.js` 文件内添加模板文件。注意 content 内添加`./node_modules/stdf/**/*.svelte`,这是 STDF 的组件位置。其中 theme 的 colors 可以根据自己的需要进行修改。可参考 [STDF 指南 - 色彩](/#/guide/color)。
 
 注意:Tailwind 配置文件中的 content 即表示所有可能用到 Tailwind 的文件,请不要遗漏。darkMode 请设置为 'class',这是为了配合 STDF 的暗黑模式。
 

+ 1 - 1
doc/guide/quickStart_en.md

@@ -62,7 +62,7 @@ npm install -D tailwindcss postcss autoprefixer
 npx tailwindcss init -p
 ```
 
-1. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/Guide?nav=color).
+1. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/guide/color).
 
 Note: The 'content' in the Tailwind configuration file represents all files that may use Tailwind, please do not omit any files. Please set darkMode to 'class' to match STDF's dark mode.
 

+ 2 - 2
doc/guide/theme.md

@@ -25,13 +25,13 @@ darkMode();
 
 ### 介绍
 
-从 0.4.0 版本开始,STDF 支持多主题切换,主题暂支持切换[颜色系统](/#/guide?nav=color),后续考虑字体、间距、文字大小等配置也可跟随主题切换。本质原理是将一些属性设置为 CSS 变量,通过修改这些变量实现主题切换。
+从 0.4.0 版本开始,STDF 支持多主题切换,主题暂支持切换[颜色系统](/#/guide/color),后续考虑字体、间距、文字大小等配置也可跟随主题切换。本质原理是将一些属性设置为 CSS 变量,通过修改这些变量实现主题切换。
 
 ### 配置
 
 请参考主题生成器生成的主题配置格式配置好主题,主题配置须包含 name 与 color 两个属性,name 为主题名称,color 为此主题搭配的颜色。默认主题配置如下:
 
-> 可到<a href="#/guide?nav=generator" target="_blank">主题生成器</a>快速配置颜色系统并生成配置文件。
+> 可到<a href="#/guide/generator" target="_blank">主题生成器</a>快速配置颜色系统并生成配置文件。
 
 ```javascript
 {

+ 2 - 2
doc/guide/theme_en.md

@@ -25,13 +25,13 @@ darkMode();
 
 ### Introduction
 
-Starting from version 0.4.0, STDF supports switching between multiple themes. The theme currently supports switching [color systems](/#/guide?nav=color), and it is considered that font, spacing, text size and other configurations can also follow the theme switching. The essential principle is to set some attributes as CSS variables, and modify these variables to achieve theme switching.
+Starting from version 0.4.0, STDF supports switching between multiple themes. The theme currently supports switching [color systems](/#/guide/color), and it is considered that font, spacing, text size and other configurations can also follow the theme switching. The essential principle is to set some attributes as CSS variables, and modify these variables to achieve theme switching.
 
 ### Configuration
 
 Please refer to the theme generator to generate the theme configuration format and configure the theme. The theme configuration must include the `name` and `color` attributes. The `name` is the theme name, and the `color` is the color matching of this theme. The default theme configuration is as follows:
 
-> You can go to the <a href="#/guide?nav=generator" target="_blank">Theme Generator</a> to quickly configure the color system and generate the configuration file.
+> You can go to the <a href="#/guide/generator" target="_blank">Theme Generator</a> to quickly configure the color system and generate the configuration file.
 
 ```javascript
 {