Files
firefox/testing/web-platform/tests/docs/make.bat
T
Mike Pennisi a682c491d7 Bug 1560917 [wpt PR 17418] - [docs] Incorporate wptserve documentation , a=testonly
Automatic update from web-platform-tests
[docs] Enable Sphinx's "nit-picky" mode

The `-n` flag to Sphinx is documented as "warn about all missing
references." Enable that flag and correct the missing references which
were previously tolerated.

--
[docs] Incorporate wptserve documentation

While Sphinx is capable of including the contents of files which exist
outside of the documentation root (via the `include` directive), it
interprets such text in the context of the including file. That makes
the mechanism inappropriate for including documentation that references
still other files using relative paths.

To address this, create a symbolic link to the `wptserve` source
directory. Fix or ignore infractions in the newly-incorporated files.

--

wpt-commits: 929bb86fff798cac3b94af7a2549480fac40a84e, a54dccec285341423d3e956bcbdbaac5b0e45ab8
wpt-pr: 17418
2019-07-24 13:30:42 +01:00

40 lines
908 B
Batchfile

@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
)
if not exist tools\ ( mkdir tools )
if not exist tools\wptserve\ ( mklink /d tools\wptserve ..\..\tools\wptserve )
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd