Skip to content

Commit

Permalink
ci(update-book): the English version owns /book/index.html
Browse files Browse the repository at this point in the history
The default language of the ProGit book is English, therefore
https://git-scm.com/book should redirect to the table of contents of the
English version of that book.

This means that the `/external/book/content/book/en/_index.html` file
needs to be part of the sparse checkout, otherwise the workflow run
would not be able to update it (should it ever become necessary).

This was not a problem so far because that file remained unchanged (and
is likely to remain so for quite some time yet).

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 17, 2024
1 parent 17c47dd commit d2fb555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
external/book/sync
external/book/data
external/book/content/book/${{ matrix.language.lang }}
external/book/content/book${{ matrix.language.lang != 'en' && '/en' || '' }}
external/book/static/book/${{ matrix.language.lang }}
- name: clone ${{ matrix.language.repository }}
run: |
Expand Down

0 comments on commit d2fb555

Please sign in to comment.