-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34367e8
commit ae1666e
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- 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 | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"markdown-to-html": { | ||
"document": { | ||
"title": "Shell Tutorial 入门教程(Shell tutorial book)", | ||
"meta": [ | ||
{ "description": "Shell入门教程(Shell tutorial book)" }, | ||
{ "keywords": "Shell,tutorial" } | ||
] | ||
}, | ||
"github-corners": "https://github.com/jaywcjlove/shell-tutorial", | ||
"favicon": "data:image/svg+xml,<svg viewBox=%220 0 1024 1024%22 xmlns=%22http://www.w3.org/2000/svg%22><defs><style> rect {fill: #fff; } @media (prefers-color-scheme: dark) {rect {fill: #333; } } </style></defs><path d=%22M128 128h768a42.667 42.667 0 0 1 42.667 42.667v682.666A42.667 42.667 0 0 1 896 896H128a42.667 42.667 0 0 1-42.667-42.667V170.667A42.667 42.667 0 0 1 128 128z m384 512v85.333h256V640H512zM358.997 512L238.336 632.661l60.33 60.374L479.702 512 298.667 330.965l-60.331 60.374L358.997 512z%22></path></svg>" | ||
} | ||
} |