fix(docs): strip .mdx extensions from generated docs links #65
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 navigation | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "docs/**" | |
| - "scripts/gen-docs-nav.sh" | |
| - "scripts/fix-docs-links.sh" | |
| - ".github/workflows/docs-nav.yaml" | |
| jobs: | |
| gen-docs-nav: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # jq is preinstalled on GitHub-hosted ubuntu runners. | |
| - name: Regenerate docs navigation | |
| run: scripts/gen-docs-nav.sh | |
| - name: Strip .mdx extensions from docs links | |
| run: scripts/fix-docs-links.sh | |
| - name: Auto-commit docs post-processing | |
| uses: int128/update-generated-files-action@v2 | |
| with: | |
| commit-message: "Chore: regenerate docs navigation and fix docs links" |