Official documentation for AstrNest - A modern image hosting platform built with Spring Boot 3.4.1 and Vue 3.5.24.
AstrNest is an enterprise-grade image hosting solution that provides:
- Multi-cloud storage support (Local, Aliyun OSS, Tencent COS)
- Modern architecture with Spring Boot 3.4.1 + Vue 3.5.24
- Enterprise security with role-based access control
- Responsive design built with Tailwind CSS
- Comprehensive API with RESTful design
- Node.js 18.0 or higher
- npm 8.0 or higher
- Git
-
Clone the repository
git clone https://github.com/luminous-ChenXi/astrnest.git cd astrnest-docs -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173
astrnest-docs/
├── docs/ # Documentation source
│ ├── .vitepress/ # VitePress configuration
│ │ ├── config.js # Main configuration
│ │ └── config/ # Additional config files
│ ├── public/ # Static assets
│ ├── zh/ # Chinese documentation
│ │ ├── index.md # Homepage
│ │ ├── what-is-project.md
│ │ ├── quick-start.md
│ │ ├── faq.md
│ │ └── api/ # API documentation
│ └── en/ # English documentation
│ ├── index.md
│ ├── what-is-project.md
│ ├── quick-start.md
│ ├── faq.md
│ └── api/
├── package.json # Project configuration
├── .eslintrc.js # ESLint configuration
├── .prettierrc.json # Prettier configuration
└── README.md # This file
# Start development server
npm run dev
# Alternative development command
npm run docs:dev# Build for production
npm run build
# Preview production build
npm run preview
# Serve built documentation
npm run serve# Lint Markdown files
npm run lint
# Format code
npm run format
# Clean build directory
npm run clean# Run tests
npm run test
# Build and prepare for deployment
npm run deployThe documentation supports both Chinese and English:
- Chinese:
/zh/- 中文文档 - English:
/en/- English documentation
- Create a new directory under
docs/(e.g.,docs/ja/for Japanese) - Copy the structure from existing language directories
- Update the language configuration in
docs/.vitepress/config.js - Add translations for all pages
VitePress supports extended Markdown features:
- Vue components in Markdown
- Custom containers (tip, warning, danger, details)
- Code highlighting with syntax themes
- Math expressions with KaTeX
- Mermaid diagrams
::: tip
This is a tip message.
:::
::: warning
This is a warning message.
:::
::: danger
This is a dangerous operation.
:::```javascript
// Example JavaScript code
const message = 'Hello, AstrNest!';
console.log(message);
```Edit docs/.vitepress/config.js to customize:
- Colors and styles
- Navigation and sidebar
- Search functionality
- Social links
- Footer content
- Create a new
.mdfile in the appropriate language directory - Add frontmatter with metadata:
---
layout: doc
title: Your Page Title
description: Page description for SEO
---- Update sidebar configuration in the theme config
Main configuration file for:
- Site metadata
- Theme settings
- Navigation structure
- Plugin configuration
Configuration for:
- Meta tags
- Favicon
- SEO optimization
- Social media cards
The documentation is optimized for search engines with:
- Structured data using JSON-LD
- Meta tags for social sharing
- Sitemap generation
- Canonical URLs
- Open Graph tags
-
Build the documentation
npm run build
-
Deploy to your hosting service
- Netlify, Vercel, GitHub Pages, etc.
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
EXPOSE 4173
CMD ["npm", "run", "serve"]- Build the project
- Upload the
docs/.vitepress/distdirectory to your web server - Configure your web server to serve the static files
We welcome contributions to improve the AstrNest documentation!
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Commit your changes
git commit -m 'Add some amazing feature' - Push to the branch
git push origin feature/amazing-feature
- Open a Pull Request
- Follow the existing code style
- Use meaningful commit messages
- Add comments for complex logic
- Update documentation when changing features
This project is licensed under the MIT License - see the LICENSE file for details.
If you find issues with the documentation:
- Check the FAQ for common solutions
- Search existing GitHub issues
- Create a new issue with details about the problem
For issues with the AstrNest platform itself:
- Documentation: This documentation site
- GitHub: AstrNest Repository
- Email: support@astrnest.com
- Community: Discussion Forum
AstrNest Documentation • Built with using VitePress