htmlpreview / htmlpreview.github.com

HTML Preview for GitHub Repositories

Home Page:htmlpreview.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web page does not load - is htmlpreview broken ?

mdear opened this issue · comments

commented

It seems it doesn’t load the external scripts.

It seems it doesn’t load the external scripts.

@basxto Do you know any work around for this?

Thank you,

I don’t remember. But I don’t think I got it working.

Though it’s not generally broken. The example URL from the index.html works for me: https://htmlpreview.github.io/?https://github.com/twbs/bootstrap/blob/gh-pages/2.3.2/index.html

And other repos also work: https://htmlpreview.github.io/?https://github.com/basxto/gbm-web/blob/gh-pages/about.html

But it doesn’t work with all sites apparently.

It’s just easier to clone and run a local web server than bothering to fix this:

cd /tmp
git clone https://github.com/ajnafa/psci-3300-political-science-research
cd psci-3300-political-science-research
serve -l 8000

(Or any other primitive web server darkhttpd . --port 8000, python3 -m http.server 8000, ruby -run -ehttpd . -p8000, sudo quark -p 8000 -g users …)
And then visiting http://localhost:8000/content/05-conceptualization-and-measurement/slides/09-27-2022/conceptualization-and-measurement.html