Skip to content

Commit 2d936ea

Browse files
Nathan SpragueNathan Sprague
Nathan Sprague
authored and
Nathan Sprague
committed
add sphinx build stuff
1 parent f04191d commit 2d936ea

File tree

7 files changed

+155
-0
lines changed

7 files changed

+155
-0
lines changed

doc/Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/conf.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
4+
html_static_path = []
5+
6+
# enable autodoc to load local modules
7+
sys.path.insert(0, os.path.abspath(".."))
8+
9+
project = "JMU Python Gradescope Utils"
10+
copyright = "2020"
11+
author = "JMU People"
12+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx",'sphinx.ext.napoleon' ]
13+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
14+
templates_path = ["_templates"]
15+
html_theme = "sphinx_rtd_theme"
16+
html_static_path = ["_static"]
17+
intersphinx_mapping = {
18+
"python": ("https://docs.python.org/3", None)
19+
}
20+
html_theme_options = {"nosidebar": True}

doc/coverage_utils.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.. JMU Python Gradescope Utilities documentation master file, created by
2+
sphinx-quickstart on Wed Jun 1 13:47:46 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
jmu_gradescope_utils.coverage_utils
7+
===========================================================
8+
9+
10+
.. automodule:: jmu_gradescope_utils.coverage_utils
11+
:members:
12+
:private-members:
13+
:undoc-members:
14+
15+

doc/index.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. JMU Python Gradescope Utilities documentation master file, created by
2+
sphinx-quickstart on Wed Jun 1 13:47:46 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to JMU Python Gradescope Utilities's documentation!
7+
===========================================================
8+
9+
.. toctree::
10+
jmu_test_case
11+
utils
12+
coverage_utils
13+
:maxdepth: 2
14+
:caption: Contents:
15+
16+
17+
18+
Indices and tables
19+
==================
20+
21+
* :ref:`genindex`
22+
* :ref:`modindex`
23+
* :ref:`search`

doc/jmu_test_case.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. JMU Python Gradescope Utilities documentation master file, created by
2+
sphinx-quickstart on Wed Jun 1 13:47:46 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
JmuTestCase
7+
===========================================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
.. automodule:: jmu_gradescope_utils.jmu_test_case
14+
:members:
15+
:private-members:
16+
:undoc-members:
17+
18+
.. automodule:: jmu_gradescope_utils.utils
19+
:members:
20+
:private-members:
21+
:undoc-members:
22+
23+
.. automodule:: jmu_gradescope_utils.coverage_utils
24+
:members:
25+
:private-members:
26+
:undoc-members:

doc/make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.https://www.sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

doc/utils.rst

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. JMU Python Gradescope Utilities documentation master file, created by
2+
sphinx-quickstart on Wed Jun 1 13:47:46 2022.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
jmu_gradescope_utils.utils
7+
===========================================================
8+
9+
10+
.. automodule:: jmu_gradescope_utils.utils
11+
:members:
12+
:private-members:
13+
:undoc-members:
14+
15+
16+

0 commit comments

Comments
 (0)