Updated llms.txt handling #119
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: Build Documentation | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'docs/**' | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PUSH_TOKEN }} | |
| # Install Doxygen | |
| - name: Install Doxygen | |
| uses: ssciwr/doxygen-install@v1 | |
| with: | |
| version: "1.15.0" | |
| # Maintain folder structure | |
| - name: Ensure doc output directories exist | |
| run: | | |
| mkdir -p docs/NanoXLSX.Core | |
| mkdir -p docs/NanoXLSX.Reader | |
| mkdir -p docs/NanoXLSX.Writer | |
| # Generate docs for NanoXLSX.Core | |
| - name: Generate NanoXLSX.Core docs | |
| run: | | |
| cd NanoXLSX.Core/Documentation | |
| doxygen documentation.doxygen | |
| # Generate docs for NanoXLSX.Reader | |
| - name: Generate NanoXLSX.Reader docs | |
| run: | | |
| cd NanoXLSX.Reader/Documentation | |
| doxygen documentation.doxygen | |
| # Generate docs for NanoXLSX.Writer | |
| - name: Generate NanoXLSX.Writer docs | |
| run: | | |
| cd NanoXLSX.Writer/Documentation | |
| doxygen documentation.doxygen | |
| # Move static files locally | |
| - name: Prepare docs folder | |
| run: | | |
| mkdir -p docs | |
| mv Docs.IndexGenerator/Output/* docs/ | |
| # Upload docs artifact | |
| - name: Upload docs artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs | |
| path: docs/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.PUSH_TOKEN }} | |
| publish_dir: ./docs | |
| publish_branch: gh-pages |