|
1 | 1 | # AstrNest Documentation |
2 | 2 |
|
3 | | -This is the static documentation site for AstrNest, deployed via GitHub Pages. |
| 3 | +[](https://vitepress.dev/) |
| 4 | +[](https://nodejs.org/) |
| 5 | +[](LICENSE) |
4 | 6 |
|
5 | | -## 📖 About |
| 7 | +Official documentation for AstrNest - A modern image hosting platform built with Spring Boot 3.4.1 and Vue 3.5.24. |
6 | 8 |
|
7 | | -AstrNest is a modern full-stack image hosting platform built with Spring Boot 3.4.1 and Vue 3.5.24. It provides comprehensive image management capabilities with multi-cloud storage support, advanced security features, and a modern user interface. |
| 9 | +## 📖 About AstrNest |
8 | 10 |
|
9 | | -## 🌐 Live Site |
| 11 | +AstrNest is an enterprise-grade image hosting solution that provides: |
10 | 12 |
|
11 | | -Visit the live documentation at: [https://luminous-ChenXi.github.io/astrnest](https://luminous-ChenXi.github.io/astrnest) |
| 13 | +- **Multi-cloud storage** support (Local, Aliyun OSS, Tencent COS) |
| 14 | +- **Modern architecture** with Spring Boot 3.4.1 + Vue 3.5.24 |
| 15 | +- **Enterprise security** with role-based access control |
| 16 | +- **Responsive design** built with Tailwind CSS |
| 17 | +- **Comprehensive API** with RESTful design |
12 | 18 |
|
13 | | -## 📚 Documentation Structure |
| 19 | +## Quick Start |
14 | 20 |
|
15 | | -### Chinese Documentation (中文文档) |
16 | | -- **首页**: `/` - 项目介绍和快速开始 |
17 | | -- **部署指南**: `/deploy/` - 多种部署方式说明 |
18 | | -- **API文档**: `/api/` - 完整的API接口文档 |
19 | | -- **配置指南**: `/config/` - 系统配置说明 |
20 | | -- **常见问题**: `/faq` - 常见问题解答 |
| 21 | +### Prerequisites |
21 | 22 |
|
22 | | -### English Documentation |
23 | | -- **Home**: `/en/` - Project introduction and quick start |
24 | | -- **Deployment Guide**: `/en/deploy/` - Multiple deployment methods |
25 | | -- **API Documentation**: `/en/api/` - Complete API interface documentation |
26 | | -- **Configuration Guide**: `/en/config/` - System configuration instructions |
27 | | -- **FAQ**: `/en/faq` - Frequently asked questions |
| 23 | +- Node.js 18.0 or higher |
| 24 | +- npm 8.0 or higher |
| 25 | +- Git |
28 | 26 |
|
29 | | -## 🚀 Features |
| 27 | +### Installation |
30 | 28 |
|
31 | | -- **Multi-cloud Storage**: Support for local, Alibaba Cloud OSS, Tencent Cloud COS, etc. |
32 | | -- **AI Content Review**: Integrated with Tencent Cloud Data Processing |
33 | | -- **Enterprise Security**: JWT authentication, role-based access control |
34 | | -- **Modern UI**: Built with Vue 3, Element Plus, and Tailwind CSS |
35 | | -- **Complete API Ecosystem**: RESTful APIs with API key authentication |
| 29 | +1. **Clone the repository** |
| 30 | + ```bash |
| 31 | + git clone https://github.com/luminous-ChenXi/astrnest.git |
| 32 | + cd astrnest-docs |
| 33 | + ``` |
36 | 34 |
|
37 | | -## 🔧 Technology Stack |
| 35 | +2. **Install dependencies** |
| 36 | + ```bash |
| 37 | + npm install |
| 38 | + ``` |
38 | 39 |
|
39 | | -### Backend |
40 | | -- Spring Boot 3.4.1 |
41 | | -- Java 21 |
42 | | -- MySQL 5.7+/8.0 |
43 | | -- Spring Security 6 |
| 40 | +3. **Start development server** |
| 41 | + ```bash |
| 42 | + npm run dev |
| 43 | + ``` |
44 | 44 |
|
45 | | -### Frontend |
46 | | -- Vue 3.5.24 |
47 | | -- Vite 5.4.10 |
48 | | -- Element Plus 2.8.6 |
49 | | -- Tailwind CSS 3 |
| 45 | +4. **Open your browser** |
| 46 | + Navigate to `http://localhost:5173` |
| 47 | + |
| 48 | +## Documentation Structure |
| 49 | + |
| 50 | +``` |
| 51 | +astrnest-docs/ |
| 52 | +├── docs/ # Documentation source |
| 53 | +│ ├── .vitepress/ # VitePress configuration |
| 54 | +│ │ ├── config.js # Main configuration |
| 55 | +│ │ └── config/ # Additional config files |
| 56 | +│ ├── public/ # Static assets |
| 57 | +│ ├── zh/ # Chinese documentation |
| 58 | +│ │ ├── index.md # Homepage |
| 59 | +│ │ ├── what-is-project.md |
| 60 | +│ │ ├── quick-start.md |
| 61 | +│ │ ├── faq.md |
| 62 | +│ │ └── api/ # API documentation |
| 63 | +│ └── en/ # English documentation |
| 64 | +│ ├── index.md |
| 65 | +│ ├── what-is-project.md |
| 66 | +│ ├── quick-start.md |
| 67 | +│ ├── faq.md |
| 68 | +│ └── api/ |
| 69 | +├── package.json # Project configuration |
| 70 | +├── .eslintrc.js # ESLint configuration |
| 71 | +├── .prettierrc.json # Prettier configuration |
| 72 | +└── README.md # This file |
| 73 | +``` |
| 74 | + |
| 75 | +## Development Commands |
| 76 | + |
| 77 | +### Development |
| 78 | +```bash |
| 79 | +# Start development server |
| 80 | +npm run dev |
| 81 | + |
| 82 | +# Alternative development command |
| 83 | +npm run docs:dev |
| 84 | +``` |
| 85 | + |
| 86 | +### Build |
| 87 | +```bash |
| 88 | +# Build for production |
| 89 | +npm run build |
| 90 | + |
| 91 | +# Preview production build |
| 92 | +npm run preview |
| 93 | + |
| 94 | +# Serve built documentation |
| 95 | +npm run serve |
| 96 | +``` |
| 97 | + |
| 98 | +### Code Quality |
| 99 | +```bash |
| 100 | +# Lint Markdown files |
| 101 | +npm run lint |
| 102 | + |
| 103 | +# Format code |
| 104 | +npm run format |
| 105 | + |
| 106 | +# Clean build directory |
| 107 | +npm run clean |
| 108 | +``` |
| 109 | + |
| 110 | +### Testing |
| 111 | +```bash |
| 112 | +# Run tests |
| 113 | +npm run test |
| 114 | + |
| 115 | +# Build and prepare for deployment |
| 116 | +npm run deploy |
| 117 | +``` |
| 118 | + |
| 119 | +## Multi-language Support |
| 120 | + |
| 121 | +The documentation supports both Chinese and English: |
| 122 | + |
| 123 | +- **Chinese**: `/zh/` - 中文文档 |
| 124 | +- **English**: `/en/` - English documentation |
| 125 | + |
| 126 | +### Adding New Languages |
| 127 | + |
| 128 | +1. Create a new directory under `docs/` (e.g., `docs/ja/` for Japanese) |
| 129 | +2. Copy the structure from existing language directories |
| 130 | +3. Update the language configuration in `docs/.vitepress/config.js` |
| 131 | +4. Add translations for all pages |
| 132 | + |
| 133 | +## Writing Documentation |
| 134 | + |
| 135 | +### Markdown Features |
| 136 | + |
| 137 | +VitePress supports extended Markdown features: |
| 138 | + |
| 139 | +- **Vue components** in Markdown |
| 140 | +- **Custom containers** (tip, warning, danger, details) |
| 141 | +- **Code highlighting** with syntax themes |
| 142 | +- **Math expressions** with KaTeX |
| 143 | +- **Mermaid diagrams** |
| 144 | + |
| 145 | +### Example: Custom Container |
| 146 | + |
| 147 | +```md |
| 148 | +::: tip |
| 149 | +This is a tip message. |
| 150 | +::: |
| 151 | + |
| 152 | +::: warning |
| 153 | +This is a warning message. |
| 154 | +::: |
| 155 | + |
| 156 | +::: danger |
| 157 | +This is a dangerous operation. |
| 158 | +::: |
| 159 | +``` |
| 160 | + |
| 161 | +### Example: Code Block |
| 162 | + |
| 163 | +````md |
| 164 | +```javascript |
| 165 | +// Example JavaScript code |
| 166 | +const message = 'Hello, AstrNest!'; |
| 167 | +console.log(message); |
| 168 | +``` |
| 169 | +```` |
| 170 | + |
| 171 | +## Customization |
| 172 | + |
| 173 | +### Theme Configuration |
| 174 | + |
| 175 | +Edit `docs/.vitepress/config.js` to customize: |
| 176 | + |
| 177 | +- **Colors and styles** |
| 178 | +- **Navigation and sidebar** |
| 179 | +- **Search functionality** |
| 180 | +- **Social links** |
| 181 | +- **Footer content** |
| 182 | + |
| 183 | +### Adding New Pages |
| 184 | + |
| 185 | +1. Create a new `.md` file in the appropriate language directory |
| 186 | +2. Add frontmatter with metadata: |
| 187 | + |
| 188 | +```yaml |
| 189 | +--- |
| 190 | +layout: doc |
| 191 | +title: Your Page Title |
| 192 | +description: Page description for SEO |
| 193 | +--- |
| 194 | +``` |
| 195 | + |
| 196 | +3. Update sidebar configuration in the theme config |
| 197 | + |
| 198 | +## Configuration Files |
| 199 | + |
| 200 | +### VitePress Config (`docs/.vitepress/config.js`) |
| 201 | + |
| 202 | +Main configuration file for: |
| 203 | +- Site metadata |
| 204 | +- Theme settings |
| 205 | +- Navigation structure |
| 206 | +- Plugin configuration |
| 207 | + |
| 208 | +### Head Config (`docs/.vitepress/config/head.js`) |
| 209 | + |
| 210 | +Configuration for: |
| 211 | +- Meta tags |
| 212 | +- Favicon |
| 213 | +- SEO optimization |
| 214 | +- Social media cards |
| 215 | + |
| 216 | +## SEO Optimization |
| 217 | + |
| 218 | +The documentation is optimized for search engines with: |
| 219 | + |
| 220 | +- **Structured data** using JSON-LD |
| 221 | +- **Meta tags** for social sharing |
| 222 | +- **Sitemap generation** |
| 223 | +- **Canonical URLs** |
| 224 | +- **Open Graph tags** |
| 225 | + |
| 226 | +## Deployment |
| 227 | + |
| 228 | +### Static Hosting (Recommended) |
| 229 | + |
| 230 | +1. **Build the documentation** |
| 231 | + ```bash |
| 232 | + npm run build |
| 233 | + ``` |
| 234 | + |
| 235 | +2. **Deploy to your hosting service** |
| 236 | + - Netlify, Vercel, GitHub Pages, etc. |
| 237 | + |
| 238 | +### Docker Deployment |
| 239 | + |
| 240 | +```dockerfile |
| 241 | +FROM node:18-alpine |
| 242 | +WORKDIR /app |
| 243 | +COPY package*.json ./ |
| 244 | +RUN npm ci --only=production |
| 245 | +COPY . . |
| 246 | +RUN npm run build |
| 247 | +EXPOSE 4173 |
| 248 | +CMD ["npm", "run", "serve"] |
| 249 | +``` |
| 250 | + |
| 251 | +### Manual Deployment |
| 252 | + |
| 253 | +1. Build the project |
| 254 | +2. Upload the `docs/.vitepress/dist` directory to your web server |
| 255 | +3. Configure your web server to serve the static files |
| 256 | + |
| 257 | +## 🤝 Contributing |
| 258 | + |
| 259 | +We welcome contributions to improve the AstrNest documentation! |
| 260 | + |
| 261 | +### How to Contribute |
| 262 | + |
| 263 | +1. **Fork the repository** |
| 264 | +2. **Create a feature branch** |
| 265 | + ```bash |
| 266 | + git checkout -b feature/amazing-feature |
| 267 | + ``` |
| 268 | +3. **Make your changes** |
| 269 | +4. **Commit your changes** |
| 270 | + ```bash |
| 271 | + git commit -m 'Add some amazing feature' |
| 272 | + ``` |
| 273 | +5. **Push to the branch** |
| 274 | + ```bash |
| 275 | + git push origin feature/amazing-feature |
| 276 | + ``` |
| 277 | +6. **Open a Pull Request** |
| 278 | + |
| 279 | +### Code Style |
| 280 | + |
| 281 | +- Follow the existing code style |
| 282 | +- Use meaningful commit messages |
| 283 | +- Add comments for complex logic |
| 284 | +- Update documentation when changing features |
50 | 285 |
|
51 | 286 | ## 📄 License |
52 | 287 |
|
53 | | -This project is licensed under the GNU General Public License v3 (GPL v3). See the [LICENSE](LICENSE) file for details. |
| 288 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
54 | 289 |
|
55 | | -## 🔗 Links |
| 290 | +## 🆘 Support |
56 | 291 |
|
57 | | -- **GitHub Repository**: [https://github.com/luminous-ChenXi/astrnest](https://github.com/luminous-ChenXi/astrnest) |
58 | | -- **Live Demo**: [https://luminous-ChenXi.github.io/astrnest](https://luminous-ChenXi.github.io/astrnest) |
59 | | -- **Issue Tracker**: [https://github.com/luminous-ChenXi/astrnest/issues](https://github.com/luminous-ChenXi/astrnest/issues) |
| 292 | +### Documentation Issues |
60 | 293 |
|
61 | | -## 📞 Support |
| 294 | +If you find issues with the documentation: |
62 | 295 |
|
63 | | -If you encounter any issues or have questions: |
64 | | -1. Check the [FAQ](/faq) section |
65 | | -2. Search existing [issues](https://github.com/luminous-ChenXi/astrnest/issues) |
66 | | -3. Create a new issue with detailed information |
| 296 | +1. Check the [FAQ](/faq) for common solutions |
| 297 | +2. Search existing [GitHub issues](https://github.com/luminous-ChenXi/astrnest-docs/issues) |
| 298 | +3. Create a new issue with details about the problem |
| 299 | + |
| 300 | +### AstrNest Platform Support |
| 301 | + |
| 302 | +For issues with the AstrNest platform itself: |
| 303 | + |
| 304 | +- **Documentation**: This documentation site |
| 305 | +- **GitHub**: [AstrNest Repository](https://github.com/luminous-ChenXi/astrnest) |
| 306 | +- **Email**: support@astrnest.com |
| 307 | +- **Community**: [Discussion Forum](https://github.com/luminous-ChenXi/astrnest/discussions) |
| 308 | + |
| 309 | +## Useful Links |
| 310 | + |
| 311 | +- [AstrNest Main Project](https://github.com/luminous-ChenXi/astrnest) |
| 312 | +- [VitePress Documentation](https://vitepress.dev/) |
| 313 | +- [Spring Boot Documentation](https://spring.io/projects/spring-boot) |
| 314 | +- [Vue.js Documentation](https://vuejs.org/) |
67 | 315 |
|
68 | 316 | --- |
69 | 317 |
|
70 | | -*Last updated: 2026-02-03* |
| 318 | +<div align="center"> |
| 319 | + |
| 320 | +**AstrNest Documentation** • Built with using VitePress |
| 321 | + |
| 322 | +[Quick Start](/quick-start) • [API Reference](/api) • [Contributing](CONTRIBUTING.md) |
| 323 | + |
| 324 | +</div> |
0 commit comments