File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Nextra docs to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout source code
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Setup Node.js
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 18'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+ working-directory : ./docs
24
+
25
+ - name : Build Nextra site
26
+ run : npm run build
27
+ working-directory : ./docs
28
+
29
+ - name : Deploy to GitHub Pages
30
+ uses : peaceiris/actions-gh-pages@v3
31
+ with :
32
+ github_token : ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir : ./docs/out
34
+
Original file line number Diff line number Diff line change 1
1
# Ignore Next.js build output
2
2
.next /
3
+ out /
3
4
4
5
# Logs
5
6
logs
Original file line number Diff line number Diff line change @@ -2,4 +2,9 @@ import nextra from 'nextra';
2
2
3
3
const withNextra = nextra ( 'nextra-theme-docs' , './theme.config.js' ) ;
4
4
5
- export default withNextra ( { } ) ;
5
+ export default withNextra ( {
6
+ output : 'export' ,
7
+ images : {
8
+ unoptimized : true ,
9
+ } ,
10
+ } ) ;
You can’t perform that action at this time.
0 commit comments