File tree 3 files changed +49
-4
lines changed
components/molecules/docs
3 files changed +49
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy a Preview Site
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
14
+ with :
15
+ node-version : " latest"
16
+ - run : npm install -g pnpm
17
+ - run : pnpm install
18
+ - run : sed -i "s|/docs|/docs/branches/${GITHUB_HEAD_REF}|g" nuxt.config.ts; cat nuxt.config.ts
19
+ - run : pnpm nuxt build --preset github_pages
20
+ - run : |
21
+ mkdir -p dist/branches/${{ github.head_ref }}
22
+ mv .output/public/* dist/branches/${{ github.head_ref }} || exit 0
23
+ - uses : actions/upload-pages-artifact@v3
24
+ with :
25
+ name : " Project Documentation"
26
+ path : " dist"
27
+ deploy :
28
+ needs : build
29
+ permissions :
30
+ pages : write
31
+ id-token : write
32
+ environment :
33
+ name : github-pages
34
+ url : ${{ steps.deployment.outputs.page_url }}
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Deploy to GitHub Pages
38
+ id : deployment
39
+ uses : actions/deploy-pages@v4
40
+ with :
41
+ artifact_name : " Project Documentation"
Original file line number Diff line number Diff line change 7
7
</div >
8
8
<div class =" links" >
9
9
<div class =" header" >Get Started</div >
10
- <RouterLink to =" /docs/get-started/overview" >Overview</RouterLink >
11
- <RouterLink to =" /docs/get-started/values" >Values</RouterLink >
10
+ <RouterLink to =" . /docs/get-started/overview" >Overview</RouterLink >
11
+ <RouterLink to =" . /docs/get-started/values" >Values</RouterLink >
12
12
13
13
<div class =" header" >Writing Crates</div >
14
- <RouterLink to =" /docs/writing-crates/checklist" >Checklist</RouterLink >
14
+ <RouterLink to =" . /docs/writing-crates/checklist" >Checklist</RouterLink >
15
15
</div >
16
16
</div >
17
17
</template >
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ export default defineNuxtConfig({
5
5
compatibilityDate : "2024-04-03" ,
6
6
css : [ "~/assets/css/main.postcss" ] ,
7
7
devtools : { enabled : true } ,
8
+ ssr : false ,
9
+ app : {
10
+ baseURL : "/docs" ,
11
+ } ,
8
12
modules : [
9
13
"nuxt-lucide-icons" ,
10
14
"@nuxt/content" ,
@@ -26,4 +30,4 @@ export default defineNuxtConfig({
26
30
linkExactActiveClass : "active" ,
27
31
} ,
28
32
} ,
29
- } ) ;
33
+ } ) ;
You can’t perform that action at this time.
0 commit comments