From 0396471168fab3e7fd42f9eab223c238da371c65 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Fri, 8 Jan 2021 11:09:23 +0800 Subject: [PATCH] docs: perf website (#32) --- .umirc.ts | 2 +- README.en-US.md | 21 ++++++------------ README.md | 21 ++++++------------ docs/guide/note.en-US.md | 15 +++++++++++++ docs/guide/note.md | 15 +++++++++++++ docs/index.en-US.md | 2 +- docs/index.md | 2 +- script/update-users.js | 3 +-- src/less/dumi.less | 46 +++++++++++++++++++++++++++++++++++++++- src/less/markdown.less | 5 +++++ 10 files changed, 98 insertions(+), 34 deletions(-) diff --git a/.umirc.ts b/.umirc.ts index ee25420..712fcd5 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -21,7 +21,7 @@ export default defineConfig({ ['en-US', 'English'], ], theme: { - '@c-primary': '#42a5f5', + '@c-primary': '#1890ff', }, navs: { 'zh-CN': [ diff --git a/README.en-US.md b/README.en-US.md index 48fed8a..13d2159 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -1004,45 +1004,38 @@ At the same time, if you have any questions during use, you can also ask and inq -
- ant-design +
ant-design
-
- ant-design-vue +
ant-design-vue
-
- dumi +
dumi
-
- material-ui +
material-ui
-
- react-music-player +
react-music-player
-
- umi +
umi
-
- vue-request +
vue-request
diff --git a/README.md b/README.md index 3d0c26c..d522881 100644 --- a/README.md +++ b/README.md @@ -999,45 +999,38 @@ x2 + y2 -
- ant-design +
ant-design
-
- ant-design-vue +
ant-design-vue
-
- dumi +
dumi
-
- material-ui +
material-ui
-
- react-music-player +
react-music-player
-
- umi +
umi
-
- vue-request +
vue-request
diff --git a/docs/guide/note.en-US.md b/docs/guide/note.en-US.md index f4d4b09..6fa1942 100644 --- a/docs/guide/note.en-US.md +++ b/docs/guide/note.en-US.md @@ -17,6 +17,21 @@ if: contains(github.event.issue.body, 'ie') == false [More](https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#functions). +## Pass value and output in `yml` + +``` +with: + actions: 'month-statistics' + token: ${{ secrets.GITHUB_TOKEN }} + count-lables: 'true' +``` + +- `count-lables`: Regardless of setting `true` or `'ture'`, all received in the program is in string format + +At the same time, the output is also in string format + +- `check-result`: The judgment condition is `if: steps.xxid.outputs.check-result =='true'` + ## `GitHub Actions bot` trigger When an action is set, such as adding a label `x1` to an issue, Actions will automatically add a label `x2` to the issue. diff --git a/docs/guide/note.md b/docs/guide/note.md index 929aaed..00ca4b4 100644 --- a/docs/guide/note.md +++ b/docs/guide/note.md @@ -18,6 +18,21 @@ if: contains(github.event.issue.body, 'ie') == false 更多[查看](https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#functions)。 +## `yml` 中传值和输出 + +``` +with: + actions: 'month-statistics' + token: ${{ secrets.GITHUB_TOKEN }} + count-lables: 'true' +``` + +- `count-lables`:不管设置 `true` 还是 `'ture'`,在程序里接收到的都是字符串格式 + +同时输出的也是字符串格式 + +- `check-result`:判断条件为 `if: steps.xxid.outputs.check-result == 'true'` + ## `GitHub Actions bot` 触发 当设置了一个 Actions,如为给一个 issue 新增 label `x1` 时,Actions 自动为该 issue 增加 `x2` label。 diff --git a/docs/index.en-US.md b/docs/index.en-US.md index 6bbda0d..0041136 100644 --- a/docs/index.en-US.md +++ b/docs/index.en-US.md @@ -51,7 +51,7 @@ jobs: ## 💖 Who is using? - + ## ⚡ Feedback diff --git a/docs/index.md b/docs/index.md index 6a87134..fe96a57 100644 --- a/docs/index.md +++ b/docs/index.md @@ -51,7 +51,7 @@ jobs: ## 💖 谁在使用? - + ## ⚡ 反馈 diff --git a/script/update-users.js b/script/update-users.js index 05ef38c..7ea7925 100644 --- a/script/update-users.js +++ b/script/update-users.js @@ -64,8 +64,7 @@ function getImg (o) { return ` -
- ${getName(o)} +
${getName(o)}
` } return `` diff --git a/src/less/dumi.less b/src/less/dumi.less index 5eae67a..b2c5d9c 100644 --- a/src/less/dumi.less +++ b/src/less/dumi.less @@ -22,7 +22,6 @@ margin-right: 0 !important; background: linear-gradient(45deg,#72a2de 30%,#5db8c7 90%) !important; border: none !important; - color: #000 !important; border-radius: 8px !important; text-align: center; @@ -54,3 +53,48 @@ } } } + +.__dumi-default-layout-features + .__dumi-default-layout-content { + td { + transition: all 0.3s; + &:hover { + box-shadow: 0 1px 2px -2px rgba(0,0,0,.16), 0 3px 6px 0 rgba(0,0,0,.12), 0 5px 12px 4px rgba(0,0,0,.09); + } + } +} + +.__dumi-default-locale-select { + background: linear-gradient(45deg,#72a2de 30%,#5db8c7 90%) !important; + border-radius: 2px !important; + border: none !important; + a { + color: #fff !important; + letter-spacing: 0.6px; + } + &::before { + position: absolute; + top: 0; + right: 0; + bottom: auto; + left: auto; + display: inline-block; + width: 0; + height: 0; + background: linear-gradient( + 225deg, + white 45%, + #aaa 50%, + #ccc 56%, + white 80% + ); + box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.4); + opacity: 1; + transition-duration: 0.3s; + transition-property: width, height; + content: ''; + } + &:hover::before { + width: 14px; + height: 14px; + } +} \ No newline at end of file diff --git a/src/less/markdown.less b/src/less/markdown.less index 34d6ad3..2dee737 100644 --- a/src/less/markdown.less +++ b/src/less/markdown.less @@ -1,5 +1,9 @@ .markdown table { width: auto !important; + + a:hover { + text-decoration: none; + } } .markdown table td:first-child { @@ -9,6 +13,7 @@ code { padding: 1px 5px !important; border-radius: 4px; + color: #ff7875 !important; background: rgba(0, 0, 0, 0.06) !important; box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0,0,0,0.1);