Skip to content

Commit 14d1517

Browse files
authored
feat: Better readme (#467)
1 parent 6ce5652 commit 14d1517

File tree

1 file changed

+127
-74
lines changed

1 file changed

+127
-74
lines changed

README.md

Lines changed: 127 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,170 @@
1-
# 📝 The official daily.dev Documentation
1+
<div align="center">
2+
<h1>📚 daily.dev Documentation</h1>
3+
<p>The official documentation site for daily.dev - built with Docusaurus 3</p>
4+
5+
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fdocs.daily.dev&label=docs.daily.dev)](https://docs.daily.dev)
6+
[![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](https://github.com/dailydotdev/daily/blob/master/LICENSE)
7+
[![Contributors](https://img.shields.io/github/contributors/dailydotdev/docs)](https://github.com/dailydotdev/docs/graphs/contributors)
8+
[![Docker](https://img.shields.io/docker/v/francescoxx/dailydev-docs?label=docker)](https://hub.docker.com/r/francescoxx/dailydev-docs)
9+
</div>
210

3-
The [daily.dev docs](https://docs.daily.dev/) are designed to help our community members get the most out of the product. Hope you will find it useful! We welcome your contribution to help us make it better and up-to-date 💜
11+
## 🎯 Overview
412

5-
## 👨‍💻 Contributing
13+
This repository contains the comprehensive documentation for [daily.dev](https://daily.dev), designed to help our community members get the most out of the platform. The documentation covers everything from getting started to advanced features and contribution guidelines.
614

7-
- Contributions make the open source community such an amazing place to learn, inspire, and create.
8-
- Any contributions you make are **truly appreciated**
9-
- Provide clear documentation
10-
- Create descriptive pull requests
11-
- Test your changes
15+
### ✨ Key Features
1216

13-
## 💻 Development
17+
- **📖 Comprehensive Guides**: Complete coverage of daily.dev features and functionality
18+
- **🔍 Algolia Search**: Fast, integrated search across all documentation
19+
- **🌙 Dark/Light Mode**: Theme toggle for comfortable reading
20+
- **📱 Responsive Design**: Optimized for all devices
21+
- **✏️ Edit Links**: Direct GitHub integration for community contributions
22+
- **🚀 Fast Performance**: Built with Docusaurus 3 for optimal speed
1423

15-
1. Fork the project: Click the gray `Fork` button in the top right of this page. This creates _your_ copy of the project and saves it as a new repository in your github account
16-
2. Click on the green `Code` button, then either the HTTPS or SSH option and, click the icon to copy the URL. Now you have a copy of the project. Thus, you can play around with it locally on your computer.
17-
3. Run the following commands into a terminal window (Command Prompt, Powershell, Terminal, Git Bash, ZSH):
24+
## 🚀 Quick Start
1825

19-
Do this to download the forked copy of this repository to your computer:
20-
21-
```bash
22-
git clone https://github.com/dailydotdev/docs.git
23-
```
26+
### Prerequisites
27+
28+
- **Node.js**: v18.0 or higher
29+
- **npm**: v7.0 or higher (or yarn/pnpm equivalent)
30+
31+
### Development Setup
2432

25-
Step into the directory:
2633
```bash
34+
# Clone the repository
35+
git clone https://github.com/dailydotdev/docs.git
2736
cd docs
28-
```
2937

30-
Ensure you are on the correct node version:
31-
```bash
38+
# Use correct Node version (if using nvm)
3239
nvm use
40+
41+
# Install dependencies
42+
npm install
43+
44+
# Start development server
45+
npm start
3346
```
3447

35-
Install the dependencies:
36-
```bash
37-
# with npm
38-
npm i
48+
The site will be available at `http://localhost:3000` with hot reload enabled.
49+
50+
## 📋 Available Scripts
51+
52+
| Command | Description |
53+
|---------|-------------|
54+
| `npm start` | Start development server |
55+
| `npm run build` | Build for production |
56+
| `npm run serve` | Serve built site locally |
57+
| `npm run clear` | Clear Docusaurus cache |
58+
| `npm run docker:compose` | Build and run with Docker Compose |
59+
| `npm run docker:run` | Run pre-built Docker image |
3960

40-
# or with yarn
41-
yarn
61+
## 🐳 Docker Development
4262

43-
# or with pnpm
44-
pnpm i
63+
### Using Docker Compose
64+
```bash
65+
docker compose up --build
4566
```
4667

47-
Run the local dev environment:
68+
### Using Pre-built Image
4869
```bash
49-
# with npm
50-
npm run start
70+
docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
71+
```
5172

52-
# or with yarn
53-
yarn start
73+
Both methods serve the site on `http://localhost:3000`.
5474

55-
# or with pnpm
56-
pnpm start
57-
```
75+
## 🏗️ Architecture
76+
77+
This documentation site is built using modern web technologies:
78+
79+
- **[Docusaurus 3](https://docusaurus.io/)**: Static site generator with React-based theming
80+
- **[React 18](https://reactjs.org/)**: Component framework for interactive elements
81+
- **[MDX](https://mdxjs.com/)**: Markdown with JSX support for rich documentation
82+
- **[Algolia Search](https://www.algolia.com/)**: Fast, integrated search functionality
83+
84+
### 📁 Project Structure
5885

59-
Now Visit:
6086
```
61-
http://localhost:3000
87+
docs/
88+
├── docs/ # Documentation content (Markdown files)
89+
├── src/
90+
│ ├── components/ # React components
91+
│ ├── pages/ # Custom pages
92+
│ └── css/ # Global styles
93+
├── static/ # Static assets (images, icons)
94+
├── docusaurus.config.js # Site configuration
95+
└── sidebars.js # Navigation structure
6296
```
6397

64-
## 🚀 Deployment
98+
## 🤝 Contributing
6599

66-
- Build the project:
100+
We welcome contributions from the community! Here's how you can help:
67101

68-
```bash
69-
# with npm
70-
npm run build
102+
### 📝 Documentation Contributions
71103

72-
# or with yarn
73-
yarn build
104+
1. **Fork** the repository
105+
2. **Create** a new branch for your changes
106+
3. **Edit** or add documentation in the `docs/` directory
107+
4. **Test** your changes locally with `npm start`
108+
5. **Submit** a pull request with a clear description
74109

75-
# or with pnpm
76-
pnpm build
77-
```
78-
- Run the server:
110+
### 🐛 Bug Reports & Feature Requests
79111

80-
```bash
81-
# with npm
82-
npm run serve
112+
- Use [GitHub Issues](https://github.com/dailydotdev/docs/issues) to report bugs or request features
113+
- Provide detailed information and steps to reproduce
114+
- Include screenshots when applicable
83115

84-
# or with yarn
85-
yarn serve
116+
### 📋 Contribution Guidelines
86117

87-
# or with pnpm
88-
pnpm serve
89-
```
90-
The server is available by default on port `3000`.
118+
- **Clear Documentation**: Write clear, concise, and helpful content
119+
- **Consistent Style**: Follow existing formatting and tone
120+
- **Test Changes**: Ensure your changes work locally before submitting
121+
- **Descriptive PRs**: Include meaningful commit messages and PR descriptions
91122

92-
## 🐳 Deployment with Docker
123+
## 🔧 Troubleshooting
93124

94-
From the folder where the docker-compose.yml file is located, type:
125+
### Common Issues
95126

127+
**Node version conflicts:**
96128
```bash
97-
docker compose up --build
129+
nvm use # Use the version specified in .nvmrc
98130
```
99-
The server is available by default on port `3000`.
100131

101-
## 🍿 Test
132+
**Port already in use:**
102133
```bash
103-
docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
134+
npm start -- --port 3001 # Use a different port
135+
```
136+
137+
**Build errors:**
138+
```bash
139+
npm run clear # Clear Docusaurus cache
140+
npm install # Reinstall dependencies
104141
```
105142

106-
## 🙏 Thanks to all Contributors
107-
Thanks a lot for spending your time in helping daily.dev grow. Thanks a lot! ❤️
108-
<a href = "https://github.com/dailydotdev/docs/graphs/contributors">
109-
<img src = "https://contrib.rocks/image?repo=dailydotdev/docs" alt="Contributors to daily.dev docs"/>
110-
</a>
143+
### Getting Help
144+
145+
- Check existing [Issues](https://github.com/dailydotdev/docs/issues)
146+
- Join our [Discord community](https://discord.gg/daily-dev)
147+
- Visit [daily.dev](https://daily.dev) for general support
148+
149+
## Thank you to our contributors!
150+
151+
<div align="center">
152+
<img src="https://contrib.rocks/image?repo=dailydotdev/docs" alt="Contributors" />
153+
</div>
154+
155+
## 📄 License
111156

112-
## 📑 License
113-
Licensed under [AGPL-3.0](https://github.com/dailydotdev/daily/blob/master/LICENSE).
157+
This project is licensed under the [AGPL-3.0 License](https://github.com/dailydotdev/daily/blob/master/LICENSE).
114158

115-
## ⭐️ One more thing
159+
---
116160

117-
Don't forget to leave us a star ⭐️
161+
<div align="center">
162+
<p>Made with ❤️ by the daily.dev team and community</p>
163+
<p>
164+
<a href="https://daily.dev">Website</a> •
165+
<a href="https://docs.daily.dev">Documentation</a> •
166+
<a href="https://twitter.com/dailydotdev">Twitter</a>
167+
</p>
168+
169+
**Don't forget to ⭐ this repository if you found it helpful!**
170+
</div>

0 commit comments

Comments
 (0)