diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000000..cf823f6b9a --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,26 @@ +name: autofix.ci +on: + push: + branches: + - main + pull_request: + workflow_dispatch: +jobs: + format-metadata: + runs-on: ubuntu-24.04 + defaults: + run: + working-directory: website/typst-docs-web + steps: + - name: Checkout the repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + submodules: recursive + - name: Setup tools + uses: jdx/mise-action@13abe502c30c1559a5c37dff303831bab82c9402 # v2.2.3 + - name: Install dependencies + run: bun install --frozen-lockfile + - name: Apply Biome checks + run: bun biome check --write ../ + - name: Autofix + uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # v1.3.2 diff --git a/website/.editorconfig b/website/.editorconfig new file mode 100644 index 0000000000..4f1eb77b0a --- /dev/null +++ b/website/.editorconfig @@ -0,0 +1,10 @@ +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = 0