Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Sep 26, 2024

Changes

This PR fixes a couple of minor issues.

Context

While working on a couple of fall-out issues after #1804 was merged, I noticed a couple of minor issues. They are not big enough to warrant any test updates, but they are different enough from the stuff I was actually working on that I felt uncomfortable slipping these changes into those PRs.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho self-assigned this Sep 26, 2024
@dscho
Copy link
Member Author

dscho commented Sep 26, 2024

Note that this commit might look like it fixes a major regression where images may be missing. However, in #1804 the images were added correctly. I have not quite figured out why but I think that I may have introduced the regression _after the book contents were auto-generated.

Recent revisions of the ProGit book have their images in the `images/`
directory located at the top-level, but older revisions had them next to
the chapters that referenced those images.

The `update-book2.rb` script has a fall-back to allow those images to be
copied from the old-style locations.

This fall-back relies on an exception to be raised when an image does
not show up in the new-style location, but we returned a warning
instead. Let's not. Let's raise that exception again.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When an image is not found in the new-style location (i.e. in the
`images/` folder at the top level of the worktree), we want to fall back
to the old-style location _and not warn anybody about it_!

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@ttaylorr ttaylorr merged commit 5b1041a into git:gh-pages Sep 26, 2024
1 check passed
@dscho dscho deleted the misc-fixes branch September 26, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants