r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
708 stars 323 forks source link

Auto-delete old html file after renaming Rmd file? #2658

Closed vincentvanhees closed 1 month ago

vincentvanhees commented 1 month ago

Hello, thanks for developing this amazing library. We have managed to implement it for https://wadpac.github.io/GGIR/

When I change a page name in my main/master git branch, the html file generated for the old page name continues to live inside the repository. For example if I change contributing.Rmd to Contributing.Rmd the gh-pages keeps using the old contributing.html. Only by fixing it in all repository branches individually I am able to get Contributing.html to work even after those development branches are merged.

Luckily page names do not need to be changed frequently but it would be nice if it could be done more smoothly.

Question: Is there an easy work around or could this be a potential new feature of pkgdown?

vincentvanhees commented 1 month ago

I have been trying to reproduce the issue in a new test repo and it seems the actual problem is that GitHub Desktop (Windows) is not sensitive to case changes in filenames, by which it continuous to miss the change in contributing.Rmd => Contributing.Rmd.

Now closing this issue, because this seems to be a GitHub desktop issue and not related to pkgdown.