From e9b9065238dae35f9c240acbf4d5fa125867456d Mon Sep 17 00:00:00 2001 From: Bryant Date: Fri, 26 Jun 2026 12:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(docs):=20Stop=20GitHub=20releas?= =?UTF-8?q?es/latest=20404=20from=20repo=20source=20facts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Override Material's partials/source.html to drop the `data-md-component="source"` marker. Material's bundled JS fetches GitHub "source facts" (stars, forks, latest release) for that element; this repo publishes no GitHub Releases, so the latest-release lookup (GET api.github.com/repos/ai-agent-assembly/python-sdk/releases/latest) 404s on every page load as an uncaught console error. The override keeps the repository link, icon and name but issues no unauthenticated GitHub API call, removing the 404 and the anonymous rate-limit exposure. Verified with a headless-Chromium load of the rebuilt site (index and a deep page): zero page errors and zero console errors. The companion new URL("{{ base_url }}") TypeError is already fixed on master by the existing outdated.html override; this rebuild/redeploy clears it from the stale live deployment too. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_019mSz31RysZF6DYToUoBWLf --- docs/_overrides/partials/source.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/_overrides/partials/source.html diff --git a/docs/_overrides/partials/source.html b/docs/_overrides/partials/source.html new file mode 100644 index 0000000..45de87d --- /dev/null +++ b/docs/_overrides/partials/source.html @@ -0,0 +1,24 @@ +{#- + Override of Material's partials/source.html (AAASM-3785). + + For any element marked `data-md-component="source"`, Material's bundled JS + fetches GitHub "source facts" — stars, forks and the latest release tag — + via the public GitHub API. This repository publishes no GitHub Releases, so + the latest-release lookup + (GET https://api.github.com/repos///releases/latest) returns + 404 on every page load and surfaces as an uncaught console error. + + Dropping the `data-md-component="source"` marker keeps the repository link, + icon and name but stops Material from issuing any unauthenticated GitHub API + call, which removes the 404 (and the anonymous rate-limit exposure). The rest + of the markup is identical to Material's generated partial. +-#} + +
+ {% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %} + {% include ".icons/" ~ icon ~ ".svg" %} +
+
+ {{ config.repo_name }} +
+