Skip to content

Commit b2b96a2

Browse files
committed
fix builds
1 parent 3ac3adc commit b2b96a2

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

src/middleware/legacy-routes-redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const LEGACY_ROUTES = {
165165
"/guides/how-to-guides/routing-in-solid/solid-router":
166166
"/routing/installation-and-setup",
167167
"/guides/tutorials/getting-started-with-solid/installing-solid":
168-
"/quick-start",
168+
"/getting-started/quick-start",
169169
"/references/concepts/reactivity": "/concepts/intro-to-reactivity",
170170
"/references/concepts/reactivity/tracking":
171171
"/concepts/intro-to-reactivity#subscribers",

src/routes/components/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title": "Components",
3-
"pages": ["intro.mdx", "how-to"]
3+
"pages": ["intro.mdx", "how-to", "basics.mdx", "props.mdx"]
44
}

src/routes/data.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "root",
33
"pages": [
44
"index.mdx",
5-
"intro.mdx",
65
"getting-started",
76
"reactivity",
87
"components",

src/routes/getting-started/installation.mdx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ This approach provides full control over your project setup and configuration.
88

99
To see how to get started quickly, check out the [Quick Start Guide](/getting-started/quick-start).
1010

11-
## 1. Create Project Directory
11+
## Manual Setup Guide
12+
13+
### 1. Create Project Directory
1214

1315
Create a new directory for your project and navigate into it:
1416

@@ -17,7 +19,7 @@ mkdir solid-project
1719
cd solid-project
1820
```
1921

20-
## 2. Initialize Package Configuration
22+
### 2. Initialize Package Configuration
2123

2224
Create a `package.json` file to manage dependencies and scripts:
2325

@@ -37,7 +39,7 @@ yarn init -y
3739
bun init
3840
```
3941

40-
## 3. Install Solid and Build Tools
42+
### 3. Install Solid and Build Tools
4143

4244
Install Solid as a dependency:
4345

@@ -52,7 +54,7 @@ Vite is the recommended build tool for Solid projects due to its speed and ease
5254
vite vite-plugin-solid
5355
```
5456

55-
## 4. Configure Vite
57+
### 4. Configure Vite
5658

5759
To configure Vite for Solid, create a `vite.config.js` file in your project root:
5860

@@ -71,7 +73,7 @@ export default defineConfig({
7173
});
7274
```
7375

74-
## 5. Create HTML Template
76+
### 5. Create HTML Template
7577

7678
Create an `index.html` file in your project root:
7779

@@ -92,7 +94,7 @@ Create an `index.html` file in your project root:
9294
</html>
9395
```
9496

95-
## 6. Create Source Directory and Files
97+
### 6. Create Source Directory and Files
9698

9799
Create the source directory and core application files:
98100

@@ -147,7 +149,7 @@ body {
147149
}
148150
```
149151

150-
## 7. Add Build Scripts
152+
### 7. Add Build Scripts
151153

152154
Update your `package.json` to include the following scripts:
153155
- `dev` - Start the development server
@@ -168,30 +170,26 @@ Update your `package.json` to include the following scripts:
168170
}
169171
```
170172

171-
## 8. Start Development Server
173+
### 8. Start Development Server
172174

173175
```package-run
174176
dev
175177
```
176178

177-
## 9. Open in Browser
179+
### 9. Open in Browser
178180

179181
The development server will start on `http://localhost:3000`. Open this URL in your browser and begin developing your Solid application!
180182

181-
## TypeScript Setup (Optional)
183+
## TypeScript Setup
182184

183185
To add TypeScript support to your project:
184186

185187
### 1. Install TypeScript Dependencies
186188

187-
```package-dev
189+
```package-install-dev
188190
typescript
189191
```
190192

191-
```sh title="npm" tab="package-manager"
192-
npm install --save-dev typescript
193-
```
194-
195193
### 2. Create TypeScript Configuration
196194

197195
Create a `tsconfig.json` file in your project root to configure TypeScript:
@@ -229,7 +227,7 @@ Rename your source files:
229227

230228
In addition to updating the file extensions, ensure that your import statements reflect the new file types in the `index.html` file:
231229

232-
```html
230+
```html title="index.html"
233231
<script src="/src/index.tsx" type="module"></script>
234232
```
235233

src/ui/layout/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const Hero: Component = () => {
3030
if (isMeta()) {
3131
return "solid-meta/getting-started/installation-and-setup";
3232
}
33-
return "/quick-start";
33+
return "/getting-started/quick-start";
3434
});
3535

3636
const i18n = useI18n();

0 commit comments

Comments
 (0)