diff --git a/doc/Makefile b/doc/Makefile deleted file mode 100644 index d4bb2cbb..00000000 --- a/doc/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# Minimal makefile for Sphinx documentation -# - -# You can set these variables from the command line, and also -# from the environment for the first two. -SPHINXOPTS ?= -SPHINXBUILD ?= sphinx-build -SOURCEDIR = . -BUILDDIR = _build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -.PHONY: help Makefile - -# Catch-all target: route all unknown targets to Sphinx using the new -# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/doc/README.md b/doc/README.md index 30b881ab..6dbdf810 100644 --- a/doc/README.md +++ b/doc/README.md @@ -29,7 +29,7 @@ Khiops Python library. ./create-doc -d -t # To only execute Sphinx on updated reST resources -# make html +# sphinx-build -M html . _build/ ``` ## Sphinx diff --git a/doc/clean-doc b/doc/clean-doc index 6043a31c..b030d72d 100755 --- a/doc/clean-doc +++ b/doc/clean-doc @@ -75,7 +75,7 @@ parse_commandline "$@" rm -v core/generated/*.rst rm -v sklearn/generated/*.rst rm -v internal/generated/*.rst -make clean +sphinx-build -M clean . _build if [[ $_arg_clean_tutorial == "on" ]] then diff --git a/doc/create-doc b/doc/create-doc index 57bd2bf6..62cdbaf3 100755 --- a/doc/create-doc +++ b/doc/create-doc @@ -106,4 +106,4 @@ cd "../.." # Create the documentation with Sphinx echo "Executing Sphinx" -make html +sphinx-build -M html . _build/ diff --git a/doc/make.bat b/doc/make.bat deleted file mode 100644 index 922152e9..00000000 --- a/doc/make.bat +++ /dev/null @@ -1,35 +0,0 @@ -@ECHO OFF - -pushd %~dp0 - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set SOURCEDIR=. -set BUILDDIR=_build - -if "%1" == "" goto help - -%SPHINXBUILD% >NUL 2>NUL -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% -goto end - -:help -%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% - -:end -popd