Skip to content

Commit 8890b17

Browse files
committed
feat: switch from docsify to mdBook
1 parent 4f2986c commit 8890b17

File tree

12 files changed

+50
-38
lines changed

12 files changed

+50
-38
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Install latest mdbook
19+
run: |
20+
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
21+
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
22+
mkdir mdbook
23+
curl -sSL $url | tar -xz --directory=./mdbook
24+
echo `pwd`/mdbook >> $GITHUB_PATH
25+
- name: Build Book
26+
run: mdbook build
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v4
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: 'book'
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book/

book.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[book]
2+
title = "OpenAction API"
3+
authors = ["nekename"]
4+
language = "en"

index.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

sidebar.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

2-manifest.md renamed to src/2-manifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Your plugin should contain a `manifest.json` file that supplies key information
7474
}
7575
],
7676
// The default path to your plugin executable file, relative to your plugin root.
77-
// HTML5 is supported if this value ends with the ".html" suffix, and Node.js if this value ends with either of the ".cjs" and ".mjs" suffixes.
77+
// HTML5 is supported if this value ends with the ".html" suffix, and Node.js if this value ends with any of ".js", ".cjs" and ".mjs".
7878
CodePath: string | null,
7979
// An override for CodePath on Windows.
8080
CodePathWin: string | null,
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)