-
Notifications
You must be signed in to change notification settings - Fork 5
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
0 parents
commit 230f760
Showing
271 changed files
with
379,518 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,37 @@ | ||
name: GitBook-Legacy to GitHub Pages | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
env: | ||
TZ: "Asia/Shanghai" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
- name: Install dependency | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y python3 | ||
- name: Trigger personal build script | ||
run: | | ||
cat HEADER|tee README.md | ||
python3 toc.py | ||
mkdir .public | ||
cp -r * .public | ||
mv .public public | ||
touch public/.nojekyll | ||
- name: Deploy to GitHub Pages | ||
if: success() | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: public | ||
fqdn: ${{secrets.CUSTOM_DOMAIN}} | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,49 @@ | ||
name: GitBook-Legacy to GitHub Pages | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
env: | ||
TZ: "Asia/Shanghai" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
|
||
- name: Install dependency | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y python3 calibre xvfb | ||
npm install @gitbook-ng/gitbook -g | ||
npm install gitbook-plugin-katex-pro | ||
#npm install gitbook-plugin-mathjax-single-dollar | ||
npm install svgexport -g | ||
npx gitbook install | ||
- name: Trigger personal build script | ||
run: | | ||
cat HEADER|tee README.md | ||
python3 toc.py | ||
if [ ! -d books ];then mkdir books;fi | ||
npx gitbook build | ||
npx gitbook epub . books/CharlesNotes.epub | ||
npx gitbook mobi . books/CharlesNotes.mobi | ||
cp -r books _book | ||
rm _book/.gitignore | ||
- name: Deploy to GitHub Pages | ||
if: success() | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: _book | ||
fqdn: ${{secrets.CUSTOM_DOMAIN}} | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.