Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ jobs:
publish_dir: ./_site
publish_branch: gh-pages
force_orphan: true
# the hub (and with it every CausalInferenceLab project site) is served at this address
cname: causalinference.pseudo-lab.com
2 changes: 1 addition & 1 deletion article.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta property="og:site_name" content="Causal Inference Hub">
<meta property="og:title" content="연재 | Causal Inference Hub">
<meta property="og:description" content="가짜연구소 인과추론팀 팀원이 쓰는 인과추론 연재입니다.">
<meta property="og:image" content="https://causalinferencelab.github.io/assets/img/og-hub.png">
<meta property="og:image" content="https://causalinference.pseudo-lab.com/assets/img/og-hub.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="assets/img/team-mark.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css" integrity="sha384-/uC/GIvKJ/9RN6i1izHoBY9ubYo60OAsQRNQ3NRFiNsN+N/MVQJHD5OYcZz6wvwn" crossorigin="anonymous">
Expand Down
6 changes: 3 additions & 3 deletions game.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<meta name="description" content="데이터 상황 10개를 보고 상관인지 인과인지 골라 보세요. 2분이면 끝나고, 답마다 관련 웹북 장으로 이어집니다.">
<meta property="og:title" content="상관일까, 인과일까? | Causal Inference Hub">
<meta property="og:description" content="데이터 상황 10개, 2분. 당신의 인과 감각은 몇 점일까요?">
<meta property="og:image" content="https://causalinferencelab.github.io/assets/img/og-game.jpg">
<link rel="canonical" href="https://causalinferencelab.github.io/game.html">
<meta property="og:url" content="https://causalinferencelab.github.io/game.html">
<meta property="og:image" content="https://causalinference.pseudo-lab.com/assets/img/og-game.jpg">
<link rel="canonical" href="https://causalinference.pseudo-lab.com/game.html">
<meta property="og:url" content="https://causalinference.pseudo-lab.com/game.html">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="assets/img/team-mark.png">
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Causal Inference Hub | 가짜연구소 인과추론팀</title>
<meta name="description" content="가짜연구소 인과추론팀의 허브입니다. 2022년부터 함께 만든 인과추론 오픈소스와 Level 0–4 커리큘럼, 3분 레벨 진단, Data Forum 소식을 한곳에 모았습니다.">
<link rel="canonical" href="https://causalinferencelab.github.io/">
<meta property="og:url" content="https://causalinferencelab.github.io/">
<link rel="canonical" href="https://causalinference.pseudo-lab.com/">
<meta property="og:url" content="https://causalinference.pseudo-lab.com/">
<meta property="og:site_name" content="Causal Inference Hub">
<meta property="og:locale" content="ko_KR">
<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "Organization", "@id": "https://causalinferencelab.github.io/#org", "name": "가짜연구소 인과추론팀", "alternateName": ["Pseudo-Lab Causal Inference Team", "Causal-Lab", "CausalInferenceLab", "인과추론팀"], "url": "https://causalinferencelab.github.io/", "logo": "https://causalinferencelab.github.io/assets/img/team-mark.png", "parentOrganization": {"@type": "Organization", "name": "가짜연구소", "alternateName": "Pseudo-Lab", "url": "https://pseudo-lab.com/"}, "sameAs": ["https://github.com/CausalInferenceLab", "https://www.youtube.com/@CausalStudio"]}, {"@type": "WebSite", "@id": "https://causalinferencelab.github.io/#site", "name": "Causal Inference Hub", "alternateName": ["가짜연구소 인과추론팀 허브", "인과추론 허브"], "url": "https://causalinferencelab.github.io/", "inLanguage": "ko", "publisher": {"@id": "https://causalinferencelab.github.io/#org"}}]}</script>
<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "Organization", "@id": "https://causalinference.pseudo-lab.com/#org", "name": "가짜연구소 인과추론팀", "alternateName": ["Pseudo-Lab Causal Inference Team", "Causal-Lab", "CausalInferenceLab", "인과추론팀"], "url": "https://causalinference.pseudo-lab.com/", "logo": "https://causalinference.pseudo-lab.com/assets/img/team-mark.png", "parentOrganization": {"@type": "Organization", "name": "가짜연구소", "alternateName": "Pseudo-Lab", "url": "https://pseudo-lab.com/"}, "sameAs": ["https://github.com/CausalInferenceLab", "https://www.youtube.com/@CausalStudio"]}, {"@type": "WebSite", "@id": "https://causalinference.pseudo-lab.com/#site", "name": "Causal Inference Hub", "alternateName": ["가짜연구소 인과추론팀 허브", "인과추론 허브"], "url": "https://causalinference.pseudo-lab.com/", "inLanguage": "ko", "publisher": {"@id": "https://causalinference.pseudo-lab.com/#org"}}]}</script>
<meta property="og:title" content="Causal Inference Hub | 가짜연구소 인과추론팀">
<meta property="og:description" content="웹북, 영상, 데이터 에이전트, 강의 자료까지. 2022년부터 함께 만든 오픈소스와 자료를 Level 0–4 커리큘럼으로 엮었습니다.">
<meta property="og:image" content="https://causalinferencelab.github.io/assets/img/og-hub.png">
<meta property="og:image" content="https://causalinference.pseudo-lab.com/assets/img/og-hub.png">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="assets/img/team-mark.png">
Expand Down
6 changes: 3 additions & 3 deletions lab.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<meta name="description" content="가상 사용자 800명으로 교란이 단순 비교를 얼마나 속이는지 직접 움직여 보세요. 무작위 배정 하나로 편향이 사라지는 것을 볼 수 있습니다.">
<meta property="og:title" content="교란 실험실 | Causal Inference Hub">
<meta property="og:description" content="슬라이더 두 개로 편향을 만들고, 무작위 배정 하나로 없애 보세요.">
<meta property="og:image" content="https://causalinferencelab.github.io/assets/img/og-lab.jpg">
<link rel="canonical" href="https://causalinferencelab.github.io/lab.html">
<meta property="og:url" content="https://causalinferencelab.github.io/lab.html">
<meta property="og:image" content="https://causalinference.pseudo-lab.com/assets/img/og-lab.jpg">
<link rel="canonical" href="https://causalinference.pseudo-lab.com/lab.html">
<meta property="og:url" content="https://causalinference.pseudo-lab.com/lab.html">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="assets/img/team-mark.png">
Expand Down
6 changes: 3 additions & 3 deletions library.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<meta name="description" content="인과추론과 온라인 실험을 주제별로 공부할 수 있는 자료실입니다. 이중차분법, 성향점수, A/B 테스트, SRM, 분산 감소까지 가짜연구소 인과추론팀의 웹북·영상·코드·발표 자료와 용어집 183개를 한곳에 모았습니다.">
<meta property="og:title" content="인과추론·온라인 실험 자료실 | Causal Inference Hub">
<meta property="og:description" content="주제별 자료 150개와 용어집 183개. 인과추론과 온라인 실험을 무료 자료로 공부하세요.">
<meta property="og:image" content="https://causalinferencelab.github.io/assets/img/og-hub.png">
<link rel="canonical" href="https://causalinferencelab.github.io/library.html">
<meta property="og:url" content="https://causalinferencelab.github.io/library.html">
<meta property="og:image" content="https://causalinference.pseudo-lab.com/assets/img/og-hub.png">
<link rel="canonical" href="https://causalinference.pseudo-lab.com/library.html">
<meta property="og:url" content="https://causalinference.pseudo-lab.com/library.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Causal Inference Hub">
<meta name="twitter:card" content="summary_large_image">
Expand Down
2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://causalinferencelab.github.io/sitemap.xml
Sitemap: https://causalinference.pseudo-lab.com/sitemap.xml
2 changes: 1 addition & 1 deletion scripts/build_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from urllib.parse import urlsplit

ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SITE = "https://causalinferencelab.github.io"
SITE = "https://causalinference.pseudo-lab.com"
ORG = "CausalInferenceLab"


