@clarusjs/theme-docs 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/layout.tscl +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarusjs/theme-docs",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "A docs theme for clarusjs: layout with header, sidebar, content and on-this-page, design tokens, dark mode, copy buttons and callouts.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "peerDependencies": {
19
- "clarusjs": "^0.16.0"
19
+ "clarusjs": "^0.18.0"
20
20
  },
21
21
  "engines": {
22
22
  "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@tailwindcss/cli": "4.3.5",
42
42
  "@types/node": "^26.6.6",
43
- "clarusjs": "^0.16.0",
43
+ "clarusjs": "^0.18.0",
44
44
  "tailwindcss": "4.3.5",
45
45
  "typescript": "^7.0.2",
46
46
  "vite": "^8.3.8",
package/src/layout.tscl CHANGED
@@ -7,7 +7,7 @@
7
7
  @import pageHead from './page-head.tscl'
8
8
  @import siteHeader from './parts/header.tscl'
9
9
  @import docsSidebar from './parts/sidebar.tscl'
10
- @import contents from './parts/contents.tscl'
10
+ @import pageContents from './parts/contents.tscl'
11
11
  @import pageFooter from './parts/page-footer.tscl'
12
12
  @import siteFooter from './parts/footer.tscl'
13
13
  @import type { ThemeConfig, Heading } from './nav.ts'
@@ -43,13 +43,13 @@
43
43
  {{-- tabindex -1: the skip link (and navigation) can move focus here. --}}
44
44
  <main class="content" id="content" tabindex="-1">
45
45
  <p class="crumb">{{ crumb(config.sections, path) }}</p>
46
- <contents [headings]="headings" [inline]="true" />
46
+ <pageContents [headings]="headings" [inline]="true" />
47
47
  <slot name="content-top"></slot>
48
48
  <slot />
49
49
  <slot name="content-bottom"></slot>
50
50
  <pageFooter [config]="config" [path]="path" [source]="source" />
51
51
  </main>
52
- <contents [headings]="headings" />
52
+ <pageContents [headings]="headings" />
53
53
  </div>
54
54
  } @else {
55
55
  <main class="content home" id="content" tabindex="-1"><slot /></main>