Skip to content

Commit 203a197

Browse files
authored
feat(website): upgrade from docsome to rspress (#21)
* feat(website): upgrade from docsome to rspress * chore(naming): unify island naming convention to pascal case * chore(docs): let api docs autogenerate on build * chore(ci): update docs workflow * fix(pr): improvements
1 parent d418812 commit 203a197

107 files changed

Lines changed: 5984 additions & 2838 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,9 @@ jobs:
7979
- name: Build Website
8080
run: bun run build
8181
working-directory: apps/website
82-
- name: Build docs
83-
run: bun run docs:build
84-
- name: Move Docs build
85-
run: mv dist/ apps/website/dist/docs/
8682
- name: Upload static files as artifact
8783
uses: actions/upload-pages-artifact@v3
8884
with:
89-
path: apps/website/dist/
85+
path: apps/website/doc_build/
9086
- name: Deploy to GitHub Pages
9187
uses: actions/deploy-pages@v4

.oxlintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"ignorePatterns": ["**/dist/**", "**/node_modules/**"]
3+
"ignorePatterns": ["**/dist/**", "**/node_modules/**"],
4+
"jsPlugins": ["./oxlint-plugin-ilha.js"],
5+
"rules": {
6+
"oxlint-plugin-ilha/pascal-case": "error"
7+
}
48
}

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## `ilha`
44

5+
### 0.2.1 - 2026-04-23
6+
7+
- Removes `type()` helper.
8+
- Adds `.input<{}>()` simple typing instead of `type()` helper.
9+
510
### 0.2.0 - 2026-04-21
611

712
- Adds scoped CSS with client and SSR support
@@ -57,6 +62,10 @@ Initial release of **@ilha/form** — a tiny, typed form binding library for ilh
5762

5863
## `@ilha/router`
5964

65+
### 0.2.1 - 2026-04-23
66+
67+
- Updates Ilha dependency to 0.2.1
68+
6069
### 0.2.0 - 2026-04-21
6170

6271
- Adds route groups - not affecting pathname
@@ -90,9 +99,13 @@ Initial release of **@ilha/router** — a lightweight, isomorphic router for ilh
9099

91100
## `@ilha/store`
92101

102+
### 0.1.2 - 2026-04-23
103+
104+
- Updates Ilha dependency to 0.2.1
105+
93106
### 0.1.1 - 2026-04-21
94107

95-
- Updates Ilha dependency to 0.2
108+
- Updates Ilha dependency to 0.2.0
96109

97110
### 0.1.0 — 2026-04-14
98111

DOCS.md

