Skip to content

Commit

Permalink
fix: fix typo and add _examples to the list of directories to clean (#63
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ansjhenry authored Mar 21, 2024
1 parent 83dd606 commit 5708675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = _build
APIDIR = api
EXAMPLESDIR = _examples

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -24,6 +25,7 @@ help:
clean:
rm -rf $(BUILDDIR)/*
find . -type d -name $(APIDIR) -exec rm -rf {} +
find . -type d -name $(EXAMPLESDIR) -exec rm -rf {} +

# Customized pdf for svg format images
pdf:
Expand Down
3 changes: 2 additions & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if "%SPHINXBUILD%" == "" (
set SOURCEDIR=source
set BUILDDIR=_build
set APIDIR=api
set EXAMPLESDIR=_examples

if "%1" == "" goto help
if "%1" == "clean" goto clean
Expand All @@ -32,7 +33,7 @@ goto end

:clean
rmdir /s /q %BUILDDIR% > /NUL 2>&1
for /d /r %SOURCEDIR% %%d in (%APIDIR) do @if exist "%%d" rmdir /s /q "%%d"
for /d /r %SOURCEDIR% %%d in (%APIDIR% %EXAMPLESDIR%) do @if exist "%%d" rmdir /s /q "%%d"
goto end

:help
Expand Down

0 comments on commit 5708675

Please sign in to comment.