Skip to content

Commit 13da726

Browse files
Temp
1 parent a9194ea commit 13da726

File tree

293 files changed

+343
-7661
lines changed

Some content is hidden

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

293 files changed

+343
-7661
lines changed

.github/workflows/cd.yaml

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

.gitignore

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1 @@
1-
# mdBook build output
2-
book/
3-
# Node modules (if using custom JS/CSS tooling)
4-
node_modules/
5-
# Dependency/package lock files
6-
package-lock.json
7-
yarn.lock
8-
pnpm-lock.yaml
9-
# Editor/OS files
10-
*.swp
11-
*.swo
12-
*.bak
13-
*.tmp
14-
.DS_Store
15-
Thumbs.db
16-
# Logs
17-
*.log
18-
# Python virtual environments (if used for scripts)
19-
venv/
20-
.env
21-
# Miscellaneous
22-
.idea/
23-
.vscode/
24-
# Ignore
1+
book

0 commit comments

Comments
 (0)