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 99c53ca..f7e2f57 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,31 @@ books +bin/ +*.tar.gz + +# 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 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 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

+ + +