bep / docuapi

Beautiful multilingual API documentation theme for Hugo
https://docuapi.netlify.app/
Other
750 stars 200 forks source link

Paths are not relative for stylesheets, so github pages hosting doesn't work #7

Closed thrivingresearch closed 7 years ago

thrivingresearch commented 7 years ago

if using github pages in a repo, the non-relative paths "" are broken - because they are really located at /reponame/slate/etc

bep commented 7 years ago

I'm not sure I follow you.

I load every stylesheet using relURL (a function I have written myself, which I'm pretty confident is doing the right thing). So, assuming you have set the baseURL correctly, it should just work.

https://github.com/bep/docuapi/blob/master/layouts/partials/styles.html#L1

thrivingresearch commented 7 years ago

You're 100% correct. I was wrong, my mistake :)

(to anyone else reading... don't forget to update baseURL when you push 😅)