diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b978b40922ddbbabf576b13b0066f45b75a9294..cccaaae4159def2df9b7918248a4188546d01acd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ build-book: stage: build script: - | - if [ "$CI_COMMIT_BRANCH" == "publish" ]; then + if [ "$CI_COMMIT_BRANCH" == "release" ]; then echo "Building production version" teachbooks build --publish book/ > >(tee stdout.log) 2> >(tee stderr.log >&2) else @@ -40,8 +40,8 @@ build-book: - build_job_id.txt expire_in: 1 week rules: - - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish" - - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish" + - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "release" + - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "release" when: always deploy-draft: @@ -69,9 +69,9 @@ deploy-production: curl -X POST https://mude.citg.tudelft.nl/hooks/book-deploy-production \ -H "Content-Type: application/json" \ -H "X-Gitlab-Token: glpat-m4CzsDqHnXNn3Pf5Whyd" \ - -d "{\"object_kind\":\"pipeline\",\"object_attributes\":{\"status\":\"success\",\"ref\":\"publish\"},\"build_job_id\":$BUILD_JOB_ID}" + -d "{\"object_kind\":\"pipeline\",\"object_attributes\":{\"status\":\"success\",\"ref\":\"release\"},\"build_job_id\":$BUILD_JOB_ID}" environment: name: production url: https://mude.citg.tudelft.nl/2024/book rules: - - if: $CI_COMMIT_BRANCH == "publish" \ No newline at end of file + - if: $CI_COMMIT_BRANCH == "release" \ No newline at end of file diff --git a/book/intro.md b/book/intro.md index e6c58b16433baed87b4ee6979261c3f257d059eb..cef35f2251332c9bd5841deadf1971a0648eca10 100644 --- a/book/intro.md +++ b/book/intro.md @@ -2,6 +2,8 @@ Welcome to the MUDE textbook for the 2024-25 academic year. This is where assigned reading is located, along with interactive exercises to practice and study the module material. +test text + ````{admonition} Interactive Pages---Use Python in your Browser! This online textbook has a number of pages that are set up to be used interactively. You can use the "Live Code" button under the Rocket Ship icon in the top right to activate the interactive features and use Python interactively!