docs: update CLI changelog for v1.1.16 #320
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: π Documentation Validation | |
| on: | |
| push: | |
| branches: [ main, mintlify ] | |
| pull_request: | |
| branches: [ main, mintlify ] | |
| workflow_dispatch: | |
| jobs: | |
| validate-docs: | |
| name: π Validate Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: π¦ Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyyaml requests | |
| - name: π§ Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: π¦ Install Node dependencies | |
| run: | | |
| npm install -g markdownlint-cli2 | |
| - name: ποΈ Validate docs.json structure | |
| run: | | |
| echo "::group::π Validating docs.json and redirects" | |
| python3 .scripts/validate-redirects.py | |
| echo "::endgroup::" | |
| - name: π Check internal links | |
| run: | | |
| echo "::group::π Checking internal links" | |
| mkdir -p tmp | |
| python3 .scripts/extract_links.py | |
| python3 .scripts/check_links.py | |
| echo "::endgroup::" | |
| - name: β¨ Lint Markdown files | |
| run: | | |
| echo "::group::β¨ Linting Markdown files" | |
| markdownlint-cli2 --config .markdownlint.yaml "**/*.{md,mdx}" || true | |
| echo "::endgroup::" | |
| - name: π Generate validation report | |
| if: always() | |
| run: | | |
| echo "## π Documentation Validation Report" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "### β Validation Steps Completed:" >> $GITHUB_STEP_SUMMARY | |
| echo "- docs.json structure and redirects" >> $GITHUB_STEP_SUMMARY | |
| echo "- Internal links verification" >> $GITHUB_STEP_SUMMARY | |
| echo "- Markdown linting" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "### π Statistics:" >> $GITHUB_STEP_SUMMARY | |
| echo "- **MDX Files**: $(find . -name '*.mdx' | wc -l)" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Navigation Pages**: $(python3 -c 'import json; config=json.load(open("docs.json")); print("N/A - see logs for count")')" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Redirects**: $(python3 -c 'import json; config=json.load(open("docs.json")); print(len(config.get("redirects", [])))')" >> $GITHUB_STEP_SUMMARY | |
| # Optional: Test production redirects (only on main branch) | |
| test-production-redirects: | |
| name: π Test Production Redirects | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| needs: validate-docs | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: π¦ Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: π§ͺ Test redirects against production | |
| run: | | |
| echo "::group::π Testing production redirects" | |
| if [ -f .scripts/test-redirects.py ]; then | |
| python3 .scripts/test-redirects.py || true | |
| else | |
| echo "Production redirect test script not found, skipping..." | |
| fi | |
| echo "::endgroup::" |