|
1 | | -# Website |
| 1 | +# Mixcore Documentation |
2 | 2 |
|
3 | | -This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. |
| 3 | +This repository contains the documentation for Mixcore CMS, built with [Docusaurus 3](https://docusaurus.io/). |
| 4 | + |
| 5 | +The live documentation is available at [docs.mixcore.org](https://docs.mixcore.org/). |
| 6 | + |
| 7 | +## Documentation Structure |
| 8 | + |
| 9 | +The documentation is organized by persona to make it easier for different users to find information relevant to their needs: |
| 10 | + |
| 11 | +- **Content Editors**: People who create and manage content |
| 12 | +- **Administrators**: System administrators who set up and maintain Mixcore |
| 13 | +- **Developers**: People who build applications and extend Mixcore |
| 14 | +- **Theme Designers**: People who create and customize visual themes |
| 15 | +- **DevOps Engineers**: People who deploy and maintain infrastructure |
| 16 | + |
| 17 | +## Local Development |
| 18 | + |
| 19 | +### Prerequisites |
| 20 | + |
| 21 | +- [Node.js](https://nodejs.org/en/) version 18 or above |
| 22 | +- npm or yarn |
4 | 23 |
|
5 | 24 | ### Installation |
6 | 25 |
|
7 | | -``` |
8 | | -$ yarn |
9 | | -``` |
| 26 | +```bash |
| 27 | +# Clone the repository |
| 28 | +git clone https://github.com/mixcore/mix.core.git |
10 | 29 |
|
11 | | -### Local Development |
| 30 | +# Navigate to the docs directory |
| 31 | +cd mix.core/docs |
12 | 32 |
|
| 33 | +# Install dependencies |
| 34 | +npm install |
13 | 35 | ``` |
14 | | -$ yarn start |
| 36 | + |
| 37 | +### Running Locally |
| 38 | + |
| 39 | +```bash |
| 40 | +# Start the development server |
| 41 | +npm start |
15 | 42 | ``` |
16 | 43 |
|
17 | | -This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. |
| 44 | +This command starts a local development server and opens a browser window. Most changes are reflected live without having to restart the server. |
18 | 45 |
|
19 | 46 | ### Build |
20 | 47 |
|
21 | | -``` |
22 | | -$ yarn build |
| 48 | +```bash |
| 49 | +# Generate static content |
| 50 | +npm run build |
23 | 51 | ``` |
24 | 52 |
|
25 | | -This command generates static content into the `build` directory and can be served using any static contents hosting service. |
| 53 | +This command generates static content into the `build` directory and can be served using any static hosting service. |
26 | 54 |
|
27 | | -### Deployment |
| 55 | +## Deployment |
28 | 56 |
|
29 | | -Using SSH: |
| 57 | +The documentation is automatically deployed to GitHub Pages when changes are pushed to the master branch. |
30 | 58 |
|
31 | | -``` |
32 | | -$ USE_SSH=true yarn deploy |
33 | | -``` |
| 59 | +### Manual Deployment |
34 | 60 |
|
35 | | -Not using SSH: |
| 61 | +If you need to deploy manually, you can use the provided script: |
36 | 62 |
|
| 63 | +```bash |
| 64 | +# Make the script executable if needed |
| 65 | +chmod +x publish-gh-pages |
| 66 | + |
| 67 | +# Run the deployment script |
| 68 | +./publish-gh-pages |
37 | 69 | ``` |
38 | | -$ GIT_USER=<Your GitHub username> yarn deploy |
39 | | -``` |
40 | 70 |
|
41 | | -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. |
| 71 | +### GitHub Actions |
| 72 | + |
| 73 | +Deployment is automated using GitHub Actions. The workflow configuration is located in `.github/workflows/deploy.yml`. |
| 74 | + |
| 75 | +## Contributing |
| 76 | + |
| 77 | +We welcome contributions to improve the documentation: |
| 78 | + |
| 79 | +1. **Fork** the repository |
| 80 | +2. Create a **branch** for your changes |
| 81 | +3. Make your changes |
| 82 | +4. Submit a **pull request** |
| 83 | + |
| 84 | +### Guidelines |
| 85 | + |
| 86 | +- Use clear, concise language |
| 87 | +- Provide examples where applicable |
| 88 | +- Keep each document focused on a specific topic |
| 89 | +- Follow the persona-based organization |
| 90 | + |
| 91 | +## License |
| 92 | + |
| 93 | +This documentation is licensed under the same license as Mixcore itself. |
| 94 | + |
| 95 | +## Contact |
| 96 | + |
| 97 | +For questions about the documentation, please: |
| 98 | + |
| 99 | +- Open an issue on [GitHub](https://github.com/mixcore/mix.core/issues) |
| 100 | +- Join the [Mixcore Discussions](https://github.com/orgs/mixcore/discussions) |
| 101 | +- Email us at [info@mixcore.org](mailto:info@mixcore.org) |
0 commit comments