Skip to content

Commit a87136a

Browse files
committed
setup mdbook
1 parent 0ebe164 commit a87136a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book/

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
agentpay-docs.celer.network

book.toml

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

.gitbook/assets/Screenshot 2025-10-29 at 10.57.23 AM.png renamed to src/.gitbook/assets/Screenshot 2025-10-29 at 10.57.23 AM.png

File renamed without changes.

.gitbook/assets/Screenshot 2025-10-29 at 11.26.58 PM (1).png renamed to src/.gitbook/assets/Screenshot 2025-10-29 at 11.26.58 PM (1).png

File renamed without changes.

.gitbook/assets/Screenshot 2025-10-29 at 11.26.58 PM.png renamed to src/.gitbook/assets/Screenshot 2025-10-29 at 11.26.58 PM.png

File renamed without changes.

0 commit comments

Comments
 (0)