From 934d7b4b9cf9947114decb8a00717a75541ee5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s?= Date: Wed, 22 Nov 2023 19:10:02 +0100 Subject: [PATCH] fix for faq.js --- .github/workflows/dev.yml | 80 +++++++++++++++++------------------ .github/workflows/main.yml | 80 +++++++++++++++++------------------ src/components/modules/faq.js | 9 +++- 3 files changed, 88 insertions(+), 81 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d79376383..54c97cfa4 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -4,47 +4,47 @@ name: CI # Controls when the workflow will run on: - # Triggers the workflow on push request events but only for the main branch - push: - branches: [dev] + # Triggers the workflow on push request events but only for the main branch + push: + branches: [dev] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Check out latest code - uses: actions/checkout@v2 - - # Grab the required version of NodeJS - - name: Set Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.17.0" - - # Install all the Node dependencies for Gatsby, using your package.json file. - - name: Install Dependencies - run: npm install --legacy-peer-deps - - # Speaks for itself no? - - name: Build Gatsby Site - run: npm run build - - # This was the hardest part for me to figure out - see article for more details - - name: Install Deployment SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{secrets.deploy_key}} - known_hosts: ${{secrets.known_hosts}} - - # Finally, deploy it to your very own server - - name: Deploy To Live - run: rsync -avzh --delete -e 'ssh' public/* --rsync-path='mkdir -p ${{secrets.target_dir_dev}} && rsync' ${{secrets.ssh_user}}@${{secrets.ssh_host}}:${{secrets.target_dir_dev}} + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Check out latest code + uses: actions/checkout@v2 + + # Grab the required version of NodeJS + - name: Set Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.17.0" + + # Install all the Node dependencies for Gatsby, using your package.json file. + - name: Install Dependencies + run: npm install --legacy-peer-deps + + # Speaks for itself no? + - name: Build Gatsby Site + run: npm run build + + # This was the hardest part for me to figure out - see article for more details + - name: Install Deployment SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{secrets.deploy_key}} + known_hosts: ${{secrets.known_hosts}} + + # Finally, deploy it to your very own server + - name: Deploy To Live + run: rsync -avzh --delete -e 'ssh' public/* --rsync-path='mkdir -p ${{secrets.target_dir_dev}} && rsync' ${{secrets.ssh_user}}@${{secrets.ssh_host}}:${{secrets.target_dir_dev}} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01a6e5d1a..753691067 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,47 +4,47 @@ name: CI # Controls when the workflow will run on: - # Triggers the workflow on push request events but only for the main branch - push: - branches: [main] + # Triggers the workflow on push request events but only for the main branch + push: + branches: [main] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Check out latest code - uses: actions/checkout@v2 - - # Grab the required version of NodeJS - - name: Set Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.17.0" - - # Install all the Node dependencies for Gatsby, using your package.json file. - - name: Install Dependencies - run: npm install --legacy-peer-deps - - # Speaks for itself no? - - name: Build Gatsby Site - run: npm run build - - # This was the hardest part for me to figure out - see article for more details - - name: Install Deployment SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{secrets.deploy_key}} - known_hosts: ${{secrets.known_hosts}} - - # Finally, deploy it to your very own server - - name: Deploy To Live - run: rsync -avzh --delete -e 'ssh' public/* --rsync-path='mkdir -p ${{secrets.target_dir_main}} && rsync' ${{secrets.ssh_user}}@${{secrets.ssh_host}}:${{secrets.target_dir_main}} + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Check out latest code + uses: actions/checkout@v2 + + # Grab the required version of NodeJS + - name: Set Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.17.0" + + # Install all the Node dependencies for Gatsby, using your package.json file. + - name: Install Dependencies + run: npm install --legacy-peer-deps + + # Speaks for itself no? + - name: Build Gatsby Site + run: npm run build + + # This was the hardest part for me to figure out - see article for more details + - name: Install Deployment SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{secrets.deploy_key}} + known_hosts: ${{secrets.known_hosts}} + + # Finally, deploy it to your very own server + - name: Deploy To Live + run: rsync -avzh --delete -e 'ssh' public/* --rsync-path='mkdir -p ${{secrets.target_dir_main}} && rsync' ${{secrets.ssh_user}}@${{secrets.ssh_host}}:${{secrets.target_dir_main}} diff --git a/src/components/modules/faq.js b/src/components/modules/faq.js index 72d26b44c..6aab4e534 100644 --- a/src/components/modules/faq.js +++ b/src/components/modules/faq.js @@ -21,7 +21,14 @@ const Faq = (props) => { >
-
);