Skip to content
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

Mechanize default theme updating #10

Open
jonocodes opened this issue Oct 5, 2017 · 1 comment
Open

Mechanize default theme updating #10

jonocodes opened this issue Oct 5, 2017 · 1 comment

Comments

@jonocodes
Copy link
Owner

jonocodes commented Oct 5, 2017

Figure out a way to keep up to date with upstream Jekyll theme better. Right the default theme file is generated by me viewing one of the rendered classroom documents. For example:
http://training.play-with-docker.com/helloworld/

I copy the HTML, then modify it to my needs. This means stripping out the header and footers, removing some scripts and DOM elements that are not needed. Then I add back some of the templating from
https://github.com/play-with-docker/play-with-docker.github.io/blob/master/_layouts/post.html

This is not efficient. There should either be a way of automating this, or at least a document that says exactly how to do this for future updates to the theme.

Additionally we should pull down copies of static assets like pwd.js and the css. Right now we are just referencing them from their original hosts, but since thats a moving target it is more brittle then having our own copy. We can host these right out of pwder by creating a route for static assets in Sinatra.

@jonocodes
Copy link
Owner Author

started a doc here https://github.com/jonocodes/pwder/wiki/Templates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant