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 2020        with :
2121          python-version : ${{ matrix.python-version }} 
2222
23-       - name : Give permission to run scripts 
24-         run : chmod +x ./docs/scripts/doc8_style_check.sh 
25- 
2623      - name : Install Dependencies 
2724        run :  pip install -e .[docs] 
2825
Original file line number Diff line number Diff line change 55#  from the environment for the first two.
66SPHINXOPTS     ?=
77SPHINXBUILD    ?= sphinx-build
8+ SPHINXAUTOBUILD  = sphinx-autobuild
89SOURCEDIR      = source
910BUILDDIR       = build
1011
1415
1516.PHONY : help Makefile
1617
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) " $(SPHINXOPTS )  $(O ) 
24+ 
1725#  Catch-all target: route all unknown targets to Sphinx using the new
1826#  "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
1927% 
Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ REM Command file for Sphinx documentation
77if  " %SPHINXBUILD% " ==  " " 
88	set  SPHINXBUILD = sphinx-build
99)
10+ if  " %SPHINXAUTOBUILD% " ==  " " 
11+ 	set  SPHINXAUTOBUILD = sphinx-autobuild
12+ )
1013set  SOURCEDIR = source
1114set  BUILDDIR = build
1215
1316if  " %1 " ==  " " goto  help
1417
18+ if  " %1 " ==  " docs" goto  docs
19+ 
1520%SPHINXBUILD%  > NUL  2 > NUL 
1621if  errorlevel  9009  (
1722	echo .
@@ -28,6 +33,13 @@ if errorlevel 9009 (
2833%SPHINXBUILD%  -M %1  %SOURCEDIR%  %BUILDDIR%  %SPHINXOPTS%  %O% 
2934goto  end
3035
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+ 
3143:help 
3244%SPHINXBUILD%  -M help %SOURCEDIR%  %BUILDDIR%  %SPHINXOPTS%  %O% 
3345
Original file line number Diff line number Diff line change 3030extensions  =  [
3131    "sphinx.ext.intersphinx" ,
3232    "sphinx_reredirects" ,
33+     'sphinx_rtd_theme' ,
34+     "sphinx_rtd_dark_mode" ,
35+     "sphinx.ext.extlinks" ,
36+     "sphinx_copybutton" ,
3337]
3438
3539
Original file line number Diff line number Diff line change 6262    sphinx-rtd-theme>=1.0.0
6363    sphinx-reredirects >= 0.1.2
6464    doc8>=0.11.2
65+     sphinx-autobuild
66+     sphinx-rtd-dark-mode>=1.3.0
67+     sphinx-copybutton
6568
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments