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
GitHub pages episode #31
Comments
|
I could work on this, maybe once the rest of the lesson settles. There is basically four ways to use gh-pages:
In my own workshops I have introduced options 1 - 3 (basic and jekyll) fruitfully, but find 4 requires a lot more time and energy (advanced). In this context, maybe just option 1 or 2 (introduced by creating a repo, clone, edit, push, activate gh-pages)? |
|
My current idea was to lead into this from the previous episodes. So I've just tidied up episode two, which ends up with a locally committed index.md file containing "# Hello, world!". I suppose the next stage would be pushing to GitHub, then all of the forking and branching stuff. Then, by the time they get to the GitHub pages episode we can say something along the lines of there being a special branch on GitHub called gh-pages, create and push this branch (which you now know how to do) and you have just published a webpage. Might be a nice result for people to see something online with a few commands. Perhaps this could be followed by something more complex, but it is tricky to know how far to go with this. They might have already taken in enough by this stage! What do you think? |
|
Also, I haven't done anything with this episode yet so if you want to work on it we shouldn't have any merging issues etc. |
|
yeah, I wouldn't use it to introduce a new Git concept, but just repeat/reinforce what they learned in the previous episodes. You can now run gh-pages from any branch, so even branching is unnecessary (and undesirable if the main purpose of the repo is to host a site). This would introduce the idea of gh-pages, hinting at the wonderful possibilities, but not adding too much cognitive load. If they have a repository with an
(i.e. do one of the options, just to intro gh-pages) |
|
Another option is to have them use an HTML5 template from HTML5Up or something similar. They can get a more interesting page up pretty quickly without having to get into Jekyll. https://html5up.net. I taught this yesterday and introduced Chrome Developer Tools to do some quick styling/customization before pushing up to GitHub. |
|
All sound like good ideas to me! I suppose the only thing to be wary of is that this is towards the end of a lesson (probably?), so we might be running out of time. I don't have any experience with teaching groups like this, so other people will know better, but I know it can generally take people a long time to get their heads around just the basic commands. I think leading towards a basic GitHub pages site does make it a bit more interesting, just not sure about that balance, or in fact how we can make this at least vaguely relate to libraries! |
|
Closing this as it will sit here for ages otherwise! The lesson has been updated a little, issue can be raised again if someone wants to do more |
As raised in #7 we can add a GitHub pages episode towards the end. We probably want to keep this as simple as possible but it could be a useful exercise to help people become more comfortable with branching and pushing etc.
The text was updated successfully, but these errors were encountered: