From cc266af25725fe909367be96b7e0e61356f0085a Mon Sep 17 00:00:00 2001 From: mingrammer Date: Sun, 16 Aug 2026 16:40:07 +0900 Subject: [PATCH] chore(site): add Google Search Console verification tag 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." /> + +