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." /> + +