Rahul Desai
Rahul Desai

Reputation: 15481

How to setup demo page in GitHub showing my project's index.html?

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.

Upvotes: 0

Views: 509

Answers (1)

VonC
VonC

Reputation: 1323075

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>

Upvotes: 1

Related Questions