Expand Down
8 changes: 6 additions & 2 deletions scripts/build_sitemap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Write sitemap.xml for the whole causalinferencelab.github.io domain.
"""Write sitemap.xml for the whole causalinference.pseudo-lab.com domain.

The hub owns the domain root, so its sitemap also lists the team's other sites served under it
(the web book, Causal Studio and the rest, from data/repos.json) and every Builder page.
Expand All @@ -10,7 +10,9 @@
from xml.sax.saxutils import escape

ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE = "https://causalinferencelab.github.io/"
BASE = "https://causalinference.pseudo-lab.com/"
# the team's other sites are still recorded under the github.io address, which GitHub now redirects here
OLD = "https://causalinferencelab.github.io/"


def load(name):
Expand All @@ -24,6 +26,8 @@ def main():
urls += [(f"{BASE}builders/{b['slug']}.html", "0.5") for b in load("builders.json") if b.get("slug")]
for r in load("repos.json"):
site = (r.get("site") or "").split("#")[0]
if site.startswith(OLD):
site = BASE + site[len(OLD):]
if site.startswith(BASE) and "." not in site.rstrip("/").rsplit("/", 1)[-1] and not site.endswith("/"):
site += "/"
if site.startswith(BASE) and site != BASE:
Expand Down
2 changes: 1 addition & 1 deletion scripts/builder_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h1>{name}{top}</h1>
<p class="s">{since}</p>
<div class="st"><div><b>{projects}</b>프로젝트</div><div><b>{runners}</b>함께한 러너</div><div><b>{cohorts}</b>기수</div></div>
<p class="f">causalinferencelab.github.io/builders/{slug}</p>
<p class="f">causalinference.pseudo-lab.com/builders/{slug}</p>
</div></body></html>"""


Expand Down