Skip to content

Commit

Permalink
Use updated Sphinx workflow template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 12, 2024
1 parent b8e1096 commit 5d718bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd %~dp0
REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=py -3.12 -m sphinx.cmd.build -E -a -j 8 --color -w warning.log
set SPHINXBUILD=py -3.12 -m sphinx build -E -a -j 8 --color -w warning.log
)
set SOURCEDIR=.
set BUILDDIR=_build
Expand Down
10 changes: 7 additions & 3 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if ($copyall)
if ($clean)
{ Write-Host -ForegroundColor DarkYellow "[live][DOC] Cleaning documentation build directories ..."
rm -Force .\doc\$PackageName\*
.\doc\make.bat clean
rm -Force .\doc\_build\*
}

if ($build)
Expand Down Expand Up @@ -109,7 +109,9 @@ $jobs = @()
if ($livedoc)
{ Write-Host -ForegroundColor DarkYellow "[live][DOC] Building documentation using Sphinx ..."

.\doc\make.bat html --verbose
cd doc
py -3.12 -m sphinx build -v -E -a -b html -w _build/html.log . _build/html
cd -

Write-Host -ForegroundColor DarkYellow "[live][DOC] Documentation finished"
}
Expand All @@ -119,7 +121,9 @@ elseif ($doc)

# Compile documentation
$compileDocFunc = {
.\doc\make.bat html --verbose
cd doc
py -3.12 -m sphinx build -v -E -a -b html -w _build/html.log . _build/html
cd -
}
$docJob = Start-Job -Name "Documentation" -ScriptBlock $compileDocFunc
# $jobs += $docJob
Expand Down

0 comments on commit 5d718bd

Please sign in to comment.