Diagrams Playground
++ Write diagrams code in Python and see the rendered cloud architecture diagram + instantly — right in your browser, with nothing to install. +
++ Loading the playground… +
+ ++ Documentation + · + GitHub +
+diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index 8eb8c111..e0be8d6f 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -69,6 +69,23 @@ jobs:
mkdir -p _site/playground
cp -a playground/dist/. _site/playground/
test -f _site/CNAME || echo "diagrams.mingrammer.com" > _site/CNAME
+ # Docusaurus only lists its own pages, so add the playground to the
+ # sitemap it generated.
+ python3 - <<'PY'
+ from pathlib import Path
+
+ sitemap = Path("_site/sitemap.xml")
+ entry = (
+ "
+ Write diagrams code in Python and see the rendered cloud architecture diagram + instantly — right in your browser, with nothing to install. +
++ Loading the playground… +
+ ++ Documentation + · + GitHub +
+