Skip to content

Commit

Permalink
Add the pandoc path to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-Crawford committed Dec 10, 2023
1 parent 5b3bc88 commit 2c9ffbb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/full_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ jobs:
# C:\ProgramData\chocolatey\bin\choco install pandoc -y
# }
C:\ProgramData\chocolatey\bin\choco install pandoc -y
# Add the pandoc path to PATH.
$pandocPath = (Get-Command pandoc).Path | Split-Path
if ($env:PATH -notlike "*$pandocPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) $pandocPath", [System.EnvironmentVariableTarget]::Machine)
echo "Pandoc path added."
} else {
echo "Pandoc path is already in the PATH variable."
}
- name: 'Create virtual env'
run: |
python -m venv testenv
Expand All @@ -76,7 +84,7 @@ jobs:
run: |
testenv\Scripts\Activate.ps1
cd doc
set BUILD_EXAMPLES=true
# $BUILD_EXAMPLES = true
.\make.bat html
# sphinx-build -j auto --color -b html -a doc/source doc/_build/html

Expand Down

0 comments on commit 2c9ffbb

Please sign in to comment.