From 364c61d47884bc0718d07f932f7c1772e82c42b1 Mon Sep 17 00:00:00 2001 From: MinJae Kwon Date: Sun, 16 Aug 2026 21:05:38 +0900 Subject: [PATCH] chore(site): add Google Search Console verification tag (#1247) Docusaurus 1.x has no config hook for arbitrary tags, and the verifier reads the served HTML without running JS, so the homepage tag is injected during the deploy assemble step. The playground ships it in its own index.html, in case /playground/ is registered as a separate property. Co-authored-by: Claude Opus 5 --- .github/workflows/deploy-site.yml | 16 ++++++++++++++++ playground/index.html | 3 +++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index e0be8d6f..9efca242 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -85,6 +85,22 @@ jobs: print("added playground to sitemap") else: print("playground already in sitemap") + + # Google Search Console ownership check. Docusaurus 1.x has no + # config hook for arbitrary tags, and the verifier reads the + # served HTML without running JS, so the tag is injected into the + # built homepage here. + verification = ( + '' + ) + home = Path("_site/index.html") + html = home.read_text() + if "google-site-verification" not in html: + home.write_text(html.replace("", "" + verification, 1)) + print("added Search Console verification to homepage") + else: + print("verification tag already present") PY - name: Deploy to gh-pages diff --git a/playground/index.html b/playground/index.html index 3f26a4dc..282ecb37 100644 --- a/playground/index.html +++ b/playground/index.html @@ -9,6 +9,9 @@ content="Run the Python diagrams library online. Write Diagram as Code in your browser and render AWS, Azure, GCP and Kubernetes architecture diagrams — no install required." /> + +