Skip to content

Commit 86adefb

Browse files
committed
feat: migrate to nextra
1 parent 9c37ef4 commit 86adefb

File tree

91 files changed

+6605
-19582
lines changed

Some content is hidden

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

91 files changed

+6605
-19582
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Docusaurus to GitHub Pages
1+
name: Deploy Nextra to GitHub Pages
22

33
on:
44
push:
@@ -22,21 +22,21 @@ jobs:
2222
with:
2323
node-version: '20'
2424
cache: 'npm'
25-
cache-dependency-path: website/package-lock.json
25+
cache-dependency-path: docs/package-lock.json
2626

2727
- name: Install dependencies
2828
run: npm ci
29-
working-directory: website
29+
working-directory: docs
3030

3131
- name: Build website
3232
run: npm run build
33-
working-directory: website
33+
working-directory: docs
3434

3535
- name: Deploy to GitHub Pages (gh-pages branch)
3636
uses: peaceiris/actions-gh-pages@v3
3737
with:
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: website/build
39+
publish_dir: docs/out
4040
publish_branch: gh-pages
4141
force_orphan: true
4242
user_name: github-actions[bot]

docs/next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
4+
theme: 'nextra-theme-docs',
5+
themeConfig: './theme.config.jsx',
6+
})
7+
8+
export default withNextra()

0 commit comments

Comments
 (0)