|
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 | + [](https://docs.daily.dev) |
| 6 | + [](https://github.com/dailydotdev/daily/blob/master/LICENSE) |
| 7 | + [](https://github.com/dailydotdev/docs/graphs/contributors) |
| 8 | + [](https://hub.docker.com/r/francescoxx/dailydev-docs) |
| 9 | +</div> |
2 | 10 |
|
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 |
4 | 12 |
|
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. |
6 | 14 |
|
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 |
12 | 16 |
|
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 |
14 | 23 |
|
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 |
18 | 25 |
|
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 |
24 | 32 |
|
25 |
| - Step into the directory: |
26 | 33 | ```bash
|
| 34 | +# Clone the repository |
| 35 | +git clone https://github.com/dailydotdev/docs.git |
27 | 36 | cd docs
|
28 |
| -``` |
29 | 37 |
|
30 |
| - Ensure you are on the correct node version: |
31 |
| -```bash |
| 38 | +# Use correct Node version (if using nvm) |
32 | 39 | nvm use
|
| 40 | + |
| 41 | +# Install dependencies |
| 42 | +npm install |
| 43 | + |
| 44 | +# Start development server |
| 45 | +npm start |
33 | 46 | ```
|
34 | 47 |
|
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 | |
39 | 60 |
|
40 |
| -# or with yarn |
41 |
| -yarn |
| 61 | +## 🐳 Docker Development |
42 | 62 |
|
43 |
| -# or with pnpm |
44 |
| -pnpm i |
| 63 | +### Using Docker Compose |
| 64 | +```bash |
| 65 | +docker compose up --build |
45 | 66 | ```
|
46 | 67 |
|
47 |
| - Run the local dev environment: |
| 68 | +### Using Pre-built Image |
48 | 69 | ```bash
|
49 |
| -# with npm |
50 |
| -npm run start |
| 70 | +docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3 |
| 71 | +``` |
51 | 72 |
|
52 |
| -# or with yarn |
53 |
| -yarn start |
| 73 | +Both methods serve the site on `http://localhost:3000`. |
54 | 74 |
|
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 |
58 | 85 |
|
59 |
| - Now Visit: |
60 | 86 | ```
|
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 |
62 | 96 | ```
|
63 | 97 |
|
64 |
| -## 🚀 Deployment |
| 98 | +## 🤝 Contributing |
65 | 99 |
|
66 |
| -- Build the project: |
| 100 | +We welcome contributions from the community! Here's how you can help: |
67 | 101 |
|
68 |
| -```bash |
69 |
| -# with npm |
70 |
| -npm run build |
| 102 | +### 📝 Documentation Contributions |
71 | 103 |
|
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 |
74 | 109 |
|
75 |
| -# or with pnpm |
76 |
| -pnpm build |
77 |
| -``` |
78 |
| -- Run the server: |
| 110 | +### 🐛 Bug Reports & Feature Requests |
79 | 111 |
|
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 |
83 | 115 |
|
84 |
| -# or with yarn |
85 |
| -yarn serve |
| 116 | +### 📋 Contribution Guidelines |
86 | 117 |
|
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 |
91 | 122 |
|
92 |
| -## 🐳 Deployment with Docker |
| 123 | +## 🔧 Troubleshooting |
93 | 124 |
|
94 |
| -From the folder where the docker-compose.yml file is located, type: |
| 125 | +### Common Issues |
95 | 126 |
|
| 127 | +**Node version conflicts:** |
96 | 128 | ```bash
|
97 |
| -docker compose up --build |
| 129 | +nvm use # Use the version specified in .nvmrc |
98 | 130 | ```
|
99 |
| -The server is available by default on port `3000`. |
100 | 131 |
|
101 |
| -## 🍿 Test |
| 132 | +**Port already in use:** |
102 | 133 | ```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 |
104 | 141 | ```
|
105 | 142 |
|
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 |
111 | 156 |
|
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). |
114 | 158 |
|
115 |
| -## ⭐️ One more thing |
| 159 | +--- |
116 | 160 |
|
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