@krate/simple-docs-theme 0.5.0-beta.1 → 0.5.0-beta.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krate/simple-docs-theme",
3
- "version": "0.5.0-beta.1",
3
+ "version": "0.5.0-beta.3",
4
4
  "description": "A zero-JS Krate docs theme built on CSS signals and native HTML disclosures.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -32,8 +32,8 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@krate/plugin": "0.5.0-beta.1",
36
- "@krate/runtime": "0.5.0-beta.1"
35
+ "@krate/runtime": "0.5.0-beta.3",
36
+ "@krate/plugin": "0.5.0-beta.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "^5.5.0"
package/src/index.ts CHANGED
@@ -34,6 +34,7 @@ export function simpleDocsTheme(options: SimpleDocsThemeOptions = {}) {
34
34
  name: "@krate/simple-docs-theme",
35
35
  module: new URL("./layout.tsx", import.meta.url).href,
36
36
  options,
37
+ titleSlot: true,
37
38
  });
38
39
  }
39
40
 
package/src/layout.tsx CHANGED
@@ -151,6 +151,9 @@ export default function SimpleDocsLayout(props: DocsLayoutProps) {
151
151
  <main class="simple-main" id="main">
152
152
  <Breadcrumbs items={props.breadcrumbs} />
153
153
 
154
+ {props.titleHTML && !isHero && (
155
+ <div class="simple-content simple-title" dangerouslySetInnerHTML={{ __html: props.titleHTML }} />
156
+ )}
154
157
  {props.description && !isHero && <p class="simple-description">{props.description}</p>}
155
158
 
156
159
  {isHero && (