Lines changed: 0 additions & 960 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Continuous Integration](https://github.com/ilhajs/ilha/actions/workflows/ci.yml/badge.svg)](https://github.com/ilhajs/ilha/actions/workflows/ci.yml)
44
[![NPM Version](https://img.shields.io/npm/v/ilha)](https://www.npmjs.com/package/ilha)
5+
![Bundlephobia](https://badgen.net/bundlephobia/minzip/ilha)
56
[![Discord](https://img.shields.io/discord/1428724223756472373)](https://discord.gg/WnVTMCTz74)
67

78
> Alpha is live
@@ -43,11 +44,13 @@ bun add ilha
4344

4445
Scaffold a project in seconds with one of the official starters:
4546

46-
| Template | Command | Sandbox |
47-
| -------------------------------------------------------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------- |
48-
| [Vite](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/vite) | `npx giget@latest gh:ilhajs/ilha/templates/vite` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/vite) |
49-
| [Hono](https://github.com/ilhajs/ilha/tree/main/templates/hono) | `npx giget@latest gh:ilhajs/ilha/templates/hono` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/hono) |
50-
| [Nitro](https://github.com/ilhajs/ilha/tree/main/templates/nitro) | `npx giget@latest gh:ilhajs/ilha/templates/nitro` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/nitro) |
47+
| Template | Command | Sandbox |
48+
| --------------------------------------------------------------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------- |
49+
| [Vite](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/vite) | `npx giget@latest gh:ilhajs/ilha/templates/vite` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/vite) |
50+
| [Hono](https://github.com/ilhajs/ilha/tree/main/templates/hono) | `npx giget@latest gh:ilhajs/ilha/templates/hono` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/hono) |
51+
| [Nitro](https://github.com/ilhajs/ilha/tree/main/templates/nitro) | `npx giget@latest gh:ilhajs/ilha/templates/nitro` | [Open](https://stackblitz.com/github/ilhajs/ilha/tree/main/templates/nitro) |
52+
| [Elysia](https://github.com/ilhajs/ilha/tree/main/templates/elysia) | `npx giget@latest gh:ilhajs/ilha/templates/elysia` | |
53+
| [Electrobun](https://github.com/ilhajs/ilha/tree/main/templates/electrobun) | `npx giget@latest gh:ilhajs/ilha/templates/electrobun` | |
5154

5255
---
5356

@@ -57,7 +60,7 @@ Place a mount point anywhere in your HTML:
5760

5861
```html
5962
<body>
60-
<div data-ilha="counter"></div>
63+
<div data-ilha="Counter"></div>
6164
</body>
6265
```
6366

@@ -66,19 +69,19 @@ Define your island and mount it:
6669
```ts
6770
import ilha, { html, mount } from "ilha";
6871

69-
const counter = ilha
72+
const Counter = ilha
7073
.state("count", 0)
7174
.on("[data-action=increase]@click", ({ state }) => state.count(state.count() + 1))
7275
.on("[data-action=decrease]@click", ({ state }) => state.count(state.count() - 1))
7376
.render(
7477
({ state }) => html`
75-
<p>Count: ${state.count}</p>
78+
<p>Count: ${state.count()}</p>
7679
<button data-action="increase">Increase</button>
7780
<button data-action="decrease">Decrease</button>
7881
`,
7982
);
8083

81-
mount({ counter });
84+
mount({ Counter });
8285
```
8386

8487
`mount()` auto-discovers every `[data-ilha]` element on the page and activates the matching island.

apps/website/.gitignore

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
95

6+
# Dist
107
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
.ilha
8+
dist/
9+
doc_build/
1510

16-
# Editor directories and files
11+
# IDE
1712
.vscode/*
1813
!.vscode/extensions.json
1914
.idea
20-
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
15+
docs/api

apps/website/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Rspress website
2+
3+
## Setup
4+
5+
Install the dependencies:
6+
7+
```bash
8+
npm install
9+
```
10+
11+
## Get started
12+
13+
Start the dev server:
14+
15+
```bash
16+
npm run dev
17+
```
18+
19+
Build the website for production:
20+
21+
```bash
22+
npm run build
23+
```
24+
25+
Preview the production build locally:
26+
27+
```bash
28+
npm run preview
29+
```

apps/website/docs/_nav.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"text": "Guide",
4+
"link": "/guide/getting-started/introduction",
5+
"activeMatch": "/guide/"
6+
},
7+
{
8+
"text": "Tutorial",
9+
"link": "/tutorial/counter/state",
10+
"activeMatch": "/tutorial/"
11+
},
12+
{
13+
"text": "API",
14+
"link": "/api/",
15+
"activeMatch": "/api/"
16+
}
17+
]

apps/website/docs/guide/_meta.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"type": "dir-section-header",
4+
"name": "getting-started",
5+
"label": "Getting Started"
6+
},
7+
{
8+
"type": "dir-section-header",
9+
"name": "island",
10+
"label": "Island API"
11+
},
12+
{
13+
"type": "dir-section-header",
14+
"name": "helpers",
15+
"label": "Helpers"
16+
},
17+
{
18+
"type": "dir-section-header",
19+
"name": "libraries",
20+
"label": "Libraries"
21+
},
22+
{
23+
"type": "dir-section-header",
24+
"name": "resources",
25+
"label": "Resources"
26+
}
27+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["introduction", "installation", "core-concepts"]

0 commit comments

Comments
 (0)