Skip to content

Serve the hub at causalinference.pseudo-lab.com - #116

Draft
jsshin2022 wants to merge 1 commit into
mainfrom
custom-domain
Draft

jsshin2022 wants to merge 1 commit into
mainfrom
custom-domain

Conversation

@jsshin2022

Copy link
Copy Markdown
Member

Do not merge until causalinference.pseudo-lab.com resolves to GitHub Pages. If this deploys first, github.io starts redirecting to an address that doesn't exist yet and the hub goes down.

Before merging

  1. In the pseudo-lab.com DNS, add causalinference as a CNAME to causalinferencelab.github.io.
  2. Recommended: verify pseudo-lab.com for the CausalInferenceLab org (Settings → Pages → Verified domains, TXT record). This stops another account from claiming the subdomain.
  3. Confirm the record resolves, e.g. nslookup causalinference.pseudo-lab.com.

What changes

  • The deploy publishes a CNAME (cname: on the gh-pages step). GitHub then serves the hub at the new address and redirects github.io to it.
  • Canonical URLs, Open Graph tags, JSON-LD, robots.txt, the sitemap and Builder pages point to the new address. The sitemap maps the team's other sites recorded under github.io to the same paths on the new host.

Scripts already work on both hosts (#115): GA, copied links and share cards.

Side effects

  • Because CausalInferenceLab.github.io is the org site, every project site moves with it. For example, the web book becomes causalinference.pseudo-lab.com/Causal-Inference-with-Python/. Old links keep working through redirects.
  • Progress saved in the browser (passport, level result, opened materials, web book reading) belongs to the old origin, so returning visitors start fresh once.

After merging

  • Settings → Pages: check the custom domain shows as verified, then turn on Enforce HTTPS once the certificate is issued.
  • Add the new address to the GA stream's URL and to Search Console.

Generated by Claude Code

Publishes a CNAME for the new address and points canonical URLs, Open
Graph tags, structured data, robots.txt, the sitemap and Builder pages
at it. Merge only after the DNS record is in place.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant