@krate/simple-docs-theme 0.5.0-beta.1 → 0.5.0-beta.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.
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/layout.tsx +3 -0
- package/src/theme.css +501 -331
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krate/simple-docs-theme",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.2",
|
|
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.
|
|
36
|
-
"@krate/runtime": "0.5.0-beta.
|
|
35
|
+
"@krate/plugin": "0.5.0-beta.2",
|
|
36
|
+
"@krate/runtime": "0.5.0-beta.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "^5.5.0"
|
package/src/index.ts
CHANGED
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 && (
|