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 c7b7dd4 commit 4f9a02e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@ jobs:

- run: mkdir -p build build/example
- run: cp -rp example build/example
- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output build/index.html
# - run: npm i markdown-to-html-cli -g
# - run: markdown-to-html --output build/index.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: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Go语言快速入门
===
<!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;-->

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

通过简单的例子,来快速入门Go语言基础编程、语法等各种语言特性,主要面向新手级别的学习者。下面所有例子均来源于网络,看文需谨慎后果自负。

安装之前需要了解及新建几个必要的文件目录:
Expand Down Expand Up @@ -2236,3 +2238,19 @@ func main() {
- [Go如何改善性能](https://www.youtube.com/watch?v=DJ4d_PZ6Gns)
</details>
## 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 4f9a02e

Please sign in to comment.