pr-omethe-us / PyKED

Python interface to the ChemKED database format
https://pr-omethe-us.github.io/PyKED/
BSD 3-Clause "New" or "Revised" License
15 stars 15 forks source link

Redirect to the docs site from https://pr.omethe.us/pyked #100

Closed bryanwweber closed 6 years ago

bryanwweber commented 6 years ago

https://stackoverflow.com/questions/9082499/custom-domain-for-github-project-pages/9123911#9123911

bryanwweber commented 6 years ago

Also https://help.github.com/articles/using-a-custom-domain-with-github-pages/

bryanwweber commented 6 years ago

Also, just noticed, Issue #100! Woo!

bryanwweber commented 6 years ago

Or maybe just add a link to the homepage?

kyleniemeyer commented 6 years ago

I could pretty easily redirect something like https://pyked.pr.ometheus.com, I think; the host allows me to create subdomains, and those are easy to redirect.

kyleniemeyer commented 6 years ago

Nvm, that was actually pretty easy... try https://pr.omethe.us/pyked now!

kyleniemeyer commented 6 years ago

I did this via a "meta refresh": <meta http-equiv="refresh" content="0; url=https://pr-omethe-us.github.io/PyKED/">

bryanwweber commented 6 years ago

Nice! Any idea whether the meta-refresh is preferred over setting the domain parameters? I barely understand any of this so I have no idea

kyleniemeyer commented 6 years ago

So, if you make the change at the domain level (i.e., with the website host), I think a redirect would happen before the browser even sees the HTML of the page (which is where the meta-refresh happens).

But I think I can only do a domain-level redirect for a subdomain.

bryanwweber commented 6 years ago

Ah, now I remember what I was thinking here. In this answer: https://stackoverflow.com/a/22374542/2449192 it is possible to redirect and respect the paths, so https://pr.omethe.us/ would redirect to https://pr-oemethe-us.github.io and https://pr.omethe.us/PyKED would redirect to https://pr-oemethe-us.github.io/PyKED and so forth. But obviously, that's not necessary and this solution seems perfect! Now we just need some content for the homepage 😄