python-opengl icon indicating copy to clipboard operation
python-opengl copied to clipboard

Mirror on github pages?

Open dannguyen opened this issue 6 years ago • 3 comments

Excellent work, and thank you for sharing it! The hosted version at http://www.labri.fr/perso/nrougier/python-opengl seems to be getting a lot of traffic, such that loading the pages from the U.S. can take 15 sec+. Since the HTML and assets are part of your repo, have you considered using Github Pages to host it? The default setting – Use the master branch for Github pages – would host the book at:

https://rougier.github.io/python-opengl/book.html

Just to test it out, I forked your repo and enabled Github Pages, and this is what it looks like:

https://blahs555.github.io/python-opengl/book.html

Assuming you want Google's crawler to give your original domain the SEO credit for your work, you can always add a link canonical meta tag to the book.html:

<link rel="canonical" href="https://www.labri.fr/perso/nrougier/python-opengl/" />

dannguyen avatar Oct 25 '19 15:10 dannguyen

Thanks for the suggestion and I'll do just that. Could make a PR for the metatag?

rougier avatar Oct 28 '19 09:10 rougier

I'm not sure I can make a pull request that reflects that meta-change. I think you have to flip the switch manually by going into https://github.com/rougier/python-opengl/settings and picking the "master branch" setting under the Github Pages heading: image

dannguyen avatar Oct 28 '19 15:10 dannguyen

Done ! Need to update the book to reflect it.

rougier avatar Dec 01 '19 12:12 rougier