fulldecent / github-pages-template

An opinionated starting point and build system for awesome, collaboratively-edited HTML websites
https://fulldecent.github.io/github-pages-template/
35 stars 52 forks source link

Add structured data testing #101

Open fulldecent opened 2 months ago

fulldecent commented 2 months ago

Add structured-data-testing-tool

See example https://github.com/ThatGuySam/doesitarm/blob/6e11fbe8e79156282aa9c5d61f87808182814325/test/main.js#L8

Specifically, we want to ensure that any json+ld scripts in build/*/.html will have the correct schema formats.


Before we start this, do a simple test across all our pages with like

find | exec yarn dlx structured-data-testing-tool test...

If there are some errors on any built page on our sites then setting up this testing will be a win


End result: