File tree Expand file tree Collapse file tree 6 files changed +27
-3
lines changed Expand file tree Collapse file tree 6 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 20
20
with :
21
21
python-version : ${{ matrix.python-version }}
22
22
23
- - name : Give permission to run scripts
24
- run : chmod +x ./docs/scripts/doc8_style_check.sh
25
-
26
23
- name : Install Dependencies
27
24
run : pip install -e .[docs]
28
25
Original file line number Diff line number Diff line change 5
5
# from the environment for the first two.
6
6
SPHINXOPTS ?=
7
7
SPHINXBUILD ?= sphinx-build
8
+ SPHINXAUTOBUILD = sphinx-autobuild
8
9
SOURCEDIR = source
9
10
BUILDDIR = build
10
11
14
15
15
16
.PHONY : help Makefile
16
17
18
+ # Run the development server using sphinx-autobuild
19
+ docs :
20
+ @echo
21
+ @echo " Starting up the docs server..."
22
+ @echo
23
+ $(SPHINXAUTOBUILD ) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR ) " $( BUILDDIR) /html" $(SPHINXOPTS ) $(O )
24
+
17
25
# Catch-all target: route all unknown targets to Sphinx using the new
18
26
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
27
% : Makefile
Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ REM Command file for Sphinx documentation
7
7
if " %SPHINXBUILD% " == " " (
8
8
set SPHINXBUILD = sphinx-build
9
9
)
10
+ if " %SPHINXAUTOBUILD% " == " " (
11
+ set SPHINXAUTOBUILD = sphinx-autobuild
12
+ )
10
13
set SOURCEDIR = source
11
14
set BUILDDIR = build
12
15
13
16
if " %1 " == " " goto help
14
17
18
+ if " %1 " == " docs" goto docs
19
+
15
20
%SPHINXBUILD% > NUL 2 > NUL
16
21
if errorlevel 9009 (
17
22
echo .
@@ -28,6 +33,13 @@ if errorlevel 9009 (
28
33
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
34
goto end
30
35
36
+ :docs
37
+ @ echo
38
+ @ echo Starting up the docs server...
39
+ @ echo
40
+ %SPHINXAUTOBUILD% --port 8000 --watch %SOURCEDIR% %SOURCEDIR% %BUILDDIR% \html %SPHINXOPTS% %O%
41
+ goto end
42
+
31
43
:help
32
44
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
45
Original file line number Diff line number Diff line change 30
30
extensions = [
31
31
"sphinx.ext.intersphinx" ,
32
32
"sphinx_reredirects" ,
33
+ 'sphinx_rtd_theme' ,
34
+ "sphinx_rtd_dark_mode" ,
35
+ "sphinx.ext.extlinks" ,
36
+ "sphinx_copybutton" ,
33
37
]
34
38
35
39
Original file line number Diff line number Diff line change 62
62
sphinx-rtd-theme>=1.0.0
63
63
sphinx-reredirects >= 0.1.2
64
64
doc8>=0.11.2
65
+ sphinx-autobuild
66
+ sphinx-rtd-dark-mode>=1.3.0
67
+ sphinx-copybutton
65
68
You can’t perform that action at this time.
0 commit comments