Skip to content

Commit eb870cc

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

File tree

5 files changed

+27
-32
lines changed

5 files changed

+27
-32
lines changed

.github/workflows/docs.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,41 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
jobs:
13-
build:
14-
runs-on: ubuntu-latest
12+
build:
13+
runs-on: ubuntu-latest
1514

16-
steps:
17-
- uses: actions/checkout@v3
15+
steps:
16+
- uses: actions/checkout@v3
1817

19-
- name: Set up NodeJS
20-
uses: actions/setup-node@v2
21-
with:
22-
node-version: "20"
18+
- name: Set up NodeJS
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: "20"
2322

24-
- name: Install dependencies
25-
run: npm install --prefix ./docs
23+
- name: Install dependencies
24+
run: npm install --prefix ./docs
2625

27-
- name: Build
28-
run: npm run generate --prefix ./docs
26+
- name: Build
27+
run: npm run generate --prefix ./docs
2928

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
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
3534
36-
- name: Upload Pages artifact
37-
uses: actions/upload-pages-artifact@v2
38-
with:
39-
path: ./docs/dist
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
4342

4443
permissions:
4544
pages: write
4645
id-token: write
46+
actions: read
4747

4848
environment:
4949
name: github-pages
@@ -53,4 +53,4 @@ jobs:
5353
steps:
5454
- name: Deploy to GitHub Pages
5555
id: deployment
56-
uses: actions/deploy-pages@v4
56+
uses: actions/deploy-pages@v2
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

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
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,
5+
app: {
6+
baseURL: '/backrest/',
7+
}
138
})

0 commit comments

Comments
 (0)