Skip to content

Respect user choice of CSS files for existing narrated web site #2057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

hgohel
Copy link
Member

@hgohel hgohel commented Apr 30, 2025

Fixes #13792

When a Narrated Web Site is generated to an existing folder and the CSS for the web pages is changed, the screen CSS would not be overwritten. This has been changed so that the user's choice of CSS is correctly copied to the output directory

@Nick-Hall Nick-Hall added the bug label Apr 30, 2025
@hgohel
Copy link
Member Author

hgohel commented Apr 30, 2025

@SNoiraud This address defect 13792 and I would like your review on it. There are other files being copied to the output folder which are not overwritten either; should all of them be overwritten in case of changes, or stick with just this one file?

@hgohel hgohel requested a review from SNoiraud April 30, 2025 16:48
@hgohel
Copy link
Member Author

hgohel commented May 3, 2025

@Nick-Hall Happy to hear your thoughts on this as well. If @SNoiraud doesn't have strong thoughts, I can remove the draft status as-is.

@SNoiraud
Copy link
Member

SNoiraud commented May 3, 2025

The origin of this:
When you copy files (images, ...), if these files are already copied because they are shared, we do not copy them to save time. If you use archives, we save memory.

@hgohel hgohel marked this pull request as ready for review May 4, 2025 08:12
@hgohel
Copy link
Member Author

hgohel commented May 4, 2025

@SNoiraud Thanks for confirming the rationale for current behavior. Reading in-between the lines, I take you would prefer to make minimal changes and overwrite only this file and not the others. Removed draft status of PR; it is ready for further review and merging.

@Call-Me-Dave Open to your comments on this PR in the context of the bug report if you would verbalize them.

@hgohel
Copy link
Member Author

hgohel commented May 10, 2025

The fix was tested and validated by reporter on Linux, and validated by me on Windows as well. Ready to merge.

@Call-Me-Dave
Copy link

@Call-Me-Dave Open to your comments on this PR in the context of the bug report if you would verbalize them.

It was meant to be a thumbs up emoticon to represent that I like this 👍

@dsblank dsblank added this to the v6.0 milestone Jun 7, 2025
When a narrated web site is generated to an existing folder and
the CSS for the web pages is changed, the screen CSS would not be
overwritten. This has been changed so that the user's choice of
CSS is correctly copied to the output directory.

Fixes #13792.
@Nick-Hall Nick-Hall force-pushed the bug-13792-gramps60 branch from 4cc416c to 828a1f6 Compare June 9, 2025 21:51
@Nick-Hall Nick-Hall changed the title Respect user choice of CSS files for existing NWS Respect user choice of CSS files for existing narrated web site Jun 9, 2025
@Nick-Hall Nick-Hall merged commit 828a1f6 into gramps-project:maintenance/gramps60 Jun 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants