File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : ["fix_alignments_in_mobile_design"]
7+ branches : " fix_alignment_issues "
88 pull_request :
99 branches :
10- - ' * '
10+ - " fix_alignment_issues "
1111
1212# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313
@@ -19,6 +19,24 @@ concurrency:
1919 cancel-in-progress : false
2020
2121jobs :
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+
2240 build :
2341 runs-on : ubuntu-latest
2442 steps :
3856 path : ./build
3957
4058 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 '
4361 environment :
4462 name : github-pages
4563 url : ${{ steps.deployment.outputs.page_url }}
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ const config: Config = {
1212 url : "https://quantstack.net/" ,
1313 // Set the /<baseUrl>/ pathname under which your site is served
1414 // For GitHub pages deployment, it is often '/<projectName>/'
15- baseUrl : "/" ,
15+ baseUrl : "/quantstack.github.io/ " ,
1616
1717 // GitHub pages deployment config.
1818 // 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.
2020 projectName : "quantstack.github.io" , // Usually your repo name.
2121
2222 onBrokenLinks : "throw" ,
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ div .project_title {
8484 /*Desktop*/
8585 .header_container {
8686 margin-top : var (--ifm-spacing-6xl );
87+ background-color : red;
8788 }
8889 .header_title {
8990 padding-left : var (--ifm-spacing-4xl );
You can’t perform that action at this time.
0 commit comments