L
L
lavezzi12018-02-25 14:52:33
JavaScript
lavezzi1, 2018-02-25 14:52:33

What path should be to resources on github pages?

Hello. I created a repository, put js and css file in the root. I created a docs folder and put index.html there. In the settings, I chose repo/docs for gh-pages and everything started up. My site is showing. But how to correctly specify the paths for js and css files that are in the root of the repository?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2018-02-25
@opium

same as for html

V
Vasily Vasilyev, 2018-02-25
@Basil_Dev

../style.css
The path is relative to .htmlthe file, if I understood the question correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question