Skip to content

Commit

Permalink
Add the chocolatey 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 6c65887 commit e78be75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/full_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ jobs:
# # Install Pandoc
# C:\ProgramData\chocolatey\bin\choco install pandoc -y
# }
$chocoPath = "C:\ProgramData\chocolatey\bin"
if ($env:PATH -notlike "*$chocoPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) chocoPath", [System.EnvironmentVariableTarget]::Machine)
echo "Chocolatey path added. Pandoc shim is now in PATH."
} else {
echo "The Chocolatey path is already in the PATH variable."
}
#C:\ProgramData\chocolatey\bin\choco install pandoc -y
choco install pandoc -y
#$chocoPath = "C:\ProgramData\chocolatey\bin"
#if ($env:PATH -notlike "*$chocoPath*") {
# [Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) chocoPath", [System.EnvironmentVariableTarget]::Machine)
# echo "Chocolatey path added. Pandoc shim is now in PATH."
#} else {
# echo "The Chocolatey path is already in the PATH variable."
#}
C:\ProgramData\chocolatey\bin\choco install pandoc -y
# Add the pandoc path to PATH.
#$pandocPath = Join-Path $env:ChocolateyInstall 'bin'
Expand Down
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def visit_desc_content(self, node: Element) -> None:
numpydoc_use_plots = True
numpydoc_show_class_members = False
numpydoc_xref_param_type = True
nbsphinx_pandoc = r"C:\ProgramData\chocolatey\bin\pandoc.exe" # Shouldn't have to do this explicitly

# Consider enabling numpydoc validation. See:
# https://numpydoc.readthedocs.io/en/latest/validation.html#
Expand Down

0 comments on commit e78be75

Please sign in to comment.