Skip to content

Commit

Permalink
Merge pull request #1 from v1xingyue/main
Browse files Browse the repository at this point in the history
mdbook basic cicd
  • Loading branch information
uvd authored Jun 28, 2024
2 parents 720a2eb + c8ab071 commit 283711f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [main]

jobs:
build:
name: Build, Test and Deploy
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
steps:
- uses: actions/checkout@v4
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# - run: (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.4" mdbook)
- run: wget https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz
- run: tar zxvf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz
- run: mkdir -p $HOME/.cargo/bin && mv mdbook $HOME/.cargo/bin/mdbook
- run: mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
- uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: book # The folder the action should deploy.
16 changes: 16 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@ language = "en"
multilingual = false
src = "src"
title = "easy move"


[output.html]
default-theme = "light"
smart-punctuation = true
mathjax-support = false
copy-fonts = true
no-section-label = false
git-repository-url = "https://github.com/move-cn/EasyMove"
git-repository-icon = "fa-github"
edit-url-template = "https://github.com/move-cn/EasyMove/edit/main/{path}"
input-404 = "not-found.md"

[output.html.fold]
enable = true
level = 2
3 changes: 3 additions & 0 deletions src/not-found.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Not found Content

Why not move ?

0 comments on commit 283711f

Please sign in to comment.