From 73e1985a53664f261d5d53f4e8aecac8a0380106 Mon Sep 17 00:00:00 2001 From: Monika <162727606+pierzchala-m@users.noreply.github.com> Date: Fri, 6 Mar 2026 11:55:53 -0500 Subject: [PATCH 1/5] Implement pandoc installation in setup script Add installation steps for pandoc based on OS detection. Signed-off-by: Monika <162727606+pierzchala-m@users.noreply.github.com> --- setup.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/setup.sh b/setup.sh index 2b9e7a9d3..a46fa1203 100755 --- a/setup.sh +++ b/setup.sh @@ -27,4 +27,29 @@ then fi fi +# Install pandoc for markdown processing +if ! command -v pandoc >/dev/null +then + echo "Not found: pandoc, installing" + if [[ -n "$CF_PAGES_URL" ]] + then + # Cloudflare Pages - use apt + apt-get update && apt-get install -y pandoc + elif [[ "$OSTYPE" == "darwin"* ]] + then + brew install pandoc + elif [[ "$OSTYPE" == "linux-gnu"* ]] + then + if [[ -e /usr/bin/apt-get ]] + then + sudo apt-get update && sudo apt-get install -y pandoc + else + sudo yum install -y pandoc + fi + elif [[ "$OSTYPE" == "msys" ]] + then + echo "Windows detected - install pandoc manually: winget install pandoc" + fi +fi + npm ci From b814c7969a6ab813b6fc1bb1c89c77d7270280ea Mon Sep 17 00:00:00 2001 From: Monika <162727606+pierzchala-m@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:11:14 -0500 Subject: [PATCH 2/5] Implement pandoc installation check in build.sh Add installation check for pandoc in build script Signed-off-by: Monika <162727606+pierzchala-m@users.noreply.github.com> --- build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.sh b/build.sh index 90cc53e69..26eb0d3ab 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,25 @@ #!/bin/bash set -eo pipefail +# Check for pandoc (required for some markdown files) +if ! command -v pandoc >/dev/null; then + echo "pandoc not found, attempting to install..." + if [[ -n "$CF_PAGES" ]]; then + # Cloudflare Pages build environment + apt-get update && apt-get install -y pandoc + elif [[ "$OSTYPE" == "darwin"* ]]; then + brew install pandoc || echo "Warning: Could not install pandoc" + elif [[ "$OSTYPE" == "linux-gnu"* ]]; then + if [[ -e /usr/bin/apt-get ]]; then + sudo apt-get update && sudo apt-get install -y pandoc + else + sudo yum install -y pandoc || echo "Warning: Could not install pandoc" + fi + else + echo "Warning: pandoc not installed. Some pages may not render correctly." + fi +fi + HUGO_RUN="" OPTS="" BASE_URL="/" From 417e49f21c2191ab4f27a114cfb6ca51c7e80a08 Mon Sep 17 00:00:00 2001 From: Monika <162727606+pierzchala-m@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:11:35 -0500 Subject: [PATCH 3/5] Remove pandoc installation from setup.sh Removed pandoc installation checks from setup script. Signed-off-by: Monika <162727606+pierzchala-m@users.noreply.github.com> --- setup.sh | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/setup.sh b/setup.sh index a46fa1203..2b9e7a9d3 100755 --- a/setup.sh +++ b/setup.sh @@ -27,29 +27,4 @@ then fi fi -# Install pandoc for markdown processing -if ! command -v pandoc >/dev/null -then - echo "Not found: pandoc, installing" - if [[ -n "$CF_PAGES_URL" ]] - then - # Cloudflare Pages - use apt - apt-get update && apt-get install -y pandoc - elif [[ "$OSTYPE" == "darwin"* ]] - then - brew install pandoc - elif [[ "$OSTYPE" == "linux-gnu"* ]] - then - if [[ -e /usr/bin/apt-get ]] - then - sudo apt-get update && sudo apt-get install -y pandoc - else - sudo yum install -y pandoc - fi - elif [[ "$OSTYPE" == "msys" ]] - then - echo "Windows detected - install pandoc manually: winget install pandoc" - fi -fi - npm ci From 78eaadf063f658c2ed0e7de3b0dd0fdb4aa1ce3d Mon Sep 17 00:00:00 2001 From: Monika <162727606+pierzchala-m@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:59:22 -0500 Subject: [PATCH 4/5] Install Pandoc in index-docs workflow Added installation step for Pandoc in the workflow. Signed-off-by: Monika <162727606+pierzchala-m@users.noreply.github.com> --- .github/workflows/index-docs.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-docs.yml b/.github/workflows/index-docs.yml index 7c1ffebea..a2ce05b1e 100644 --- a/.github/workflows/index-docs.yml +++ b/.github/workflows/index-docs.yml @@ -7,7 +7,7 @@ on: types: - completed branches: [master] - + # Manual trigger workflow_dispatch: inputs: @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest # Only run if the triggering workflow succeeded, or if manually triggered if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} - + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -43,6 +43,11 @@ jobs: node-version: '22' cache: 'npm' + - name: Install Pandoc + run: | + sudo apt-get update + sudo apt-get install -y pandoc + - name: Install dependencies run: npm ci From 503cf6811efe6cdf1e47ba6482a01c9fdc95a5f1 Mon Sep 17 00:00:00 2001 From: Monika <162727606+pierzchala-m@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:59:54 -0500 Subject: [PATCH 5/5] Remove pandoc installation check from build.sh Removed pandoc installation check from build script. Signed-off-by: Monika <162727606+pierzchala-m@users.noreply.github.com> --- build.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/build.sh b/build.sh index 26eb0d3ab..90cc53e69 100755 --- a/build.sh +++ b/build.sh @@ -1,25 +1,6 @@ #!/bin/bash set -eo pipefail -# Check for pandoc (required for some markdown files) -if ! command -v pandoc >/dev/null; then - echo "pandoc not found, attempting to install..." - if [[ -n "$CF_PAGES" ]]; then - # Cloudflare Pages build environment - apt-get update && apt-get install -y pandoc - elif [[ "$OSTYPE" == "darwin"* ]]; then - brew install pandoc || echo "Warning: Could not install pandoc" - elif [[ "$OSTYPE" == "linux-gnu"* ]]; then - if [[ -e /usr/bin/apt-get ]]; then - sudo apt-get update && sudo apt-get install -y pandoc - else - sudo yum install -y pandoc || echo "Warning: Could not install pandoc" - fi - else - echo "Warning: pandoc not installed. Some pages may not render correctly." - fi -fi - HUGO_RUN="" OPTS="" BASE_URL="/"