From 1ed8ced02c0bfbeaaf8a3a9b2347cff8a0f2b91f Mon Sep 17 00:00:00 2001 From: TheFlow Date: Mon, 9 Feb 2026 10:24:43 +1300 Subject: [PATCH] fix: Fix docs-viewer prose styling and query param routing - Replace broken @apply directives with plain CSS (Tailwind @apply is build-time only, was silently failing in browser diff --git a/public/js/docs-viewer-app.js b/public/js/docs-viewer-app.js index 1b5543c1..a81116e9 100644 --- a/public/js/docs-viewer-app.js +++ b/public/js/docs-viewer-app.js @@ -24,8 +24,10 @@ async function loadNavigation() { // Setup routing router .on('/docs-viewer.html', async () => { - // Show default document - await viewer.render('introduction-to-the-tractatus-framework'); + // Check for ?slug= query parameter first + const urlParams = new URLSearchParams(window.location.search); + const slug = urlParams.get('slug'); + await viewer.render(slug || 'introduction-to-the-tractatus-framework'); }) .on('/docs/:slug', async (params) => { await viewer.render(params.slug);