Skip to content

Commit 24fc8c2

Browse files
committed
upd
1 parent 00f16fb commit 24fc8c2

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Build website
4545
run: |
4646
cd docs
47-
npm run build
47+
npx docusaurus build
4848
4949
- name: Upload artifact
5050
uses: actions/upload-pages-artifact@v3

build-local.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
echo Building Mixcore documentation...
3+
4+
echo Installing dependencies...
5+
call npm install
6+
7+
echo Building site...
8+
call npx docusaurus build
9+
10+
echo Build complete! The static files are in the 'build' folder.
11+
pause

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"dependencies": {
1818
"@docusaurus/core": "3.7.0",
1919
"@docusaurus/preset-classic": "3.7.0",
20+
"@docusaurus/plugin-content-docs": "3.7.0",
21+
"@docusaurus/types": "3.7.0",
2022
"@mdx-js/react": "^3.0.0",
2123
"clsx": "^2.0.0",
2224
"prism-react-renderer": "^2.3.0",

pnpm-lock.yaml

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publish-gh-pages

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ echo "📚 Preparing to deploy Mixcore documentation..."
55

66
# Clean any previous build
77
echo "🧹 Cleaning previous build..."
8-
npm run clear
8+
npx docusaurus clear
99

1010
# Build the Docusaurus site
1111
echo "🔨 Building the Docusaurus site..."
12-
npm run build
12+
npx docusaurus build
1313

1414
# Deploy to GitHub Pages
1515
echo "🚀 Deploying to GitHub Pages..."
1616
GIT_USER=Smilefounder \
1717
CURRENT_BRANCH=master \
1818
USE_SSH=true \
19-
npm run deploy
19+
npx docusaurus deploy
2020

2121
echo "✅ Deployment complete! Your documentation is now live at https://docs.mixcore.org"

0 commit comments

Comments
 (0)