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

Serving Demos directly from GitHub #22

Open
DonKarlssonSan opened this issue Jun 30, 2013 · 2 comments
Open

Serving Demos directly from GitHub #22

DonKarlssonSan opened this issue Jun 30, 2013 · 2 comments

Comments

@DonKarlssonSan
Copy link
Contributor

I am experimenting with letting GitHub serve the Kendo demos (kendo-global/demo/*) directly from the repository. So that you can have clickable links in README.md, displayed when you browse to https://github.com/loudenvier/kendo-global.

Benefit: you don't have to download the repository first before you can try the demos.

This is possible by using GitHub Pages (gh-pages). I have a proof of concept in my fork at: https://github.com/DonKarlssonSan/kendo-global/tree/gh-pages, click the links in the Language column in the Credits table. Note that some of the links does not work because the demo file is missing for some translations.

Steps I have taken:

  1. Created a branch called 'gh-pages'
  2. Inserted hard coded links in README.md to http://donkarlssonsan.github.io/kendo-global/demo/kendo_global.xx-YY.html

The proper way to handle this seems to be:

But there is a short cut that many seems to use and which I think i perfectly fine in this case:

  • Just keep everything in branch 'gh-pages'
  • Optionally delete 'master'

What do you think about this idea?

@loudenvier
Copy link
Owner

I think it is very, very nice... Just commit it to master and make a pull request for me, and I'll iron out any conflicts!

Very nice indeed!!!

Great idea!

@DonKarlssonSan
Copy link
Contributor Author

Thanks!

Just to make sure I understand you:

You are going for the short cut alternative, keeping everything in 'gh-pages' branch
I commit to 'master' in my fork. I.e. copying what I have in gh-pages to master.
I make a pull request
You put everything in 'gh-pages'

Correct?

But according to https://help.github.com/articles/using-pull-requests you can select which branch the changes should be applied to during pull.

Sorry, I am a GitHub and git newbee.

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

2 participants