Skip to content

Commit b80f988

Browse files
authored
chore(docs): improve headers (#22)
* chore(docs): improve headers * fix(pr): improvements * chore(docs): add descriptions
1 parent 6971901 commit b80f988

36 files changed

Lines changed: 108 additions & 3 deletions

apps/website/docs/guide/getting-started/core-concepts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: Core Concepts
3+
description: Learn the core ideas behind ilha — islands, signals, HTML-first rendering, and the builder chain.
34
---
45

6+
# Core Concepts
7+
58
ilha is built around a small set of ideas: islands, signals, HTML-first rendering, and a builder-based API. Once these click, the rest of the library feels straightforward.
69

710
## Islands

apps/website/docs/guide/getting-started/installation.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: Installation
3+
description: Install ilha and start building with official templates for Vite, Hono, Nitro, Elysia, and Electrobun.
34
---
45

6+
# Installation
7+
58
import { PackageManagerTabs } from "@rspress/core/theme";
69

710
ilha can be installed with your package manager of choice.

apps/website/docs/guide/getting-started/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: Introduction
3+
description: An introduction to ilha, a tiny isomorphic island framework with fine-grained signal reactivity.
34
---
45

6+
# Introduction
7+
58
ilha is a tiny, isomorphic island framework for building reactive UI components.
69

710
It lets you render on the server and mount in the browser with fine-grained signal reactivity, without a virtual DOM or compiler overhead. The result is a UI model that stays close to HTML, but still gives you state, events, lifecycle hooks, scoped styles, and hydration when you need them.

apps/website/docs/guide/helpers/context.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: context()
3+
description: Create named global signals to share reactive state across islands without prop drilling.
34
---
45

6+
# Context
7+
58
Creates a named global signal shared across all islands. Identical keys always return the same signal instance, making it the primary way to share reactive state between islands without prop drilling or a separate store.
69

710
## Basic usage

apps/website/docs/guide/helpers/css.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: css``
3+
description: A passthrough tagged template for CSS strings that enables editor tooling and syntax highlighting.
34
---
45

6+
# CSS
7+
58
A passthrough tagged template for CSS strings. It has no runtime effect — its sole purpose is to tell editors and language tools that the content is CSS, enabling syntax highlighting, autocompletion, and formatting.
69

710
## Basic usage

apps/website/docs/guide/helpers/html.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: html``
3+
description: An XSS-safe tagged template for building HTML strings with automatic escaping and signal interpolation.
34
---
45

6+
# HTML
7+
58
An XSS-safe tagged template for building HTML strings. Interpolated values are HTML-escaped by default, making the safe path the default and explicit opt-in required for raw markup.
69

710
## Basic usage

apps/website/docs/guide/helpers/mount.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: mount()
3+
description: Auto-discover and mount ilha islands from the DOM, with support for lazy loading and hydration.
34
---
45

6+
# Mount
7+
58
Auto-discovers all `[data-ilha]` elements in the DOM and mounts the matching island from a registry. This is the recommended way to activate islands on a page, especially when using SSR and hydration.
69

710
## Basic usage

apps/website/docs/guide/helpers/raw.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: raw()
3+
description: Mark strings as trusted HTML to bypass escaping inside html`` templates.
34
---
45

6+
# Raw
7+
58
Marks a string as trusted HTML, bypassing escaping when interpolated inside [`html`](/guide/helpers/html). Use it when you need to inject markup you fully control — icons, pre-rendered fragments, or server-sanitized content.
69

710
## Basic usage

apps/website/docs/guide/island/bind.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: .bind()
3+
description: Two-way bind form elements to state keys or external signals with automatic type coercion.
34
---
45

6+
# Bind
7+
58
Two-way binds a form element to a state key or external signal. When the state changes, the element updates. When the user interacts with the element, the state updates.
69

710
## Basic usage

apps/website/docs/guide/island/css.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
title: .css()
3+
description: Attach scoped styles to an island using CSS @scope rules that stay local and do not leak.
34
---
45

6+
# CSS
7+
58
Attaches scoped styles to the island. Styles are automatically wrapped in a `@scope` rule bounded to the island host, so they apply only within the island and do not leak into child islands.
69

710
## Basic usage

0 commit comments

Comments
 (0)