Skip to content

Commit

Permalink
website: add dark theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 4, 2022
1 parent e62fddb commit afe9de4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: CI
on:
push:
branches:
Expand All @@ -15,9 +15,28 @@ jobs:

- run: mkdir -p build
- run: cp -rp example build
- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output build/index.html
- run: markdown-to-html -s shell-regex.md --output build/shell-regex.html
# - run: npm i markdown-to-html-cli -g
# - run: markdown-to-html --output build/index.html
# - run: markdown-to-html -s shell-regex.md --output build/shell-regex.html

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: build/CONTRIBUTORS.svg
avatarSize: 42

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: README.md
output: build/index.html

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: shell-regex.md
output: build/shell-regex.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

Shell Tutorial
===

[![CI](https://github.com/jaywcjlove/shell-tutorial/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/shell-tutorial/actions/workflows/ci.yml)

最近需要写一个脚本管理服务,花了两天时间学习了一下shell脚本,记录我的学习笔记。

## 目录
Expand Down Expand Up @@ -1401,3 +1402,17 @@ echo "输入的两个数字之和为 $? !"
| $@ | 与$*相同,但是使用时加引号,并在引号中返回每个参数。 |
| $- | 显示Shell使用的当前选项,与set命令功能相同。 |
| $? | 显示最后命令的退出状态。0表示没有错误,其他任何值表明有错误。 |

## Contributors

As always, thanks to our amazing contributors!

<a href="https://github.com/jaywcjlove/shell-tutorial/graphs/contributors">
<img src="https://jaywcjlove.github.io/shell-tutorial/CONTRIBUTORS.svg" />
</a>

Made with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).

## License

Licensed under the MIT License.

0 comments on commit afe9de4

Please sign in to comment.