1

In my github repo's Readme.md, I'd like to link to several raw html files.

I can do that by

[](./output_HTML/marham.html)

But in my github page, the HTML cannot be rendered directly. For example, for my file (https://github.com/cqcn1991/Wind-Speed-Analysis/blob/master/output_HTML/marham.html), it will display:

enter image description here

What would be a good way to link my file, so the HTML can be directly rendered?

I know one alternative is to use rawgit. That is, to manually change the link into

[](https://cdn.rawgit.com/cqcn1991/Wind-Speed-Analysis/master/output_HTML/marham.html)

But I'm not sure if this is the right approach? Or if there are better way than to manually do this?

ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
  • see the `raw` button at the top right corner of the file? also, the `view raw` link in the file itself? use that. (but that's going to be rendered as plain text, as github does not set the type of the file in the headers) – njzk2 Jun 17 '16 at 02:48
  • @njzk2 As you said, both of the `raw` and `view raw` render the HTML as plain text, and that's not what I want. I want the page. – ZK Zhao Jun 17 '16 at 02:58
  • 2
    you can use [github pages](https://pages.github.com/) if you need to host actual content – njzk2 Jun 17 '16 at 04:40
  • See http://stackoverflow.com/questions/8446218/how-to-see-an-html-page-on-github-as-a-normal-rendered-html-page-to-see-preview – Steve Hollasch Feb 23 '17 at 23:04

1 Answers1

0

Since rawgit.com is shutting down you want to use combinatronics.com it is an alternative for rawgit.com

It is a drop in replacement, so for your example:

[](http://cdn.combinatronics.com/cqcn1991/Wind-Speed-Analysis/master/output_HTML/marham.html)