Remove the per-page Copy Markdown and Open buttons #5
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check out sqlc docs | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: sqlc-dev/sqlc | |
| path: .cache/sqlc | |
| sparse-checkout: docs | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: Ingest | |
| run: node scripts/ingest.mjs --src .cache/sqlc/docs | |
| - name: Build | |
| run: npm run build | |
| - name: Type check | |
| run: npm run types:check | |
| # Downloadable preview of the built site. Serve it locally with e.g. | |
| # `python3 -m http.server` and open /en/latest/. | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: site-preview | |
| path: | | |
| out/ | |
| out-root/ | |
| retention-days: 7 |