From 962edaa34bfef09972cb235132fec1aa250dbcba Mon Sep 17 00:00:00 2001 From: TheFlow Date: Mon, 9 Feb 2026 10:36:18 +1300 Subject: [PATCH] fix: Fix docs-viewer TOC, cache busting, and documentLoaded event - Fix TOC field name mismatch: API returns title/slug but renderTOC read text/id, causing empty bullet points - Dispatch documentLoaded event after async content loads so sidebar TOC rebuilds with actual headings - Update cache-bust version strings to force fresh JS/CSS Co-Authored-By: Claude Opus 4.6 --- public/docs-viewer.html | 16 ++++++++-------- public/js/components/document-viewer.js | 10 ++++++++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/public/docs-viewer.html b/public/docs-viewer.html index 245c7219..819712dc 100644 --- a/public/docs-viewer.html +++ b/public/docs-viewer.html @@ -4,8 +4,8 @@ Documentation - Tractatus Framework - - + +