DS4PS / cpp-527-spr-2020

Course shell for CPP 527 Foundations of Data Science II for Spring 2020.
http://ds4ps.org/cpp-527-spr-2020/
0 stars 1 forks source link

Uploading HTML to GitHub #10

Open sunaynagoel opened 4 years ago

sunaynagoel commented 4 years ago

I trying to upload local html file (which I generated by knitting R Markdown). I created a new folder "doc" in my existing repository to upload the html file. My questions are

a. How do I generate a link for the html file to share or view later? b. Will it show in my original website which I created from original repository?

Thanks

sunaynagoel commented 4 years ago

@lecy I was trying it for a really long time but figured out right after posting my question here. I apologize.

Jigarci3 commented 4 years ago

Hello @lecy , I have created my repository with my cv files including the html file of my resume. However, when I click to view it I receive the following message and have the option to view raw.

"(Sorry about that, but we can’t show files that are this big right now.)"

I am able to view it when opening it up from my computer so I know it is working- is there a way to resolve this?

lecy commented 4 years ago

@Jigarci3 When you upload an HTML file to GitHub, it treats it (rightly-so) as code. So when you open the file to view it, it will show you the raw HTML, not a rendered webpage.

If you want to view the webpage version, you need to turn the GitHub pages option on in settings (see the lab instructions for more details).

To view the page, you will click on the link for your website. Then add the folder of the file plus the file name to the URL:

https://ds4ps.github.io/cpp-527-spr-2020/labs/create-r-package.html

BASE USER WEBSITE / REPO NAME / FOLDER NAME / FILE NAME