Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManito committed Jan 21, 2025
1 parent 1c0982e commit ba8be87
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 18 deletions.
17 changes: 13 additions & 4 deletions .gitee/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- 这是隐藏的信息
在提交前请阅读下面的内容:
⚠️如果方便的话请优先在 GitHub 官方仓库提交 Issue!
⚠️如果在使用过程中遇到问题需要帮助,请严格按照模板提交反馈!
⚠️如果是意见与建议类问题则不需要使用此模板,自行清除所有模板内容!
Expand All @@ -20,17 +22,24 @@
- [ ] `Debian`
- [ ] `Ubuntu`
- [ ] `Kali Linux`
- [ ] `Linux Mint`
- [ ] `Deepin`
- [ ] `Zorin OS`
- [ ] `Armbian`
- [ ] `Proxmox`
- [ ] `Red Hat Enterprise Linux`
- [ ] `Fedora`
- [ ] `CentOS / CentOS Stream`
- [ ] `CentOS`
- [ ] `Rocky Linux`
- [ ] `AlmaLinux`
- [ ] `OpenCloudOS`
- [ ] `openEuler`
- [ ] `OpenCloudOS`
- [ ] `openKylin`
- [ ] `Anolis OS`
- [ ] `openSUSE`
- [ ] `Arch Linux`
- [ ] `Alpine Linux`
- [ ] `Gentoo`

## 2. 处理器架构
<!-- 将中括号内的 "空格" 替换为 "x" ,即为选中,例:" - [x] 否 " -->
Expand All @@ -40,13 +49,13 @@
- [ ] `Other`

## 3. 系统详细信息
<!-- 请将命令 "cat /etc/os-release" 的输出结果粘贴在下方 -->
<!-- 请执行命令 "cat /etc/os-release",并将输出结果粘贴在下方 -->
```
```

## 4. 环境信息
<!-- 请将命令 "uname -a" 的输出结果粘贴在下方 -->
<!-- 请执行命令 "uname -a",并将输出结果粘贴在下方 -->
```
```
Expand Down
21 changes: 15 additions & 6 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ body:
- Debian
- Ubuntu
- Kali Linux
- Linux Mint
- Deepin
- Zorin OS
- Armbian
- Proxmox
- Red Hat Enterprise Linux
- Fedora
- CentOS / CentOS Stream
- CentOS
- Rocky Linux
- AlmaLinux
- OpenCloudOS
- openEuler
- OpenCloudOS
- openKylin
- Anolis OS
- openSUSE
- Arch Linux
- Alpine Linux
- Gentoo
validations:
required: true

Expand All @@ -40,29 +47,31 @@ body:
id: release
attributes:
label: 系统详细信息
description: '请将命令 `cat /etc/os-release` 的输出结果粘贴在下方'
description: '请执行命令 `cat /etc/os-release`,并将输出结果粘贴在下方'
render: 'shell'
validations:
required: true

- type: input
id: uname
attributes:
label: 环境信息
description: '请将命令 `uname -a` 的输出结果粘贴在下方'
description: '请执行命令 `uname -a`,并将输出结果粘贴在下方'
validations:
required: true

- type: textarea
id: what-happened
attributes:
label: 描述您的问题
label: 描述您遇到的问题
validations:
required: true

- type: textarea
id: logs
attributes:
label: 详细的执行日志
placeholder: 日志内容或截图
placeholder: 日志内容
render: 'shell'
validations:
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ body:
- type: textarea
id: content
attributes:
label: '请在下方描述您的功能请求或建议'
label: '描述您的功能请求或建议'
validations:
required: false
13 changes: 9 additions & 4 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/cache@v3
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ github.ref }}
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
Expand Down
7 changes: 5 additions & 2 deletions ChangeMirrors.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
## Author: SuperManito
## Modified: 2025-01-04
## Modified: 2025-01-22
## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn
Expand Down Expand Up @@ -185,10 +185,11 @@ File_ArmbianRelease=/etc/armbian-release
File_openEulerRelease=/etc/openEuler-release
File_OpenCloudOSRelease=/etc/opencloudos-release
File_AnolisOSRelease=/etc/anolis-release
File_openKylinVersion=/etc/kylin-version/kylin-system-version.conf
File_OracleLinuxRelease=/etc/oracle-release
File_ArchLinuxRelease=/etc/arch-release
File_AlpineRelease=/etc/alpine-release
File_GentooRelease=/etc/gentoo-release
File_openKylinVersion=/etc/kylin-version/kylin-system-version.conf
File_ProxmoxVersion=/etc/pve/.version

## 定义软件源相关文件或目录
Expand Down Expand Up @@ -639,6 +640,8 @@ function collect_system_info() {
## 判定当前系统派系
if [ -s $File_DebianVersion ]; then
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
elif [ -s $File_OracleLinuxRelease ]; then
output_error "当前操作系统不在本脚本的支持范围内,请前往官网查看支持列表!"
elif [ -s $File_RedHatRelease ]; then
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
elif [ -s $File_openEulerRelease ]; then
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs-material==9.5.49
mkdocs-material==9.5.50
mkdocs-glightbox==0.4.0
mkdocs-exclude-search==0.6.6

0 comments on commit ba8be87

Please sign in to comment.