trevorcampbell / website_diff

MIT License
2 stars 1 forks source link

Only images are highlighted as changed when adding entire new chapter #23

Closed joelostblom closed 1 month ago

joelostblom commented 2 months ago

In this PR I added an entire new chapter to the built book https://github.com/joelostblom/viz-oer/pull/29. However, in the deploy preview, only the images are highlighted in green as "changed", not the text. I was expecting the text to also be green, but maybe there is some max on how big of a change is marked up?

I'll leave that PR up until you have had time to have a look

trevorcampbell commented 2 months ago

Interesting. I think what's happening is:

But seeing your example, it is a little bit weird. I wonder if just inserting a large top element with green text "This whole page is new" or something like that is the right strategy...it will mess up the page a little bit potentially, but that's OK since it's just a diff anyway.

joelostblom commented 2 months ago

I see, the current convention of not marking up entire pages makes sense, and I think it would be helpful with a banner/message on the top of a file if the entire file is new, as you suggested.