htmlpreview / htmlpreview.github.com

HTML Preview for GitHub Repositories
htmlpreview.github.com
1.56k stars 322 forks source link

Web page does not load - is htmlpreview broken ? #132

Open mdear opened 1 year ago

mdear commented 1 year ago

https://htmlpreview.github.io/?https://raw.githubusercontent.com/ajnafa/psci-3300-political-science-research/main/content/05-conceptualization-and-measurement/slides/09-27-2022/conceptualization-and-measurement.html

I tried on Brave and Chrome browsers, page loaded but no content was visible.

basxto commented 1 year ago

It seems it doesn’t load the external scripts.

tamvm commented 8 months ago

It seems it doesn’t load the external scripts.

@basxto Do you know any work around for this?

Thank you,

basxto commented 8 months ago

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