|
| 1 | + |
| 2 | +# SmartSpawner Documentation |
| 3 | + |
| 4 | +[](LICENSE) |
| 5 | +[](https://astro.build/) |
| 6 | +[](https://starlight.astro.build/) |
| 7 | + |
| 8 | +This repository hosts the official documentation website for **[SmartSpawner](https://modrinth.com/plugin/smart-spawner-plugin)**, a powerful Minecraft plugin designed to enhance mob spawner management on servers. |
| 9 | + |
| 10 | +## About SmartSpawner |
| 11 | + |
| 12 | +SmartSpawner is a feature-rich plugin that simplifies and enhances the management of mob spawners in Minecraft servers. It offers advanced customization options, seamless integrations with popular plugins, and a robust developer API for extending functionality. Notably, its GUI-based system generates mob drops and experience without spawning entities, significantly boosting server performance. |
| 13 | + |
| 14 | +## Site Overview |
| 15 | + |
| 16 | +- **Framework**: Astro with Starlight theme |
| 17 | +- **Version**: 0.0.1 |
| 18 | +- **Primary Dependencies**: |
| 19 | + - Astro (^5.13.2) |
| 20 | + - @astrojs/starlight (^0.35.2) |
| 21 | + - Starlight themes (Catppuccin, Next, Obsidian) |
| 22 | + - Sharp (^0.34.2) |
| 23 | + |
| 24 | +## Quick Start |
| 25 | + |
| 26 | +### Prerequisites |
| 27 | +- Node.js (version 18 or higher) |
| 28 | +- npm or yarn package manager |
| 29 | + |
| 30 | +### Local Development |
| 31 | + |
| 32 | +1. **Clone the repository**: |
| 33 | + ```bash |
| 34 | + git clone https://github.com/NighterDevelopment/smartspawner-docs.git |
| 35 | + cd smartspawner-docs |
| 36 | + ``` |
| 37 | + |
| 38 | +2. **Install dependencies**: |
| 39 | + ```bash |
| 40 | + npm install |
| 41 | + ``` |
| 42 | + |
| 43 | +3. **Start the development server**: |
| 44 | + ```bash |
| 45 | + npm run dev |
| 46 | + ``` |
| 47 | + The site will be available at `http://localhost:4321`. |
| 48 | + |
| 49 | +### Build and Preview |
| 50 | + |
| 51 | +- **Build for production**: |
| 52 | + ```bash |
| 53 | + npm run build |
| 54 | + ``` |
| 55 | + |
| 56 | +- **Preview the production build**: |
| 57 | + ```bash |
| 58 | + npm run preview |
| 59 | + ``` |
| 60 | + |
| 61 | +## Project Structure |
| 62 | + |
| 63 | +``` |
| 64 | +smartspawner-docs/ |
| 65 | +├── src/ |
| 66 | +│ ├── content/ |
| 67 | +│ │ ├── docs/ # Main documentation files (Markdown/MDX) |
| 68 | +│ │ └── config.ts # Content configuration |
| 69 | +│ ├── components/ # Custom Astro components |
| 70 | +│ ├── styles/ # Custom CSS styles |
| 71 | +│ └── assets/ # Static assets |
| 72 | +├── public/ # Public static files |
| 73 | +├── astro.config.mjs # Astro configuration |
| 74 | +├── package.json # Project dependencies and scripts |
| 75 | +└── tsconfig.json # TypeScript configuration |
| 76 | +``` |
| 77 | + |
| 78 | +## Contributing |
| 79 | + |
| 80 | +We appreciate contributions from the community! Whether you're fixing a typo, adding new documentation, or improving the site's functionality, your input is valuable. |
| 81 | + |
| 82 | +### Contribution Guidelines |
| 83 | + |
| 84 | +1. **Fork the repository** on GitHub. |
| 85 | +2. **Create a feature branch**: |
| 86 | + ```bash |
| 87 | + git checkout -b feature/your-feature-name |
| 88 | + ``` |
| 89 | +3. **Make your changes**: |
| 90 | + - Documentation updates go in `src/content/docs/` |
| 91 | + - Component changes in `src/components/` |
| 92 | + - Style modifications in `src/styles/` |
| 93 | +4. **Test your changes** locally using `npm run dev`. |
| 94 | +5. **Update timestamps for documentation files** (if you modified any `.md` files in `src/content/docs/`): |
| 95 | + |
| 96 | + ```bash |
| 97 | + npm run add-timestamps |
| 98 | + ``` |
| 99 | + This command automatically updates the "Last update" timestamp at the end of each modified documentation file based on its last modification time. This ensures accurate update information for readers |
| 100 | +6. **Commit your changes** with descriptive messages: |
| 101 | + ```bash |
| 102 | + git commit -m "Add comprehensive guide for plugin integrations" |
| 103 | + ``` |
| 104 | +7. **Push to your fork** and **create a pull request**. |
| 105 | + |
| 106 | +### Code Style |
| 107 | +- Follow existing Markdown formatting and structure. |
| 108 | +- Use clear, concise language suitable for both beginners and advanced users. |
| 109 | +- Include code examples where applicable. |
| 110 | +- Test all links and ensure they are functional. |
| 111 | + |
| 112 | +For significant changes or new features, please open an issue first to discuss the proposed modifications. |
| 113 | + |
| 114 | +## Deployment |
| 115 | + |
| 116 | +This site is configured for deployment to GitHub Pages: |
| 117 | + |
| 118 | +```bash |
| 119 | +npm run deploy |
| 120 | +``` |
| 121 | + |
| 122 | +This command builds the site and deploys it using `gh-pages`. |
| 123 | + |
| 124 | +## License |
| 125 | + |
| 126 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 127 | + |
| 128 | +## Support and Contact |
| 129 | + |
| 130 | +- **Issues**: Report bugs or request features via [GitHub Issues](https://github.com/NighterDevelopment/smartspawner-docs/issues) |
| 131 | +- **Discussions**: Join community discussions on [Discord Server](https://dsc.gg/nighterdevelopment) |
| 132 | + |
| 133 | +For questions about the SmartSpawner plugin itself, please refer to the main plugin repository or community channels. |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +*Built with ❤️ using Astro and Starlight* |
0 commit comments