chore: upgrade dumi@2.x (#148)

* chore(deps): upgrade dumi@2.x

* chore: update

* chore: update config file

* docs: update

* docs: update docs

* docs: update

* chore: update

* chore: update

* chore: remore debug link

* chore: update global.less
This commit is contained in:
Wuxh
2023-03-06 13:12:09 +08:00
committed by GitHub
parent 596892f346
commit ecbe084012
25 changed files with 5547 additions and 1852 deletions

View File

@@ -16,7 +16,7 @@ jobs:
- name: build - name: build
run: | run: |
yarn yarn
yarn docs-dev:build yarn docs:preview
- run: | - run: |
zip -r dist.zip docs-dist zip -r dist.zip docs-dist

5
.gitignore vendored
View File

@@ -47,6 +47,11 @@ package-lock.json
.umi-test .umi-test
.env.local .env.local
# dumi
web/.dumi/tmp
web/.dumi/tmp-test
web/.dumi/tmp-production
# cache # cache
.sass-cache/ .sass-cache/

View File

@@ -79,7 +79,7 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
</td> </td>
<td align="center" width="180"> <td align="center" width="180">
<a href="https://github.com/umijs/dumi"> <a href="https://github.com/umijs/dumi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/> <img src="https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png" width="46"/>
</a> </a>
</td> </td>
<td align="center" width="180"> <td align="center" width="180">

View File

@@ -79,7 +79,7 @@
</td> </td>
<td align="center" width="180"> <td align="center" width="180">
<a href="https://github.com/umijs/dumi"> <a href="https://github.com/umijs/dumi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/> <img src="https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png" width="46"/>
</a> </a>
</td> </td>
<td align="center" width="180"> <td align="center" width="180">

View File

@@ -14,7 +14,8 @@
"docs:build": "APP_ROOT=web dumi build", "docs:build": "APP_ROOT=web dumi build",
"docs-dev:build": "APP_ROOT=web UMI_ENV=dev dumi build", "docs-dev:build": "APP_ROOT=web UMI_ENV=dev dumi build",
"docs:deploy": "gh-pages -d docs-dist", "docs:deploy": "gh-pages -d docs-dist",
"deploy": "npm run docs:build && npm run docs:deploy", "docs:preview": "PREVIEW=true npm run docs:build",
"gh-pages": "npm run docs:build && npm run docs:deploy",
"format": "prettier --write **/*.ts **/*/*.ts", "format": "prettier --write **/*.ts **/*/*.ts",
"format-check": "prettier --check **/*.ts **/*/*.ts", "format-check": "prettier --check **/*.ts **/*/*.ts",
"lint": "eslint src/*.ts src/*/*.ts", "lint": "eslint src/*.ts src/*/*.ts",
@@ -47,7 +48,7 @@
"@vercel/ncc": "0.34.0", "@vercel/ncc": "0.34.0",
"chalk": "^4.1.2", "chalk": "^4.1.2",
"common-tags": "^1.8.2", "common-tags": "^1.8.2",
"dumi": "^1.1.26", "dumi": "^2.1.14",
"eslint": "^7.18.0", "eslint": "^7.18.0",
"eslint-plugin-github": "^4.1.1", "eslint-plugin-github": "^4.1.1",
"eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-simple-import-sort": "^7.0.0",

File diff suppressed because one or more lines are too long

44
web/.dumirc.ts Normal file
View File

@@ -0,0 +1,44 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';
const name = 'issues-helper';
const isProdSite =
// 不是预览模式 同时是生产环境
process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
const logo =
'https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ';
export default defineConfig({
title: 'Issues Helper',
outputPath: '../docs-dist',
base: isProdSite ? `/${name}/` : '/',
publicPath: isProdSite ? `/${name}/` : '/',
locales: [
{ id: 'en-US', name: 'English', },
{ id: 'zh-CN', name: '中文' },
],
favicons: [logo],
themeConfig: {
logo,
nav: {
'zh-CN': [
{ title: '指 南', link: '/zh-CN/guide' },
{ title: '基 础', link: '/zh-CN/base' },
{ title: '进 阶', link: '/zh-CN/advanced' },
{ title: '更新日志', link: '/zh-CN/changelog' }
],
'en-US': [
{ title: 'Guide', link: '/guide' },
{ title: 'Base', link: '/base' },
{ title: 'Advanced', link: '/advanced' },
{ title: 'Changelog', link: '/changelog' },
],
},
socialLinks: {
github: 'https://github.com/actions-cool/issues-helper'
},
footer: 'Open-source MIT Licensed | Copyright © 2020-present<br />Powered by xrkffgg'
},
});

View File

@@ -1,4 +0,0 @@
export default {
base: '/',
publicPath: '/',
};

View File

@@ -1,84 +0,0 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';
const name = 'issues-helper';
const logo =
'https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ';
export default defineConfig({
title: 'Issues Helper',
mode: 'site',
favicon: logo,
logo,
exportStatic: {},
ssr: {},
outputPath: '../docs-dist',
resolve: {
includes: ['./docs'],
},
hash: true,
base: `/${name}/`,
publicPath: `/${name}/`,
locales: [
['en-US', 'English'],
['zh-CN', '中文'],
],
theme: {
'@c-primary': '#1890ff',
},
navs: {
'en-US': [
{ title: 'Guide', path: '/guide' },
{ title: 'Base', path: '/base' },
{ title: 'Advanced', path: '/advanced' },
{ title: 'Changelog', path: '/changelog' },
{ title: 'GitHub', path: 'https://github.com/actions-cool/issues-helper' },
],
'zh-CN': [
{ title: '指 南', path: '/zh-CN/guide' },
{ title: '基 础', path: '/zh-CN/base' },
{ title: '进 阶', path: '/zh-CN/advanced' },
{ title: '更新日志', path: '/zh-CN/changelog' },
{ title: 'GitHub', path: 'https://github.com/actions-cool/issues-helper' },
],
},
menus: {
'/guide': [
{
title: '🍭 Guide',
children: ['/guide/index', '/guide/start'],
},
{
title: '🎁 Reference',
path: '/guide/ref',
},
{
title: '🎗 Note',
path: '/guide/note',
},
{
title: '💬 FAQ',
path: '/guide/faq',
},
],
'/zh-CN/guide': [
{
title: '🍭 介 绍',
children: ['/guide/index', '/guide/start'],
},
{
title: '🎁 参 考',
path: '/guide/ref',
},
{
title: '🎗 记 录',
path: '/guide/note',
},
{
title: '💬 FAQ',
path: '/guide/faq',
},
],
},
});

View File

@@ -1,2 +0,0 @@
// For dumi style
import './web.less';

View File

@@ -345,9 +345,9 @@ jobs:
- Ordinary users have `read` permission - Ordinary users have `read` permission
- When set `write`, `admin` and `write` meet the conditions - When set `write`, `admin` and `write` meet the conditions
<Alert> :::info{title=Note}
Note: Duplicate created with the concise command does not display the content of the red box in the figure below. But in fact this has no effect. Duplicate created with the concise command does not display the content of the red box in the figure below. But in fact this has no effect.
</Alert> :::
![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*PN2tS7PjDQ4AAAAAAAAAAAAAARQnAQ) ![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*PN2tS7PjDQ4AAAAAAAAAAAAAARQnAQ)

View File

@@ -342,9 +342,9 @@ jobs:
- 普通用户为 `read` 权限 - 普通用户为 `read` 权限
- 当设置 `write` 后,`admin``write` 满足条件 - 当设置 `write` 后,`admin``write` 满足条件
<Alert> :::info{title=注意}
注意:使用简洁命令创建的 Duplicate 不显示下图红框内容。但其实这个没有任何影响的。 使用简洁命令创建的 Duplicate 不显示下图红框内容。但其实这个没有任何影响的。
</Alert> :::
![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*PN2tS7PjDQ4AAAAAAAAAAAAAARQnAQ) ![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*PN2tS7PjDQ4AAAAAAAAAAAAAARQnAQ)

View File

@@ -1,5 +1,5 @@
--- ---
toc: menu title: 💬 FAQ
--- ---
## Is there a charge for this feature? ## Is there a charge for this feature?

View File

@@ -1,5 +1,5 @@
--- ---
toc: menu title: 💬 FAQ
--- ---
## 该功能是否收费? ## 该功能是否收费?

View File

@@ -1,4 +1,6 @@
## Introduction ---
title: 🍭 Guide
---
The Issues Helper is a GitHub Action that easily helps you automatically manage issues. The Issues Helper is a GitHub Action that easily helps you automatically manage issues.

View File

@@ -1,4 +1,6 @@
## 介 绍 ---
title: 🍭 介 绍
---
Issues 助手是一个轻松帮你自动管理 issues 的 GitHub Action。 Issues 助手是一个轻松帮你自动管理 issues 的 GitHub Action。

View File

@@ -1,10 +1,10 @@
--- ---
toc: menu title: 🎗 Note
--- ---
<Alert type="success"> :::success{title="😊"}
Here are some things I summarized in my use, I hope it can help you. Here are some things I summarized in my use, I hope it can help you.
</Alert> :::
## Include judgment in `yml` ## Include judgment in `yml`

View File

@@ -1,10 +1,10 @@
--- ---
toc: menu title: 🎗 记 录
--- ---
<Alert type="success"> :::success{title="😊"}
这里记录自己在使用中总结的一些东西,希望可以帮助到你。 这里记录自己在使用中总结的一些东西,希望可以帮助到你。
</Alert> :::
## `yml` 中包含判断 ## `yml` 中包含判断

View File

@@ -1,5 +1,5 @@
--- ---
toc: menu title: 🎁 Reference
--- ---
## 📍 `token` ## 📍 `token`

View File

@@ -1,5 +1,5 @@
--- ---
toc: menu title: 🎁 参 考
--- ---
## 📍 `token` 说明 ## 📍 `token` 说明

View File

@@ -1,4 +1,6 @@
## Quick start ---
title: ⚡️ Quick start
---
### 1. New Action ### 1. New Action
@@ -10,9 +12,9 @@ Click `New workflow` to add.
![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*cClPRIW6HKcAAAAAAAAAAAAAARQnAQ) ![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*cClPRIW6HKcAAAAAAAAAAAAAARQnAQ)
<Alert type="success"> :::success{title="Tips"}
You can click <Badge>set up a workflow yourself</Badge> to add a custom action, or you can apply a new action based on a template. <a target="_blank" href="https://github.com/actions-cool/.github">Templates</a>. You can click <Badge>set up a workflow yourself</Badge> to add a custom action, or you can apply a new action based on a template. <a target="_blank" href="https://github.com/actions-cool/.github">Templates</a>.
</Alert> :::
### 2. Edit Action ### 2. Edit Action

View File

@@ -1,4 +1,6 @@
## 快速开始 ---
title: ⚡️ 快速开始
---
### 1. 新建 Action ### 1. 新建 Action
@@ -10,9 +12,9 @@
![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*cClPRIW6HKcAAAAAAAAAAAAAARQnAQ) ![](https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*cClPRIW6HKcAAAAAAAAAAAAAARQnAQ)
<Alert type="success"> :::success{title="提示"}
你可以点击 <Badge>set up a workflow yourself</Badge> 新增一个自定义 action也可以根据模板来套用新增一个 action。<a target="_blank" href="https://github.com/actions-cool/.github">模板使用</a> 你可以点击 <Badge>set up a workflow yourself</Badge> 新增一个自定义 action也可以根据模板来套用新增一个 action。<a target="_blank" href="https://github.com/actions-cool/.github">模板使用</a>
</Alert> :::
### 2. 编写 Action ### 2. 编写 Action

View File

@@ -3,22 +3,20 @@ title: Issues Helper
order: 1 order: 1
hero: hero:
title: Issues Helper title: Issues Helper
image: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ description: 🤖 A GitHub Action that easily helps you automatically manage issues
desc: 🤖 A GitHub Action that easily helps you automatically manage issues
actions: actions:
- text: Quick start - text: Quick start
link: /guide/start link: /guide/start
features: features:
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*Km0BQJs7vWAAAAAAAAAAAAAAARQnAQ - emoji: 🎁
title: Completely free title: Completely free
desc: Use the Actions service provided by GitHub description: Use the Actions service provided by GitHub
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*ELKWSIMizH0AAAAAAAAAAAAAARQnAQ - emoji: 👌
title: Easy to use title: Easy to use
desc: Detailed tutorials and rich templates description: Detailed tutorials and rich templates
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*j-SURo-DkyIAAAAAAAAAAAAAARQnAQ - emoji: 🌍
title: Easy hosting title: Easy hosting
desc: As long as GitHub is not down, it will not be affected description: As long as GitHub is not down, it will not be affected
footer: Open-source MIT Licensed | Copyright © 2020-present<br />Powered by xrkffgg
--- ---
## 🍭 Get started quickly ## 🍭 Get started quickly

View File

@@ -3,22 +3,20 @@ title: Issues 助手
order: 1 order: 1
hero: hero:
title: Issues 助手 title: Issues 助手
image: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ description: 🤖 一个轻松帮你自动管理 issues 的 GitHub Action
desc: 🤖 一个轻松帮你自动管理 issues 的 GitHub Action
actions: actions:
- text: 快速开始 - text: 快速开始
link: /zh-CN/guide/start link: /zh-CN/guide/start
features: features:
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*Km0BQJs7vWAAAAAAAAAAAAAAARQnAQ - emoji: 🎁
title: 完全免费 title: 完全免费
desc: 使用 GitHub 自带提供的 Actions 服务 description: 使用 GitHub 自带提供的 Actions 服务
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*ELKWSIMizH0AAAAAAAAAAAAAARQnAQ - emoji: 👌
title: 简单易用 title: 简单易用
desc: 教程详细,模版丰富 description: 教程详细,模版丰富
- icon: https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*j-SURo-DkyIAAAAAAAAAAAAAARQnAQ - emoji: 🌍
title: 轻松托管 title: 轻松托管
desc: 只要 GitHub 不宕机,它就不受影响 description: 只要 GitHub 不宕机,它就不受影响
footer: Open-source MIT Licensed | Copyright © 2020-present<br />Powered by xrkffgg
--- ---
## 🍭 快速上手 ## 🍭 快速上手

6990
yarn.lock

File diff suppressed because it is too large Load Diff