Skip to content

Commit 0c6ec9c

Browse files
committed
refactor(docs): migrate Git Pages from Jekyll to VitePress
- Replace Jekyll + just-the-docs with VitePress 1.6.4 - Add native i18n support (en/zh locales) - Preserve NVIDIA green theme (#76B900) - Add vitepress-plugin-mermaid for diagram support - Add vitepress-plugin-llms for AI-friendly llms.txt generation - Update GitHub Actions workflow for Node.js/VitePress build - Remove old Jekyll files (_config.yml, _sass/, _includes/)
1 parent da332ed commit 0c6ec9c

48 files changed

Lines changed: 7184 additions & 3005 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pages.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GitHub Pages Deployment
2-
# Builds and deploys the public documentation portal.
2+
# Builds and deploys the public documentation portal using VitePress.
33

44
name: Deploy to GitHub Pages
55

@@ -9,14 +9,7 @@ on:
99
paths: &pages_paths
1010
- 'CHANGELOG.md'
1111
- 'CONTRIBUTING.md'
12-
- 'index.md'
13-
- '_config.yml'
14-
- '_includes/**'
1512
- 'docs/**'
16-
- 'zh/**'
17-
- 'specs.md'
18-
- 'assets/**'
19-
- '_sass/**'
2013
- '.github/workflows/pages.yml'
2114
pull_request:
2215
branches: [master]
@@ -37,20 +30,32 @@ jobs:
3730
- name: Checkout
3831
uses: actions/checkout@v4
3932

40-
- name: Setup Pages
41-
uses: actions/configure-pages@v5
42-
43-
- name: Build with Jekyll
44-
uses: actions/jekyll-build-pages@v1
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
4535
with:
46-
source: ./
47-
destination: ./_site
36+
node-version: 20
37+
cache: npm
38+
cache-dependency-path: docs/package-lock.json
39+
40+
- name: Install dependencies
41+
working-directory: docs
42+
run: npm ci
43+
44+
- name: Build with VitePress
45+
working-directory: docs
46+
env:
47+
VITEPRESS_BASE: /sgemm-optimization/
48+
run: npm run build
49+
50+
- name: Add .nojekyll
51+
working-directory: docs
52+
run: touch .vitepress/dist/.nojekyll
4853

4954
- name: Upload artifact
5055
if: github.event_name != 'pull_request'
5156
uses: actions/upload-pages-artifact@v3
5257
with:
53-
path: ./_site
58+
path: docs/.vitepress/dist
5459

5560
deploy:
5661
if: github.event_name != 'pull_request'

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ _site/
3939
.jekyll-cache/
4040
.jekyll-metadata
4141

42+
# VitePress
43+
docs/node_modules/
44+
docs/.vitepress/dist/
45+
docs/.vitepress/cache/
46+
4247
# Cache
4348
.cache/
4449

_config.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

_includes/head_custom.html

Lines changed: 0 additions & 47 deletions
This file was deleted.

_includes/nav_footer_custom.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)