Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ htmlcov/

# Sphinx build output
docs/_build/
docs/api/generated/
docs/auto_examples/
docs/sg_execution_times.rst
build/html/
build/doctrees/

# Generated Pyodide wheel (built by workflow / make html — never commit)
docs/_static/wheels/
docs/_static/anywidget_config.js

# Editor / IDE
.idea/
Expand All @@ -41,5 +45,3 @@ docs/_static/wheels/

# macOS
.DS_Store


5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ help:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
rm -rf $(BUILDDIR)/*
rm -rf docs/auto_examples/
rm -rf docs/api/generated/
11 changes: 10 additions & 1 deletion make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set SOURCEDIR=docs
set BUILDDIR=build

%SPHINXBUILD% >NUL 2>NUL
Expand All @@ -23,6 +23,15 @@ if errorlevel 9009 (
exit /b 1
)

if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
rmdir /q /s docs\api\generated
rmdir /q /s docs\auto_examples
goto end
)


if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
Expand Down