Skip to content

Commit 4e22a11

Browse files
feat: replace static table of contents with collapsible details in documentation
1 parent 4f98e33 commit 4e22a11

6 files changed

Lines changed: 42 additions & 36 deletions

File tree

docs/api-reference.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /api-reference
1313
Complete API documentation for the ComputeKit core library.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

docs/examples.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /examples
1313
Real-world examples demonstrating ComputeKit's capabilities.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

docs/getting-started.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /getting-started
1313
Get up and running with ComputeKit in just a few minutes.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

docs/react-hooks.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /react-hooks
1313
ComputeKit provides purpose-built React hooks for seamless integration.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

docs/react-query.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /react-query
1313
Seamlessly integrate ComputeKit with TanStack React Query.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

docs/wasm.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ permalink: /wasm
1313
Use WASM for native-speed performance in your compute functions.
1414
{: .fs-6 .fw-300 }
1515

16-
## Table of contents
17-
18-
{: .no_toc .text-delta }
19-
20-
1. TOC
21-
{:toc}
16+
<!-- prettier-ignore -->
17+
<details open markdown="block">
18+
<summary>Table of contents</summary>
19+
{: .text-delta }
20+
- TOC
21+
{:toc}
22+
</details>
2223

2324
---
2425

0 commit comments

Comments
 (0)