feat: geneva/azure deployment docs #163
Workflow file for this run
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: Docs Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| broken-links-and-openapi: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout lance-namespace (upstream spec) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: lance-format/lance-namespace | |
| ref: main | |
| path: lance-namespace | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Copy lance-namespace REST API spec | |
| run: | | |
| set -euo pipefail | |
| test -s lance-namespace/docs/src/rest.yaml | |
| cp lance-namespace/docs/src/rest.yaml docs/api-reference/rest/openapi.yml | |
| - name: Install Mintlify CLI | |
| run: npm install -g mintlify@latest | |
| - name: Check broken links | |
| run: | | |
| set -euo pipefail | |
| if command -v mint >/dev/null 2>&1; then | |
| (cd docs && mint broken-links) | |
| elif command -v mintlify >/dev/null 2>&1; then | |
| (cd docs && mintlify broken-links) | |
| else | |
| (cd docs && npx -y mintlify@latest broken-links) | |
| fi |