I have setup my repository on GitHub and would like to create a demo page on GitHub itself. How do I setup a demo page showing my project's index.html ? I googled but dont seem to find it.
1 Answer
On your GitHub project, you can mention in your README a link to an associated GitHub Page.
(you can also create it manually)
That will translate, in your repo in a separate gh-pages branch, in which you can add your web pages.
But you cannot directly "include" or "import" that project web page directly in your main GitHub page (which only reflects your README.md file)
Since you already have a project page, you can embed your jsfidle demo following:
"Embedding the fiddle"
Embedding is provided to show the fiddle with running result on any other page.
URL: http://{url_of_the_fiddle}/embedded/[{tabs}/[{style}]]/ <iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/zalun/NmudS/embedded/"> </iframe> 14 Comments
Rahul Desai
Not sure if you got my question correctly. I do not want to create a project page. I already have it here: rdesai03.github.io/stopwatch_dojo I want to show a working demo like it shows in this fiddle: jsfiddle.net/rdesai/P7b9S/76/embedded/result
VonC
@RahulDesai I understand. Hence the last sentence of my answer. Your GitHub page only reflect
README.md. You can show your working demo on your project page.Rahul Desai
How do I show working demo on the project page? Are you refering to GitHub page and project page as two different pages? Or, are they the same as I provided in the link above?
VonC
@RahulDesai 2 different pages: you should be able to show what you want at rdesai03.github.io/stopwatch_dojo, not at github.com/rdesai03/stopwatch_dojo
VonC
@RahulDesai I have edited my answer to include a link explaining how to embed your demo in an html page (like your project page)
|