nigelhorne / ged2site

Create a family tree website from a Gedcom file
https://genealogy.nigelhorne.com
GNU General Public License v2.0
36 stars 4 forks source link

static-site: HTML tidy? #122

Closed jhannah closed 1 month ago

jhannah commented 1 month ago

Thoughts on running the HTML files through whatever tidy converter so I can git diff my generated files cleanly? A discussion thread. I might run my own branch for that feature if you don't want it upstream. 🙂

nigelhorne commented 1 month ago

Feel free to do that, I use the dynamic sites output from ged2site since they are easier to read (using templates to keep Perl and HTML separate). I deliberately compress output to save on bandwidth.

On a different, but related issue, I use "weblint" to verify the HTML output.

jhannah commented 1 month ago

Note for future macOS users: /usr/local/bin/tidy is pre-installed apparently, this works great:

find . -name '*.html' -exec tidy -quiet -im -wrap 0 -f errors.txt {} \;