Skip to content

Commit 6bf36a9

Browse files
leex279thecodacus
andauthored
docs: bugfix/formatting faq docs (#1027)
* fixed formatting of faq and enhanced styling * save * did further improvements and fixing the sidebar --------- Co-authored-by: Anirban Kar <[email protected]>
1 parent 4fd5040 commit 6bf36a9

File tree

6 files changed

+100
-66
lines changed

6 files changed

+100
-66
lines changed

app/components/chat/chatExportAndImport/ImportButtons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export function ImportButtons(importChat: ((description: string, messages: Messa
3131
if (Array.isArray(data.messages)) {
3232
await importChat(data.description || 'Imported Chat', data.messages);
3333
toast.success('Chat imported successfully');
34+
3435
return;
3536
}
3637

app/components/settings/data/DataTab.tsx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ export default function DataTab() {
233233
event.target.value = '';
234234
};
235235

236-
const processChatData = (data: any): Array<{
236+
const processChatData = (
237+
data: any,
238+
): Array<{
237239
id: string;
238240
messages: Message[];
239241
description: string;
@@ -242,23 +244,25 @@ export default function DataTab() {
242244
// Handle Bolt standard format (single chat)
243245
if (data.messages && Array.isArray(data.messages)) {
244246
const chatId = crypto.randomUUID();
245-
return [{
246-
id: chatId,
247-
messages: data.messages,
248-
description: data.description || 'Imported Chat',
249-
urlId: chatId
250-
}];
247+
return [
248+
{
249+
id: chatId,
250+
messages: data.messages,
251+
description: data.description || 'Imported Chat',
252+
urlId: chatId,
253+
},
254+
];
251255
}
252256

253-
// Handle Bolt export format (multiple chats)
254-
if (data.chats && Array.isArray(data.chats)) {
255-
return data.chats.map((chat: { id?: string; messages: Message[]; description?: string; urlId?: string; }) => ({
256-
id: chat.id || crypto.randomUUID(),
257-
messages: chat.messages,
258-
description: chat.description || 'Imported Chat',
259-
urlId: chat.urlId,
260-
}));
261-
}
257+
// Handle Bolt export format (multiple chats)
258+
if (data.chats && Array.isArray(data.chats)) {
259+
return data.chats.map((chat: { id?: string; messages: Message[]; description?: string; urlId?: string }) => ({
260+
id: chat.id || crypto.randomUUID(),
261+
messages: chat.messages,
262+
description: chat.description || 'Imported Chat',
263+
urlId: chat.urlId,
264+
}));
265+
}
262266

263267
console.error('No matching format found for:', data);
264268
throw new Error('Unsupported chat format');
@@ -296,6 +300,7 @@ export default function DataTab() {
296300
} else {
297301
toast.error('Failed to import chats');
298302
}
303+
299304
console.error(error);
300305
}
301306
};

docs/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.venv
2-
site/
2+
site/
3+
.python-version

docs/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.0

docs/docs/FAQ.md

Lines changed: 66 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,95 @@
11
# Frequently Asked Questions (FAQ)
22

3-
## What are the best models for bolt.diy?
3+
## Models and Setup
44

5-
For the best experience with bolt.diy, we recommend using the following models:
5+
??? question "What are the best models for bolt.diy?"
6+
For the best experience with bolt.diy, we recommend using the following models:
67

7-
- **Claude 3.5 Sonnet (old)**: Best overall coder, providing excellent results across all use cases
8-
- **Gemini 2.0 Flash**: Exceptional speed while maintaining good performance
9-
- **GPT-4o**: Strong alternative to Claude 3.5 Sonnet with comparable capabilities
10-
- **DeepSeekCoder V2 236b**: Best open source model (available through OpenRouter, DeepSeek API, or self-hosted)
11-
- **Qwen 2.5 Coder 32b**: Best model for self-hosting with reasonable hardware requirements
8+
- **Claude 3.5 Sonnet (old)**: Best overall coder, providing excellent results across all use cases
9+
- **Gemini 2.0 Flash**: Exceptional speed while maintaining good performance
10+
- **GPT-4o**: Strong alternative to Claude 3.5 Sonnet with comparable capabilities
11+
- **DeepSeekCoder V3**: Best open source model (available through OpenRouter, DeepSeek API, or self-hosted)
12+
- **DeepSeekCoder V2 236b**: available through OpenRouter, DeepSeek API, or self-hosted
13+
- **Qwen 2.5 Coder 32b**: Best model for self-hosting with reasonable hardware requirements
1214

13-
**Note**: Models with less than 7b parameters typically lack the capability to properly interact with bolt!
15+
!!! warning
16+
Models with less than 7b parameters typically lack the capability to properly interact with bolt!
1417

15-
## How do I get the best results with bolt.diy?
18+
## Best Practices
1619

17-
- **Be specific about your stack**:
18-
Mention the frameworks or libraries you want to use (e.g., Astro, Tailwind, ShadCN) in your initial prompt. This ensures that bolt.diy scaffolds the project according to your preferences.
20+
??? question "How do I get the best results with bolt.diy?"
21+
- **Be specific about your stack**:
22+
Mention the frameworks or libraries you want to use (e.g., Astro, Tailwind, ShadCN) in your initial prompt. This ensures that bolt.diy scaffolds the project according to your preferences.
1923

20-
- **Use the enhance prompt icon**:
21-
Before sending your prompt, click the *enhance* icon to let the AI refine your prompt. You can edit the suggested improvements before submitting.
24+
- **Use the enhance prompt icon**:
25+
Before sending your prompt, click the *enhance* icon to let the AI refine your prompt. You can edit the suggested improvements before submitting.
2226

23-
- **Scaffold the basics first, then add features**:
24-
Ensure the foundational structure of your application is in place before introducing advanced functionality. This helps bolt.diy establish a solid base to build on.
27+
- **Scaffold the basics first, then add features**:
28+
Ensure the foundational structure of your application is in place before introducing advanced functionality. This helps bolt.diy establish a solid base to build on.
2529

26-
- **Batch simple instructions**:
27-
Combine simple tasks into a single prompt to save time and reduce API credit consumption. For example:
28-
*"Change the color scheme, add mobile responsiveness, and restart the dev server."*
30+
- **Batch simple instructions**:
31+
Combine simple tasks into a single prompt to save time and reduce API credit consumption. For example:
32+
*"Change the color scheme, add mobile responsiveness, and restart the dev server."*
2933

30-
## How do I contribute to bolt.diy?
34+
## Project Information
3135

32-
Check out our [Contribution Guide](CONTRIBUTING.md) for more details on how to get involved!
36+
??? question "How do I contribute to bolt.diy?"
37+
Check out our [Contribution Guide](CONTRIBUTING.md) for more details on how to get involved!
3338

34-
## What are the future plans for bolt.diy?
39+
??? question "What are the future plans for bolt.diy?"
40+
Visit our [Roadmap](https://roadmap.sh/r/ottodev-roadmap-2ovzo) for the latest updates.
41+
New features and improvements are on the way!
3542

36-
Visit our [Roadmap](https://roadmap.sh/r/ottodev-roadmap-2ovzo) for the latest updates.
37-
New features and improvements are on the way!
43+
??? question "Why are there so many open issues/pull requests?"
44+
bolt.diy began as a small showcase project on @ColeMedin's YouTube channel to explore editing open-source projects with local LLMs. However, it quickly grew into a massive community effort!
3845

39-
## Why are there so many open issues/pull requests?
46+
We're forming a team of maintainers to manage demand and streamline issue resolution. The maintainers are rockstars, and we're also exploring partnerships to help the project thrive.
4047

41-
bolt.diy began as a small showcase project on @ColeMedin's YouTube channel to explore editing open-source projects with local LLMs. However, it quickly grew into a massive community effort!
48+
## Model Comparisons
4249

43-
We're forming a team of maintainers to manage demand and streamline issue resolution. The maintainers are rockstars, and we're also exploring partnerships to help the project thrive.
50+
??? question "How do local LLMs compare to larger models like Claude 3.5 Sonnet for bolt.diy?"
51+
While local LLMs are improving rapidly, larger models like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b still offer the best results for complex applications. Our ongoing focus is to improve prompts, agents, and the platform to better support smaller local LLMs.
4452

45-
## How do local LLMs compare to larger models like Claude 3.5 Sonnet for bolt.diy?
53+
## Troubleshooting
4654

47-
While local LLMs are improving rapidly, larger models like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b still offer the best results for complex applications. Our ongoing focus is to improve prompts, agents, and the platform to better support smaller local LLMs.
55+
??? error "There was an error processing this request"
56+
This generic error message means something went wrong. Check both:
4857

49-
## Common Errors and Troubleshooting
58+
- The terminal (if you started the app with Docker or `pnpm`).
5059

51-
### "There was an error processing this request"
52-
This generic error message means something went wrong. Check both:
53-
- The terminal (if you started the app with Docker or `pnpm`).
54-
- The developer console in your browser (press `F12` or right-click > *Inspect*, then go to the *Console* tab).
60+
- The developer console in your browser (press `F12` or right-click > *Inspect*, then go to the *Console* tab).
5561

56-
### "x-api-key header missing"
57-
This error is sometimes resolved by restarting the Docker container.
58-
If that doesn't work, try switching from Docker to `pnpm` or vice versa. We're actively investigating this issue.
62+
??? error "x-api-key header missing"
63+
This error is sometimes resolved by restarting the Docker container.
64+
If that doesn't work, try switching from Docker to `pnpm` or vice versa. We're actively investigating this issue.
5965

60-
### Blank preview when running the app
61-
A blank preview often occurs due to hallucinated bad code or incorrect commands.
62-
To troubleshoot:
63-
- Check the developer console for errors.
64-
- Remember, previews are core functionality, so the app isn't broken! We're working on making these errors more transparent.
66+
??? error "Blank preview when running the app"
67+
A blank preview often occurs due to hallucinated bad code or incorrect commands.
68+
To troubleshoot:
6569

66-
### "Everything works, but the results are bad"
67-
Local LLMs like Qwen-2.5-Coder are powerful for small applications but still experimental for larger projects. For better results, consider using larger models like GPT-4o, Claude 3.5 Sonnet, or DeepSeek Coder V2 236b.
70+
- Check the developer console for errors.
6871

69-
### "Received structured exception #0xc0000005: access violation"
70-
If you are getting this, you are probably on Windows. The fix is generally to update the [Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
72+
- Remember, previews are core functionality, so the app isn't broken! We're working on making these errors more transparent.
7173

72-
### "Miniflare or Wrangler errors in Windows"
73-
You will need to make sure you have the latest version of Visual Studio C++ installed (14.40.33816), more information here https://github.com/stackblitz-labs/bolt.diy/issues/19.
74+
??? error "Everything works, but the results are bad"
75+
Local LLMs like Qwen-2.5-Coder are powerful for small applications but still experimental for larger projects. For better results, consider using larger models like
76+
77+
- GPT-4o
78+
- Claude 3.5 Sonnet
79+
- DeepSeek Coder V2 236b
80+
81+
??? error "Received structured exception #0xc0000005: access violation"
82+
If you are getting this, you are probably on Windows. The fix is generally to update the [Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
83+
84+
??? error "Miniflare or Wrangler errors in Windows"
85+
You will need to make sure you have the latest version of Visual Studio C++ installed (14.40.33816), more information here <a href="https://github.com/stackblitz-labs/bolt.diy/issues/19">Github Issues</a>
7486

7587
---
7688

77-
Got more questions? Feel free to reach out or open an issue in our GitHub repo!
89+
## Get Help & Support
90+
91+
!!! tip "Community Support"
92+
[Join the bolt.diy Community](https://thinktank.ottomator.ai/c/bolt-diy/17){target=_blank} for discussions and help
93+
94+
!!! bug "Report Issues"
95+
[Open an Issue](https://github.com/stackblitz-labs/bolt.diy/issues/19){target=_blank} in our GitHub Repository

docs/mkdocs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,12 @@ markdown_extensions:
6565
- pymdownx.details
6666
- pymdownx.superfences
6767
- pymdownx.mark
68-
- attr_list
68+
- attr_list
69+
- md_in_html
70+
- tables
71+
- def_list
72+
- admonition
73+
- pymdownx.tasklist:
74+
custom_checkbox: true
75+
- toc:
76+
permalink: true

0 commit comments

Comments
 (0)