From c42b75def813b3d87ad08981f4943589091d3913 Mon Sep 17 00:00:00 2001 From: Ch1n3du Date: Mon, 26 Sep 2022 14:24:16 +0100 Subject: [PATCH] feat: Added skeleton and gh action for mdbook --- .github/workflows/mdbook.yml | 30 ++++++++++++++++++++++++++++++ book/book.toml | 6 ++++++ book/src/SUMMARY.md | 3 +++ book/src/chapter_1.md | 1 + 4 files changed, 40 insertions(+) create mode 100644 .github/workflows/mdbook.yml create mode 100644 book/book.toml create mode 100644 book/src/SUMMARY.md create mode 100644 book/src/chapter_1.md diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml new file mode 100644 index 00000000..4a4fbf37 --- /dev/null +++ b/.github/workflows/mdbook.yml @@ -0,0 +1,30 @@ +name: github pages + +on: + push: + branches: + - main + 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 \ No newline at end of file diff --git a/book/book.toml b/book/book.toml new file mode 100644 index 00000000..7d9bc99d --- /dev/null +++ b/book/book.toml @@ -0,0 +1,6 @@ +[book] +authors = ["Ch1n3du"] +language = "en" +multilingual = false +src = "src" +title = "The Aiken Programming Language" diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md new file mode 100644 index 00000000..7390c828 --- /dev/null +++ b/book/src/SUMMARY.md @@ -0,0 +1,3 @@ +# Summary + +- [Chapter 1](./chapter_1.md) diff --git a/book/src/chapter_1.md b/book/src/chapter_1.md new file mode 100644 index 00000000..b743fda3 --- /dev/null +++ b/book/src/chapter_1.md @@ -0,0 +1 @@ +# Chapter 1