json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
858 stars 152 forks source link

Convert to Eleventy. #836

Open davidlehn opened 6 months ago

davidlehn commented 6 months ago

Status:

Issues:

Notes:

Testing:

npm install
npm run serve
# open http://localhost:8080/ (or whatever URL it gives you)
cloudflare-workers-and-pages[bot] commented 5 months ago

Deploying json-ld-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: a8a8b0c
Status: ✅  Deploy successful!
Preview URL: https://49c7bfc5.json-ld-org.pages.dev

View logs

davidlehn commented 4 months ago

Another issue with this conversion is how to handle all the .htaccess rules. If the target host is Apache then of course these will still work. But our likely new target is Cloudflare Pages, which does things differently.

$ git ls-files | grep .htaccess
.htaccess
contexts/.htaccess
images/.htaccess
spec/ED/.htaccess
spec/latest/.htaccess
test-suite/.htaccess
test-suite/tests/.htaccess
utils/.htaccess

And while pondering these things, I'm wondering where this is headed.

BigBlueHat commented 2 months ago

@davidlehn per your concerns above, I think we can keep using 11ty separate from the hosting platform. Having 11ty in place makes working on (and redesigning) the site much simpler--where it's hosted can be a separate matter because 11ty generates static sites.

Cloudflare hosting can easily get more complex/tangled (just like the build tool nightmare that is modern JavaScript vs. ye olde <script> tag). It really depends on what we want to manage, pay for, support, etc. Most/all of the Cloudflare stuff, though, can also be defined descriptively (or at least via JS in the same repo) to avoid "blind"/hidden configurations available only via the Cloudflare Dashboard.

All that to say, how this is hosted is orthogonal to using 11ty.

BigBlueHat commented 1 week ago

@davidlehn how close do you think this is to shippable? I know #840 is part of the consideration here too. Just curious how we can get this over the finish line.

Since the WG is getting rechartered, it'd be super to get this in a space we can continue to improve, redesign, etc.

Happy to help finish it off...just not sure where we're stuck.