VitePress: 为页面直接渲染的 mermaid 修改光标以提示用户可缩放 #1098
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Prettier Action | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| if: github.event_name == 'push' | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Checkout | |
| if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - name: Prettify code | |
| if: github.event_name == 'push' | |
| uses: creyD/prettier_action@v4.6 | |
| with: | |
| prettier_options: --write **/*.{mjs,mts,css,vue,md} | |
| - name: Prettify code dry run | |
| if: github.event_name == 'pull_request' | |
| uses: creyD/prettier_action@v4.6 | |
| with: | |
| prettier_options: --write **/*.{mjs,mts,css,vue,md} | |
| only_changed: true | |
| dry: true |