File tree 3 files changed +25
-6
lines changed
3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ name: Deploy static content to Pages
4
4
on :
5
5
# Runs on pushes targeting the default branch
6
6
push :
7
- branches : ["fix_alignments_in_mobile_design"]
7
+ branches : " fix_alignment_issues "
8
8
pull_request :
9
9
branches :
10
- - ' * '
10
+ - " fix_alignment_issues "
11
11
12
12
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
13
@@ -19,6 +19,24 @@ concurrency:
19
19
cancel-in-progress : false
20
20
21
21
jobs :
22
+ replace_string :
23
+ runs-on : ubuntu-latest
24
+
25
+ steps :
26
+ - name : Checkout code
27
+ uses : actions/checkout@v3
28
+
29
+ - name : Set environment variable for branch name
30
+ env :
31
+ BRANCH_NAME : ${{ github.ref_name }}
32
+ REPO_NAME : ${{github.repository_name}}
33
+
34
+ run : echo "Branch name is $BRANCH_NAME"
35
+
36
+ - name : Replace 'BaseUrl' with branch name in file
37
+ run : |
38
+ sed -i "s/BaseUrl/${BRANCH_NAME}/g" docusaurus.config.ts
39
+
22
40
build :
23
41
runs-on : ubuntu-latest
24
42
steps :
38
56
path : ./build
39
57
40
58
deploy :
41
- needs : build
42
- if : github.ref == 'refs/heads/fix_alignments_in_mobile_design '
59
+ needs : build, replace_string
60
+ if : github.ref == 'refs/heads/open_the_popup_portrait_on_a_specific_page '
43
61
environment :
44
62
name : github-pages
45
63
url : ${{ steps.deployment.outputs.page_url }}
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ const config: Config = {
12
12
url : "https://quantstack.net/" ,
13
13
// Set the /<baseUrl>/ pathname under which your site is served
14
14
// For GitHub pages deployment, it is often '/<projectName>/'
15
- baseUrl : "/" ,
15
+ baseUrl : "/quantstack.github.io/ " ,
16
16
17
17
// GitHub pages deployment config.
18
18
// If you aren't using GitHub pages, you don't need these.
19
- organizationName : "/QuantStack /" , // Usually your GitHub org/user name.
19
+ organizationName : "/HaudinFlorence /" , // Usually your GitHub org/user name.
20
20
projectName : "quantstack.github.io" , // Usually your repo name.
21
21
22
22
onBrokenLinks : "throw" ,
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ div .project_title {
84
84
/*Desktop*/
85
85
.header_container {
86
86
margin-top : var (--ifm-spacing-6xl );
87
+ background-color : red;
87
88
}
88
89
.header_title {
89
90
padding-left : var (--ifm-spacing-4xl );
You can’t perform that action at this time.
0 commit comments