Compromise heuristic that prevents poor performance in some cases #376
  
    
      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 | |
| on: | |
| push: | |
| branches: docs | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: cargo doc | |
| env: | |
| RUSTDOCFLAGS: "--document-private-items --default-theme=ayu --deny warnings" | |
| - run: rm target/doc/.lock | |
| - run: cp docs/* target/doc | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: 'target/doc' | |
| - uses: actions/configure-pages@v4 | |
| - uses: actions/deploy-pages@v4 | |
| id: deployment |