From 9afe93d8f6ce0d9188de6ccb582cb72994d6d7c3 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 11 Feb 2019 16:45:57 +0900 Subject: [PATCH] refactor: test: Remove unused settings from conf.py --- tests/roots/test-build-htmlhelp/make.bat | 64 ----------------------- tests/roots/test-domain-cpp/conf.py | 1 - tests/roots/test-domain-js/conf.py | 1 - tests/roots/test-domain-py/conf.py | 1 - tests/roots/test-footnotes/conf.py | 1 - tests/roots/test-manpage_url/conf.py | 1 - tests/roots/test-maxlistdepth/conf.py | 1 - tests/roots/test-numfig/conf.py | 1 - tests/roots/test-toctree-empty/conf.py | 1 - tests/roots/test-toctree-glob/conf.py | 1 - tests/roots/test-toctree-maxdepth/conf.py | 1 - 11 files changed, 74 deletions(-) delete mode 100644 tests/roots/test-build-htmlhelp/make.bat diff --git a/tests/roots/test-build-htmlhelp/make.bat b/tests/roots/test-build-htmlhelp/make.bat deleted file mode 100644 index 333fd1439..000000000 --- a/tests/roots/test-build-htmlhelp/make.bat +++ /dev/null @@ -1,64 +0,0 @@ -@echo off -setlocal - -pushd %~dp0 - -set this=%~n0 - -if not defined PYTHON set PYTHON=py - -if not defined SPHINXBUILD ( - %PYTHON% -c "import sphinx" > nul 2> nul - if errorlevel 1 ( - echo Installing sphinx with %PYTHON% - %PYTHON% -m pip install sphinx - if errorlevel 1 exit /B - ) - set SPHINXBUILD=%PYTHON% -c "import sphinx.cmd.build, sys; sys.exit(sphinx.cmd.build.main())" -) - -rem Search for HHC in likely places -set HTMLHELP= -where hhc /q && set HTMLHELP=hhc && goto :skiphhcsearch -where /R ..\externals hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc" -if not exist "%HTMLHELP%" where /R "%ProgramFiles(x86)%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc" -if not exist "%HTMLHELP%" where /R "%ProgramFiles%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc" -if not exist "%HTMLHELP%" ( - echo. - echo.The HTML Help Workshop was not found. Set the HTMLHELP variable - echo.to the path to hhc.exe or download and install it from - echo.http://msdn.microsoft.com/en-us/library/ms669985 - exit /B 1 -) -echo hhc.exe path: %HTMLHELP% - -if "%BUILDDIR%" EQU "" set BUILDDIR=build - -%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. - popd - exit /B 1 -) - -set SPHINXOPTS=-D html_theme_options.body_max_width=none %SPHINXOPTS% - -cmd /S /C "%SPHINXBUILD% %SPHINXOPTS% -bhtmlhelp -dbuild\doctrees . "%BUILDDIR%\htmlhelp" - -"%HTMLHELP%" "%BUILDDIR%\htmlhelp\test.hhp" -rem hhc.exe seems to always exit with code 1, reset to 0 for less than 2 -if not errorlevel 2 cmd /C exit /b 0 - -echo. -if errorlevel 1 ( - echo.Build failed (exit code %ERRORLEVEL%^), check for error messages - echo.above. Any output will be found in %BUILDDIR%\%1 -) else ( - echo.Build succeeded. All output should be in %BUILDDIR%\%1 -) - -popd diff --git a/tests/roots/test-domain-cpp/conf.py b/tests/roots/test-domain-cpp/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-domain-cpp/conf.py +++ b/tests/roots/test-domain-cpp/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-domain-js/conf.py b/tests/roots/test-domain-js/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-domain-js/conf.py +++ b/tests/roots/test-domain-js/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-domain-py/conf.py b/tests/roots/test-domain-py/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-domain-py/conf.py +++ b/tests/roots/test-domain-py/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-footnotes/conf.py b/tests/roots/test-footnotes/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-footnotes/conf.py +++ b/tests/roots/test-footnotes/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-manpage_url/conf.py b/tests/roots/test-manpage_url/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-manpage_url/conf.py +++ b/tests/roots/test-manpage_url/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-maxlistdepth/conf.py b/tests/roots/test-maxlistdepth/conf.py index b04872cea..a3b12a228 100644 --- a/tests/roots/test-maxlistdepth/conf.py +++ b/tests/roots/test-maxlistdepth/conf.py @@ -1,4 +1,3 @@ -html_theme = 'classic' exclude_patterns = ['_build'] latex_elements = { diff --git a/tests/roots/test-numfig/conf.py b/tests/roots/test-numfig/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-numfig/conf.py +++ b/tests/roots/test-numfig/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-toctree-empty/conf.py b/tests/roots/test-toctree-empty/conf.py index 171892c11..bda61da95 100644 --- a/tests/roots/test-toctree-empty/conf.py +++ b/tests/roots/test-toctree-empty/conf.py @@ -1,3 +1,2 @@ -html_theme = 'classic' exclude_patterns = ['_build'] templates_path = ['_templates'] diff --git a/tests/roots/test-toctree-glob/conf.py b/tests/roots/test-toctree-glob/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-toctree-glob/conf.py +++ b/tests/roots/test-toctree-glob/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build'] diff --git a/tests/roots/test-toctree-maxdepth/conf.py b/tests/roots/test-toctree-maxdepth/conf.py index 46bb290c9..a45d22e28 100644 --- a/tests/roots/test-toctree-maxdepth/conf.py +++ b/tests/roots/test-toctree-maxdepth/conf.py @@ -1,2 +1 @@ -html_theme = 'classic' exclude_patterns = ['_build']