From 3b287ba8223178a6785ed20f366db5e8a065dca4 Mon Sep 17 00:00:00 2001 From: emrberk Date: Fri, 31 Oct 2025 11:16:28 +0300 Subject: [PATCH] Create inline ToC with component --- documentation/why-questdb.md | 10 ++++++---- src/css/_global.css | 6 ++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/documentation/why-questdb.md b/documentation/why-questdb.md index d399770ba..840a7573a 100644 --- a/documentation/why-questdb.md +++ b/documentation/why-questdb.md @@ -7,13 +7,15 @@ description: import { Clients } from '../src/components/Clients' import Screenshot from "@theme/Screenshot" +import TOCInline from '@theme/TOCInline'; This pages provides a brief overview on: -- [Top QuestDB features](#features) -- [Benefits of QuestDB](#benefits) -- [Where to next?](#next-up) -- [Support](#support) +
diff --git a/src/css/_global.css b/src/css/_global.css index 4fc41319f..0d1a33cae 100644 --- a/src/css/_global.css +++ b/src/css/_global.css @@ -222,6 +222,12 @@ html[data-theme="dark"] .DocSearch { z-index: 1; } +[class^="tableOfContentsInline"] { + .table-of-contents { + border-left: none; + } +} + .markdown table code { display: inline-block; max-width: 25ch;