From c53bc7ddbc14532b37adf13b9e5e921121f34e89 Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Tue, 4 Jul 2023 09:28:42 -0400 Subject: [PATCH] feat: first commit --- .github/workflows/pages.yml | 40 +++++++++++++++++++++++++++++++++++++ .gitignore | 1 + book.toml | 6 ++++++ src/SUMMARY.md | 3 +++ src/chapter_1.md | 1 + 5 files changed, 51 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100644 .gitignore create mode 100644 book.toml create mode 100644 src/SUMMARY.md create mode 100644 src/chapter_1.md diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..6200699 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,40 @@ +name: Publish Book to GitHub Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.4.31' + + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: './book' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7585238 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +book diff --git a/book.toml b/book.toml new file mode 100644 index 0000000..029d2b9 --- /dev/null +++ b/book.toml @@ -0,0 +1,6 @@ +[book] +authors = ["Esteban Borai"] +language = "en" +multilingual = false +src = "src" +title = "Rust HTTP Server" diff --git a/src/SUMMARY.md b/src/SUMMARY.md new file mode 100644 index 0000000..7390c82 --- /dev/null +++ b/src/SUMMARY.md @@ -0,0 +1,3 @@ +# Summary + +- [Chapter 1](./chapter_1.md) diff --git a/src/chapter_1.md b/src/chapter_1.md new file mode 100644 index 0000000..b743fda --- /dev/null +++ b/src/chapter_1.md @@ -0,0 +1 @@ +# Chapter 1