diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 4759495e9..f4e1b6ddc 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -43,7 +43,7 @@ jobs: - name: Populate sample version of Crystal run: crystal --version | tee crystal-version.txt - name: Build book - run: LINT=true make build + run: make build - name: Configure AWS Credentials if: github.event_name == 'push' && steps.branch.outputs.branch != null && github.repository == 'crystal-lang/crystal-book' uses: aws-actions/configure-aws-credentials@v1 diff --git a/mkdocs.yml b/mkdocs.yml index 4ca032d95..c358c4e0d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -58,7 +58,7 @@ plugins: governance.md: https://crystal-lang.org/community/governance platform_support.md: syntax_and_semantics/platform_support.md - code-validator: - enabled: !ENV [LINT, false] + enabled: !ENV [LINT, true] identifiers: crystal: validators: diff --git a/netlify.toml b/netlify.toml index 03b3e3cfc..dffcb7ac5 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,3 +4,5 @@ command = "mkdocs build -d site --strict" publish = "site/" +[context.deploy-preview.environment] + LINT = "false"