From bed09d2e787c12d5874aff3534438649816ad3e8 Mon Sep 17 00:00:00 2001 From: Bao Zhiyuan Date: Mon, 13 Jan 2025 10:29:46 +0800 Subject: [PATCH] adjust darkmode of toc --- moonbit-tour/build/scan-tour.ts | 8 +++-- moonbit-tour/index.html | 12 +++---- moonbit-tour/src/router.ts | 2 +- moonbit-tour/src/toc.ts | 59 +++++++++++++++++++++++++++++---- 4 files changed, 64 insertions(+), 17 deletions(-) diff --git a/moonbit-tour/build/scan-tour.ts b/moonbit-tour/build/scan-tour.ts index f7b427c6..e0784254 100644 --- a/moonbit-tour/build/scan-tour.ts +++ b/moonbit-tour/build/scan-tour.ts @@ -76,16 +76,18 @@ function generateTOC(chapters: Chapter[]): { markdown: string; code: string } { function renderTOC(chapters: Chapter[]): string { const lines: string[] = []; - lines.push(`