Skip to content

Commit 60b7051

Browse files
committed
setup mdbook
1 parent ae011ab commit 60b7051

31 files changed

+84
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy mdBook site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["deploy"]
6+
pull_request:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup mdBook
18+
uses: peaceiris/actions-mdbook@v1
19+
with:
20+
mdbook-version: '0.5.0-beta.1' # 建议指定一个稳定版本
21+
22+
- name: Build with mdBook
23+
run: |
24+
mdbook clean
25+
mdbook build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./book

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
book
2+
*.DS_Store

book.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[book]
2+
title = "Celer Intent Protocol"
3+
authors = ["jie"]
4+
language = "en"
5+
6+
[output.html]
7+
theme = "theme"
8+
additional-css = ["theme/custom.css"]
9+
site-url = "/"

favicon-dark.png

6.37 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)