Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdear opened this issue Jun 17, 2023 · 3 comments
Open

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

mdear opened this issue Jun 17, 2023 · 3 comments

Comments

@mdear
Copy link

mdear commented Jun 17, 2023

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
Copy link

basxto commented Oct 22, 2023

It seems it doesn’t load the external scripts.

@tamvm
Copy link

tamvm commented Mar 18, 2024

It seems it doesn’t load the external scripts.

@basxto Do you know any work around for this?

Thank you,

@basxto
Copy link

basxto commented Mar 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants