From 75fd237e280240ce169324aaca0a27f1b2e6a677 Mon Sep 17 00:00:00 2001 From: Dennis Scheiba Date: Mon, 16 Sep 2024 17:44:52 +0200 Subject: [PATCH 1/4] add macOS gitignore --- .gitignore | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.gitignore b/.gitignore index 99c53ca..c30b56e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,28 @@ books + +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk From 4521a0140c26e863fa9afb30a5c7d02dca2dff79 Mon Sep 17 00:00:00 2001 From: Dennis Scheiba Date: Mon, 16 Sep 2024 17:45:27 +0200 Subject: [PATCH 2/4] add index to choose between books --- combined-index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 combined-index.html diff --git a/combined-index.html b/combined-index.html new file mode 100644 index 0000000..035c8b3 --- /dev/null +++ b/combined-index.html @@ -0,0 +1,21 @@ + + + + + SuperCollider Books + + + + + + + +

SuperCollider books

+ + + From 96eae3a486f509e37709457d05b249056eb372aa Mon Sep 17 00:00:00 2001 From: Dennis Scheiba Date: Mon, 16 Sep 2024 17:45:57 +0200 Subject: [PATCH 3/4] init makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0ba83e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +all: meta beginner cookbook intermediate synthesis + +beginner: + mdbook build src/beginner + +cookbook: + mdbook build src/cookbook + +intermediate: + mdbook build src/intermediate + +synthesis: + mdbook build src/synthesis + +meta: + mkdir -p books + cp combined-index.html books/index.html + +clean: + rm -rf books From 6155f7bf79ee5d8140801c0e24075cb4ffd48eb8 Mon Sep 17 00:00:00 2001 From: Dennis Scheiba Date: Mon, 16 Sep 2024 17:57:54 +0200 Subject: [PATCH 4/4] init CI --- .github/workflows/actions.yml | 34 ++++++++++++++++++++++++++++++++++ .gitignore | 5 ++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..fc33bc3 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,34 @@ +name: "CI" + +on: + push: + pull_request: + +jobs: + build-book: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + name: Checkout repository + + - name: Install mdbook + run: | + mkdir bin + wget https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz + tar xf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz --directory=bin + echo "${{github.workspace}}/bin" >> ${GITHUB_PATH} + # not yet in PATH due to missing source command + bin/mdbook --version + + - name: Build book + run: | + make all + + - name: publish book + uses: peaceiris/actions-gh-pages@v4.0.0 + if: success() && github.ref == 'refs/heads/main' # only deploy main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: books diff --git a/.gitignore b/.gitignore index c30b56e..f7e2f57 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ books +bin/ +*.tar.gz # General .DS_Store @@ -6,7 +8,8 @@ books .LSOverride # Icon must end with two \r -Icon +Icon + # Thumbnails ._*