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

Make url and baseurl relative #54

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

eah13
Copy link

@eah13 eah13 commented Aug 23, 2014

Project's looking great!

One thing I discovered in using Github Pages for my course last year is that you can get Github to automatically deploy a Github Pages site for anyone who forks the project. The changes in this pull request to that for this project.

If url and baseurl are set to the repo's name (in this case /openmusictheory) and the code is in a branch called gh-pages (as it already was) then all forks of the main repo will get their own Github pages version of the site deployed at {{ username}}.github.io/openmusictheory. See mine here: http://elliotthauser.com/openmusictheory/

(it's shown at elliotthauser.com because I use forwarding for my main site, eah13.github.io)

This should help with your goal of easy customization for those not so familiar with web dev. Simple customizations can be made right in the browser, using Github's editor, and the new author can just just Github Pages as their class site.

Hope that helps! I can write a n00b-friendly guide to forking and customizing the book on Github if that's helpful too. Varibles like the name of the class or professor could be easily handled via config.yml, letting the book become a class website of sorts.

@kshaffer
Copy link
Member

Hmm, I think (but could be wrong) that we'll lose that as soon as we set the site up for openmusictheory.com, since we're having openmusictheory.com point directly to the website (as opposed to openmusictheory.com/openmusictheory). Is that correct?

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

Successfully merging this pull request may close these issues.

2 participants