Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Alternate site generation concept #323
Alternate issue title: "oh, boy, what has Dave gone and done now..."
So I promised I would prepare a proof of concept for an alternative direction you could take for site generation. I finally got a couple hours to rig this up, and I think the timing is good since it looks like you're starting to think about more dynamic concepts (such as standing up an API).
First, a philosophical point: I personally don't think anything about this site requires anything other than a static build. That's debatable of course, but my own explorations have led me to believe that there are a lot of sites that could be purely static if it weren't for the limitations of their available tools.
Basically, I migrated the site to Wyam.
The repo is here (I didn't want to drop a PR bomb at this point): https://github.com/daveaglick/up-for-grabs.net/tree/master
In addition, some notes and additional features:
I also have some ideas on how to leverage the static build process to enhance things:
The idea would be to set this up on a CI server that can build on commits and at regular intervals (perhaps every hour). I've already got AppVeyor scripts to do this for a Wyam build, but I would hope other CI servers would be similar.
Anyway, this was fun to take on. I've been wanting to try applying Wyam to a fairly complex build that wasn't mine just to see how far I got. Turns out it worked great. However, I recognize this may not be the direction you guys want to head, and that's okay too - I knew going in this was a bit of a flyer.
@montogeek Not sure - to be honest, I'm not sure how much interest there is in bringing this in. It's a very big change to the current way the site is built and I mainly just threw it out there as a flyer. @shiftkey or another maintainer will have to weigh in on if it's worth developing further.
FWIW, the code used for this is on my fork in the master branch: https://github.com/daveaglick/up-for-grabs.net/tree/master
Yeah, and that's still where I'm at with the thinking on this:
@daveaglick thanks for putting together the demonstration on this. It makes me feel bad to say no at this stage to introducing Wyam but it was very cool to see what you had in mind for making the site experience richer - I'd love to pull in some of this as part of the API stats if I ever get back to that...