Skip to content

Commit 00f16fb

Browse files
committed
upd
1 parent 86c67c7 commit 00f16fb

File tree

4 files changed

+123
-32
lines changed

4 files changed

+123
-32
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
2+
name: Deploy Docusaurus to GitHub Pages
33

44
on:
55
# Runs on pushes targeting the default branch
@@ -22,24 +22,37 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
# Build job
2625
build:
26+
name: Build
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v4
31-
- name: Setup Pages
32-
uses: actions/configure-pages@v5
33-
- name: Build with Jekyll
34-
uses: actions/jekyll-build-pages@v1
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
3534
with:
36-
source: ./
37-
destination: ./_site
35+
node-version: 18
36+
cache: 'npm'
37+
cache-dependency-path: docs/package-lock.json
38+
39+
- name: Install dependencies
40+
run: |
41+
cd docs
42+
npm ci
43+
44+
- name: Build website
45+
run: |
46+
cd docs
47+
npm run build
48+
3849
- name: Upload artifact
3950
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: docs/build
4053

41-
# Deployment job
4254
deploy:
55+
name: Deploy
4356
environment:
4457
name: github-pages
4558
url: ${{ steps.deployment.outputs.page_url }}

README.md

Lines changed: 80 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,101 @@
1-
# Website
1+
# Mixcore Documentation
22

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
423

524
### Installation
625

7-
```
8-
$ yarn
9-
```
26+
```bash
27+
# Clone the repository
28+
git clone https://github.com/mixcore/mix.core.git
1029

11-
### Local Development
30+
# Navigate to the docs directory
31+
cd mix.core/docs
1232

33+
# Install dependencies
34+
npm install
1335
```
14-
$ yarn start
36+
37+
### Running Locally
38+
39+
```bash
40+
# Start the development server
41+
npm start
1542
```
1643

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.
1845

1946
### Build
2047

21-
```
22-
$ yarn build
48+
```bash
49+
# Generate static content
50+
npm run build
2351
```
2452

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.
2654

27-
### Deployment
55+
## Deployment
2856

29-
Using SSH:
57+
The documentation is automatically deployed to GitHub Pages when changes are pushed to the master branch.
3058

31-
```
32-
$ USE_SSH=true yarn deploy
33-
```
59+
### Manual Deployment
3460

35-
Not using SSH:
61+
If you need to deploy manually, you can use the provided script:
3662

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
3769
```
38-
$ GIT_USER=<Your GitHub username> yarn deploy
39-
```
4070

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)

docusaurus.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ const config: Config = {
4545
showLastUpdateAuthor: true,
4646
showLastUpdateTime: true,
4747
// Please change this to your repo.
48-
// Remove this to remove the "edit this page" links.
49-
editUrl: 'https://github.com/mixcore/docs/tree/master',
48+
editUrl: 'https://github.com/mixcore/mix.core/tree/master/docs',
5049
},
5150
theme: {
5251
customCss: './src/css/custom.css',

publish-gh-pages

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
#!/bin/bash
2-
GIT_USER=Smilefounder CURRENT_BRANCH=master USE_SSH=true yarn deploy
2+
3+
# Script to deploy Mixcore docs to GitHub Pages
4+
echo "📚 Preparing to deploy Mixcore documentation..."
5+
6+
# Clean any previous build
7+
echo "🧹 Cleaning previous build..."
8+
npm run clear
9+
10+
# Build the Docusaurus site
11+
echo "🔨 Building the Docusaurus site..."
12+
npm run build
13+
14+
# Deploy to GitHub Pages
15+
echo "🚀 Deploying to GitHub Pages..."
16+
GIT_USER=Smilefounder \
17+
CURRENT_BRANCH=master \
18+
USE_SSH=true \
19+
npm run deploy
20+
21+
echo "✅ Deployment complete! Your documentation is now live at https://docs.mixcore.org"

0 commit comments

Comments
 (0)