diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index fd0626702..83b699d97 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -4,10 +4,10 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: - branches: ["fix_alignments_in_mobile_design"] + branches: "*" pull_request: branches: - - '*' + - "*" # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages @@ -19,6 +19,24 @@ concurrency: cancel-in-progress: false jobs: +replace_string: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set environment variable for branch name + env: + BRANCH_NAME: ${{ github.ref_name }} + REPO_NAME: ${{github.repository_name}} + + run: echo "Branch name is $BRANCH_NAME" + + - name: Replace 'BaseUrl' with branch name in file + run: | + sed -i "s/BaseUrl/${BRANCH_NAME}/g" docusaurus.config.ts + build: runs-on: ubuntu-latest steps: @@ -38,8 +56,8 @@ jobs: path: ./build deploy: - needs: build - if: github.ref == 'refs/heads/fix_alignments_in_mobile_design' + needs: build, replace_string + if: github.ref == 'refs/heads/open_the_popup_portrait_on_a_specific_page' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 99d965cea..8ad35d934 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -12,11 +12,11 @@ const config: Config = { url: "https://quantstack.net/", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: "/", + baseUrl: "/quantstack.github.io/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: "/QuantStack/", // Usually your GitHub org/user name. + organizationName: "/HaudinFlorence/", // Usually your GitHub org/user name. projectName: "quantstack.github.io", // Usually your repo name. onBrokenLinks: "throw", diff --git a/src/components/projects/styles.module.css b/src/components/projects/styles.module.css index 28a392232..4d5c76cfb 100644 --- a/src/components/projects/styles.module.css +++ b/src/components/projects/styles.module.css @@ -84,6 +84,7 @@ div .project_title { /*Desktop*/ .header_container { margin-top: var(--ifm-spacing-6xl); + background-color: red; } .header_title { padding-left: var(--ifm-spacing-4xl);