Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Tencent/tdesign into chore/adjust-a…
Browse files Browse the repository at this point in the history
…nimation-to-css
  • Loading branch information
uyarn committed Apr 7, 2024
2 parents 385683c + f973a5f commit f54306a
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/pr-spelling.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check spelling
uses: crate-ci/typos@master
with:
config: .github/workflows/typos-config.toml
20 changes: 20 additions & 0 deletions .github/workflows/preview-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 文件名建议统一为 preview-publish
# 应用 preview.yml 的 demo
name: PREVIEW_PUBLISH

on:
workflow_run:
workflows: ['MAIN_PULL_REQUEST']
types:
- completed

jobs:
build-site:
runs-on: ubuntu-latest
steps:
- name: build-site
run: npm run site:preview
call-preview:
uses: Tencent/tdesign/.github/workflows/preview.yml@main
secrets:
TDESIGN_SURGE_TOKEN: ${{ secrets.TDESIGN_SURGE_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/typos-config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[default.extend-words]
vertx = "vertx"
hd = "hd"

[files]
extend-exclude = ["**/lib/**","**/spline/**","contributor.html","README.md","README_zh-CN.md","docsearch.min.js","*.svg"]
extend-exclude = ["**/lib/**","**/spline/**","contributor.html","README.md","README_zh-CN.md","docsearch.min.js","*.svg","**/public/**"]
2 changes: 1 addition & 1 deletion docs/design/offices-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ When the batch operation button is the primary or high-frequency operation, rega

Core process: Select the operated content - Perform the Operation - Display the Operation result

Components: [Table](/vue/components/table)[Button](/vue/components/button)[Checkbox](/vue/components/checkbox)[Dropdown](/vue/components/dropdown)[Meesage](/vue/components/message)
Components: [Table](/vue/components/table)[Button](/vue/components/button)[Checkbox](/vue/components/checkbox)[Dropdown](/vue/components/dropdown)[Message](/vue/components/message)

<img src="https://oteam-tdesign-1258344706.cos.ap-guangzhou.myqcloud.com/site/design/20211216192234.png" />

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build:components": "pnpm run --filter 'tdesign-site-components' build && pnpm run --filter 'tdesign-site-components' postbuild",
"site": "npm run build:components && cd site && npm run build",
"site:intranet": "npm run build:components && cd site && npm run site:intranet",
"site:preview": "npm run build:components && cd site && npm run site:preview",
"prepare": "husky install"
},
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"preview": "vite preview",
"site": "run-s build",
"site:intranet": "vite build --mode intranet",
"site:preview": "vite build --mode preview",
"lint:fix": "eslint --ext .vue,.js,.ts,.tsx ./src --fix"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion site/src/docs/design/offices-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ When the batch operation button is the primary or high-frequency operation, rega

Core process: Select the operated content - Perform the Operation - Display the Operation result

Components: [Table](/vue/components/table)[Button](/vue/components/button)[Checkbox](/vue/components/checkbox)[Dropdown](/vue/components/dropdown)[Meesage](/vue/components/message)
Components: [Table](/vue/components/table)[Button](/vue/components/button)[Checkbox](/vue/components/checkbox)[Dropdown](/vue/components/dropdown)[Message](/vue/components/message)

<img src="https://oteam-tdesign-1258344706.cos.ap-guangzhou.myqcloud.com/site/design/20211216192234.png" />

Expand Down
3 changes: 2 additions & 1 deletion site/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import tdocPlugin from './plugin-tdoc/index.js';

const publicPathMap = {
intranet: '/',
preview: '/',
production: 'https://static.tdesign.tencent.com/',
};

Expand All @@ -23,7 +24,7 @@ export default ({ mode }) => {
},
},
build: {
outDir: '_site',
outDir: mode === 'preview' ? '../_site' : '_site',
rollupOptions: {
input: {
index: path.resolve(__dirname, 'index.html'),
Expand Down

0 comments on commit f54306a

Please sign in to comment.