docs: Fill in the documentation index and re-build the texinfo. #4
  
    
      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: doc | |
| on: | |
| push: | |
| paths: | |
| - '**.rst' | |
| - '.github/workflows/doc.yml' | |
| jobs: | |
| doc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Nix and set up Emacs | |
| uses: jcs090218/setup-emacs@master | |
| with: | |
| version: 29.1 | |
| - name: Install Eldev | |
| uses: emacs-eldev/setup-eldev@v1 | |
| - name: Check out the source code | |
| uses: actions/checkout@v4 | |
| - name: Install Sphinx | |
| run: | | |
| nix profile install nixpkgs/b833ff01a0d694b910daca6e2ff4a3f26dee478c#texinfo | |
| pip3 install -r docs/requirements.txt | |
| - name: Re-build turtles.texi | |
| run: 'eldev build --force turtles.texi' | |
| - name: Update turtles.texi | |
| # Only run on main branch push (e.g. after pull request merge) in one matrix version. | |
| run: | | |
| if git diff -s --exit-code turtles.texi; then | |
| echo "turtles.texi not modified by this commit" | |
| else | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add turtles.texi | |
| git commit -m "Auto-update turtles.texi" --author "${{ env.CI_COMMIT_AUTHOR }}" | |
| git push | |
| fi |