Skip to content

Commit

Permalink
Merge pull request #9 from NCKU-CCS/mdbook
Browse files Browse the repository at this point in the history
mdbook init
  • Loading branch information
shawn111 authored Oct 24, 2023
2 parents 6acc15e + cc757bf commit 9519bef
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: github pages

on:
push:
branches:
- main
- mdbook
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.10'
# mdbook-version: 'latest'

- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
- test env: https://killercoda.com/csie-proj114

![outline](./outline.jpg)

這本手冊由 114 屆專題生共同編輯

[mdbook](https://rust-lang.github.io/mdBook)
9 changes: 9 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# csie-proj_114

[README](./README.md)

- [Container 101](./container-101/README.md)
- [cgroup](./container-101/cgroup/README.md)
- [simple](./container-101/cgroup/simple.md)
- [v2](./container-101/cgroup/cgroup_v2.md)

5 changes: 5 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[book]
authors = ["Shawn Wang"]
language = "en"
multilingual = false
src = "."
Empty file added container-101/cgroup/README.md
Empty file.

0 comments on commit 9519bef

Please sign in to comment.