From 7fc1d5c11ce96d4dd7c48bbeb62c91ff7f1163e4 Mon Sep 17 00:00:00 2001 From: BG-Software <73077398+BG-Software-BG@users.noreply.github.com> Date: Mon, 12 May 2025 22:13:38 +0200 Subject: [PATCH] Fix: Exclude headings in the carousel and modal examples from ToC (#2362) --- .changeset/stale-cherries-draw.md | 5 +++++ docs/eleventy.config.mjs | 2 +- shared/includes/docs/example.html | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/stale-cherries-draw.md diff --git a/.changeset/stale-cherries-draw.md b/.changeset/stale-cherries-draw.md new file mode 100644 index 000000000..ddabbc37d --- /dev/null +++ b/.changeset/stale-cherries-draw.md @@ -0,0 +1,5 @@ +--- +"@tabler/docs": patch +--- + +Fix: Exclude headings in the carousel and modal examples from ToC diff --git a/docs/eleventy.config.mjs b/docs/eleventy.config.mjs index 89d59c6df..2ea770b32 100644 --- a/docs/eleventy.config.mjs +++ b/docs/eleventy.config.mjs @@ -226,7 +226,7 @@ export default function (eleventyConfig) { eleventyConfig.addFilter("toc", function (name) { const toc = []; - const contentWithoutExamples = name.replace(/