File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
- name : Build
24
24
uses : ./.github/actions/build
25
+ with :
26
+ base-url : " /"
25
27
26
28
- name : Deploy
27
29
uses : JamesIves/github-pages-deploy-action@v4
Original file line number Diff line number Diff line change 22
22
- name : Execute Notebooks
23
23
uses : ./.github/actions/execute-notebooks
24
24
25
- - name : Calculate BASE_URL
25
+ - name : Make BASE_URL
26
26
run : echo ${{ github.ref }} | sed "s/[^0-9]//g" | (v=$(cat); echo -e "BASE_URL=/pr-preview/pr-$v/" ) >> $GITHUB_ENV
27
27
28
28
- name : Build
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const config = {
13
13
title : "Introduction to Algorithms" ,
14
14
// tagline: '',
15
15
url : "https://sikepuri-algorithm.github.io" ,
16
- baseUrl : process . env . BASE_URL ,
16
+ baseUrl : process . env . NODE_ENV ? "/" : process . env . BASE_URL ,
17
17
onBrokenLinks : "throw" ,
18
18
onBrokenMarkdownLinks : "warn" ,
19
19
favicon : "img/favicon.ico" ,
You can’t perform that action at this time.
0 commit comments