0

If I have an .html page in my project and want to show that as it's renders what should I do? Is there any specific URL for this reason?

Update: In Github I mean!

Mohsen
  • 61,836
  • 32
  • 154
  • 180
  • Duplicate: [how-to-see-an-html-page-on-github-as-a-normal-rendered-html-page-to-see-preview](http://stackoverflow.com/questions/8446218/how-to-see-an-html-page-on-github-as-a-normal-rendered-html-page-to-see-preview) – denis Feb 11 '13 at 14:40

4 Answers4

1

The easiest way is to use GitHub HTML Preview

niutech
  • 27,241
  • 15
  • 90
  • 102
0

This solution only for chrome browser. I am not sure about other browser.

  1. Add "Modify Content-Type Options" extension in chrome browser.
  2. Open "chrome-extension://jnfofbopfpaoeojgieggflbpcblhfhka/options.html" url in browser.
  3. Add the rule for raw file url. For example:
    • URL Filter: https:///raw/master//fileName.html
    • Original Type: text/plain
    • Replacement Type: text/html
  4. Open the file browser which you added url in rule (in step 3).
Vijay
  • 421
  • 6
  • 9
0

This can be done using the following steps:

  1. Rename the .html file to index.html
  2. Go to setting and enable Github Pages for master branch.
  3. Go to the website:
   https://username.github.io/repo-name/

Here you put your username and repository name containing the html file

sdasara
  • 97
  • 7
-2

You can simply open the file in your browser of choice on your local machine.

If the .html file is, for example, a template file that is rendered via a cms or other similar system, then you will likely need to be running a local version of your server environment either on your dev machine or a dev environment you can access.

Geuis
  • 39,646
  • 54
  • 150
  • 215