Skip to content

Commit 018286c

Browse files
committed
Fix : Build of docs
1 parent c2449b0 commit 018286c

File tree

5 files changed

+49
-24
lines changed

5 files changed

+49
-24
lines changed

doc/docs/getting-started/quick-start.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,14 @@ app.static('assets', { prefix: '/static' });
183183

184184
## Next Steps
185185

186-
- Learn more about [Routing](/docs/guides/routing)
187-
- Explore the [API Reference](/docs/api)
188-
- Check out [Example Applications](/docs/examples)
189-
- Learn about [Deployment](/docs/guides/deployment)
190-
- Read about [Best Practices](/docs/guides/best-practices)
186+
- Learn more about [Routing Guide](../guides/routing.md)
187+
- Explore [Static Files Guide](../guides/static-files.md)
188+
- Understand [Error Handling](../guides/error-handling.md)
189+
- Read about [Limitations](../guides/limitations.md)
191190

192191
## Need Help?
193192

194193
If you run into any issues or have questions:
195194

196-
1. Check the [Troubleshooting](/docs/troubleshooting) guide
197-
2. Search the [GitHub Issues](https://github.com/yourusername/hasty-server/issues)
198-
3. [Open a new issue](https://github.com/yourusername/hasty-server/issues/new) if you can't find an answer
195+
1. Search the [GitHub Issues](https://github.com/IntegerAlex/hasty-server/issues)
196+
2. [Open a new issue](https://github.com/IntegerAlex/hasty-server/issues/new) if you can't find an answer

doc/docs/index.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ docs: true
1212
<h1>Build Fast. Learn More.</h1>
1313
<p class="subtitle">A lightweight, educational HTTP server framework built with Node.js</p>
1414
<div class="cta-buttons">
15-
<a href="/docs/getting-started/quick-start" class="button button--primary">Get Started</a>
16-
<a href="/docs/guides/why-hasty" class="button button--secondary">Why Hasty?</a>
15+
<a href="./getting-started/quick-start" class="button button--primary">Get Started</a>
16+
<a href="./guides" class="button button--secondary">Explore the Docs</a>
1717
</div>
1818
</div>
1919
</div>
@@ -31,14 +31,36 @@ docs: true
3131
</div>
3232
<div class="feature">
3333
<h3>🔌 Extensible</h3>
34-
<p>Middleware support and easy to extend for your specific needs.</p>
34+
<p>Middleware support- **Educational**: Designed for learning HTTP server fundamentals.</p>
3535
</div>
3636
<div class="feature">
3737
<h3>🛠️ Zero Dependencies</h3>
3838
<p>Built with pure Node.js, no external dependencies required.</p>
3939
</div>
4040
</div>
4141

42+
## Explore the Docs
43+
44+
<div class="doc-grid">
45+
<div class="doc-card">
46+
<h4>📚 Guides</h4>
47+
<p>Learn how to use Hasty Server effectively</p>
48+
<a href="./guides/routing">Routing Guide →</a>
49+
</div>
50+
51+
<div class="doc-card">
52+
<h4>📁 Static Files</h4>
53+
<p>Serve static assets with Hasty Server</p>
54+
<a href="./guides/static-files">Static Files →</a>
55+
</div>
56+
57+
<div class="doc-card">
58+
<h4>⚠️ Limitations</h4>
59+
<p>Understand what Hasty Server does NOT support</p>
60+
<a href="./guides/limitations">Limitations →</a>
61+
</div>
62+
</div>
63+
4264
## Quick Start
4365

4466
```bash
@@ -50,7 +72,7 @@ const Hasty = require('hasty-server');
5072
const app = new Hasty();
5173

5274
app.get('/', (req, res) => {
53-
res.json({ message: 'Hello, Hasty Server!' });
75+
res.json({ message: 'Hello from Hasty Server!' });
5476
});
5577

5678
app.listen(3000);
@@ -60,17 +82,17 @@ app.listen(3000);
6082

6183
- **Core HTTP Server**: Built on Node.js native `http` module
6284
- **Routing**: Simple and intuitive route definitions
63-
- **Middleware**: Powerful middleware support
85+
- **Educational**: Designed for learning HTTP server fundamentals
6486
- **Static Files**: Built-in static file serving
6587
- **CORS**: Easy CORS configuration
6688
- **Error Handling**: Robust error handling patterns
6789

6890
## Get Started
6991

70-
- [Quick Start](/docs/getting-started/quick-start) - Get up and running in minutes
71-
- [Guides](/docs/guides) - Learn through practical examples
72-
- [API Reference](/docs/api) - Detailed API documentation
73-
- [Examples](/docs/examples) - Ready-to-run example applications
92+
- [Quick Start](./getting-started/quick-start) - Get up and running in minutes
93+
- [Routing Guide](./guides/routing) - Understand route handling
94+
- [Static Files Guide](./guides/static-files) - Serve static assets
95+
- [Limitations Guide](./guides/limitations) - Understand what Hasty Server does NOT support
7496

7597
## Community
7698

doc/docs/intro.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ app.listen(3000, () => {
6464

6565
1. **[Quick Start](./getting-started/quick-start)** - Get up and running in minutes
6666
2. **[Routing Guide](./guides/routing)** - Understand route handling and parameters
67-
3. **[Static Files](./guides/static-files)** - Learn about serving static assets
68-
4. **[Error Handling](./guides/error-handling)** - Handle errors gracefully
69-
5. **[Limitations](./guides/limitations)** - Understand what Hasty Server does NOT support
67+
3. **[Static Files Guide](./guides/static-files)** - Learn about serving static assets
68+
4. **[Error Handling Guide](./guides/error-handling)** - Handle errors gracefully
69+
5. **[Limitations Guide](./guides/limitations)** - Understand what Hasty Server does NOT support
7070

7171
## 🔧 Technical Overview
7272

@@ -111,6 +111,12 @@ Hasty Server provides transparent implementation of:
111111

112112
Ready to dive deeper? Start with our [Quick Start Guide](./getting-started/quick-start) to get your first Hasty Server running in under 5 minutes!
113113

114+
Then explore:
115+
- [Routing Guide](./guides/routing) - Understand route handling
116+
- [Static Files Guide](./guides/static-files) - Learn about serving static assets
117+
- [Error Handling Guide](./guides/error-handling) - Handle errors gracefully
118+
- [Limitations Guide](./guides/limitations) - Understand what Hasty Server does NOT support
119+
114120
---
115121

116122
*Built with ❤️ for the developer community. Hasty Server is open source and welcomes contributions!*

doc/docusaurus.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ const config = {
7676
position: 'left',
7777
label: 'Docs',
7878
},
79-
{ to: '/blog', label: 'Blog', position: 'left' },
8079
{
8180
href: 'https://github.com/IntegerAlex/hasty-server',
8281
label: 'GitHub',
@@ -109,8 +108,8 @@ const config = {
109108
title: 'More',
110109
items: [
111110
{
112-
label: 'Blog',
113-
to: '/blog',
111+
label: 'GitHub',
112+
href: 'https://github.com/IntegerAlex/hasty-server',
114113
},
115114
],
116115
},

doc/sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const sidebars = {
3030
collapsed: true,
3131
items: [
3232
'guides/routing',
33-
'guides/middleware',
33+
3434
'guides/static-files',
3535
'guides/error-handling',
3636
'guides/limitations',

0 commit comments

Comments
 (0)