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

GitHub pages episode #31

Closed
alexandermendes opened this issue Jun 2, 2017 · 7 comments
Closed

GitHub pages episode #31

alexandermendes opened this issue Jun 2, 2017 · 7 comments

Comments

@alexandermendes
Copy link
Contributor

@alexandermendes alexandermendes commented Jun 2, 2017

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.

@evanwill
Copy link
Contributor

@evanwill evanwill commented Jun 2, 2017 •

I could work on this, maybe once the rest of the lesson settles.

There is basically four ways to use gh-pages:

  1. add an index.html file (and any other random HTML)
  2. use Automatic Theme Chooser (basically a one page project site based on the README.md)
  3. add a _config.yml and use gh-pages automated Jekyll build service (generate the site from a few md files in Minima theme)
  4. add a full Jekyll project and use gh-pages automated build

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)?

@alexandermendes
Copy link
Contributor Author

@alexandermendes alexandermendes commented Jun 2, 2017

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?

@alexandermendes
Copy link
Contributor Author

@alexandermendes alexandermendes commented Jun 2, 2017

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.

@evanwill
Copy link
Contributor

@evanwill evanwill commented Jun 2, 2017 •

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 index.md, then we could:

  • simply activate gh-pages to see the md rendered
  • use the Theme Chooser to create a simple page with one click.
  • create a Minima Jekyll site by adding a _config.yml.

(i.e. do one of the options, just to intro gh-pages)

@kirschbombe
Copy link

@kirschbombe kirschbombe commented Jun 2, 2017

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.

@alexandermendes
Copy link
Contributor Author

@alexandermendes alexandermendes commented Jun 2, 2017

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!

@alexandermendes
Copy link
Contributor Author

@alexandermendes alexandermendes commented Jun 29, 2017

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

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

3 participants