Skip to content

Commit e416545

Browse files
committed
chore: fix github actions workflow for docs site
1 parent e791e31 commit e416545

File tree

5 files changed

+28
-37
lines changed

5 files changed

+28
-37
lines changed

.github/workflows/docs.yml

+27-28
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,33 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
19-
- name: Set up NodeJS
20-
uses: actions/setup-node@v2
21-
with:
22-
node-version: "20"
23-
24-
- name: Install dependencies
25-
run: npm install --prefix ./docs
26-
27-
- name: Build
28-
run: npm run generate --prefix ./docs
29-
30-
- name: Fix permissions
31-
run: |
32-
chmod -c -R +rX "./docs/dist/" | while read line; do
33-
echo "::warning title=Invalid file permissions automatically fixed::$line"
34-
done
35-
36-
- name: Upload Pages artifact
37-
uses: actions/upload-pages-artifact@v2
38-
with:
39-
path: ./docs/dist
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up NodeJS
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: "20"
22+
23+
- name: Install dependencies
24+
run: npm install --prefix ./docs
25+
26+
- name: Build
27+
run: npm run generate --prefix ./docs
28+
29+
- name: Fix permissions
30+
run: |
31+
chmod -c -R +rX "./docs/.output/public" | while read line; do
32+
echo "::warning title=Invalid file permissions automatically fixed::$line"
33+
done
34+
35+
- name: Upload Pages artifact
36+
uses: actions/upload-pages-artifact@v2
37+
with:
38+
path: ./docs/.output/public
4039

4140
deploy:
4241
needs: build
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
title: "Advanced"
1+
title: "Docs"
22
icon: heroicons-outline:bookmark-alt

docs/nuxt.config.ts

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
export default defineNuxtConfig({
2-
// https://github.com/nuxt-themes/docus
32
extends: ['@nuxt-themes/docus'],
43
devtools: { enabled: true },
5-
6-
modules: [
7-
// Remove it if you don't use Plausible analytics
8-
// https://github.com/nuxt-modules/plausible
9-
'@nuxtjs/plausible'
10-
],
11-
124
ssr: true,
135
})

0 commit comments

Comments
 (0)