leex279 codacus commited on
Commit
6bf36a9
·
unverified ·
1 Parent(s): 4fd5040

docs: bugfix/formatting faq docs (#1027)

Browse files

* fixed formatting of faq and enhanced styling

* save

* did further improvements and fixing the sidebar

---------

Co-authored-by: Anirban Kar <[email protected]>

app/components/chat/chatExportAndImport/ImportButtons.tsx CHANGED
@@ -31,6 +31,7 @@ export function ImportButtons(importChat: ((description: string, messages: Messa
31
  if (Array.isArray(data.messages)) {
32
  await importChat(data.description || 'Imported Chat', data.messages);
33
  toast.success('Chat imported successfully');
 
34
  return;
35
  }
36
 
 
31
  if (Array.isArray(data.messages)) {
32
  await importChat(data.description || 'Imported Chat', data.messages);
33
  toast.success('Chat imported successfully');
34
+
35
  return;
36
  }
37
 
app/components/settings/data/DataTab.tsx CHANGED
@@ -233,7 +233,9 @@ export default function DataTab() {
233
  event.target.value = '';
234
  };
235
 
236
- const processChatData = (data: any): Array<{
 
 
237
  id: string;
238
  messages: Message[];
239
  description: string;
@@ -242,23 +244,25 @@ export default function DataTab() {
242
  // Handle Bolt standard format (single chat)
243
  if (data.messages && Array.isArray(data.messages)) {
244
  const chatId = crypto.randomUUID();
245
- return [{
246
- id: chatId,
247
- messages: data.messages,
248
- description: data.description || 'Imported Chat',
249
- urlId: chatId
250
- }];
 
 
251
  }
252
 
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
- }
262
 
263
  console.error('No matching format found for:', data);
264
  throw new Error('Unsupported chat format');
@@ -296,6 +300,7 @@ export default function DataTab() {
296
  } else {
297
  toast.error('Failed to import chats');
298
  }
 
299
  console.error(error);
300
  }
301
  };
 
233
  event.target.value = '';
234
  };
235
 
236
+ const processChatData = (
237
+ data: any,
238
+ ): Array<{
239
  id: string;
240
  messages: Message[];
241
  description: string;
 
244
  // Handle Bolt standard format (single chat)
245
  if (data.messages && Array.isArray(data.messages)) {
246
  const chatId = crypto.randomUUID();
247
+ return [
248
+ {
249
+ id: chatId,
250
+ messages: data.messages,
251
+ description: data.description || 'Imported Chat',
252
+ urlId: chatId,
253
+ },
254
+ ];
255
  }
256
 
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
+ }
266
 
267
  console.error('No matching format found for:', data);
268
  throw new Error('Unsupported chat format');
 
300
  } else {
301
  toast.error('Failed to import chats');
302
  }
303
+
304
  console.error(error);
305
  }
306
  };
docs/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
  .venv
2
- site/
 
 
1
  .venv
2
+ site/
3
+ .python-version
docs/.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.12.0
docs/docs/FAQ.md CHANGED
@@ -1,77 +1,95 @@
1
  # Frequently Asked Questions (FAQ)
2
 
3
- ## What are the best models for bolt.diy?
4
 
5
- For the best experience with bolt.diy, we recommend using the following models:
 
6
 
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
 
12
 
13
- **Note**: Models with less than 7b parameters typically lack the capability to properly interact with bolt!
 
14
 
15
- ## How do I get the best results with bolt.diy?
16
 
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.
 
19
 
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.
22
 
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.
25
 
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."*
29
 
30
- ## How do I contribute to bolt.diy?
31
 
32
- Check out our [Contribution Guide](CONTRIBUTING.md) for more details on how to get involved!
 
33
 
34
- ## What are the future plans for bolt.diy?
 
 
35
 
36
- Visit our [Roadmap](https://roadmap.sh/r/ottodev-roadmap-2ovzo) for the latest updates.
37
- New features and improvements are on the way!
38
 
39
- ## Why are there so many open issues/pull requests?
40
 
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!
42
 
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.
 
44
 
45
- ## How do local LLMs compare to larger models like Claude 3.5 Sonnet for bolt.diy?
46
 
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.
 
48
 
49
- ## Common Errors and Troubleshooting
50
 
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).
55
 
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.
59
 
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.
65
 
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.
68
 
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)
71
 
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
 
75
  ---
76
 
77
- Got more questions? Feel free to reach out or open an issue in our GitHub repo!
 
 
 
 
 
 
 
1
  # Frequently Asked Questions (FAQ)
2
 
3
+ ## Models and Setup
4
 
5
+ ??? question "What are the best models for bolt.diy?"
6
+ For the best experience with bolt.diy, we recommend using the following models:
7
 
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
14
 
15
+ !!! warning
16
+ Models with less than 7b parameters typically lack the capability to properly interact with bolt!
17
 
18
+ ## Best Practices
19
 
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.
23
 
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.
26
 
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.
29
 
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."*
33
 
34
+ ## Project Information
35
 
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!
38
 
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!
42
 
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!
45
 
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.
47
 
48
+ ## Model Comparisons
49
 
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.
52
 
53
+ ## Troubleshooting
54
 
55
+ ??? error "There was an error processing this request"
56
+ This generic error message means something went wrong. Check both:
57
 
58
+ - The terminal (if you started the app with Docker or `pnpm`).
59
 
60
+ - The developer console in your browser (press `F12` or right-click > *Inspect*, then go to the *Console* tab).
 
 
 
61
 
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.
65
 
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:
 
 
69
 
70
+ - Check the developer console for errors.
 
71
 
72
+ - Remember, previews are core functionality, so the app isn't broken! We're working on making these errors more transparent.
 
73
 
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>
86
 
87
  ---
88
 
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 CHANGED
@@ -65,4 +65,12 @@ markdown_extensions:
65
  - pymdownx.details
66
  - pymdownx.superfences
67
  - pymdownx.mark
68
- - attr_list
 
 
 
 
 
 
 
 
 
65
  - pymdownx.details
66
  - pymdownx.superfences
67
  - pymdownx.mark
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