Skip to content

Commit

Permalink
Updated Sphinx documentation config
Browse files Browse the repository at this point in the history
  • Loading branch information
legendofa committed Sep 21, 2023
1 parent 7b42479 commit fd8d72c
Show file tree
Hide file tree
Showing 12 changed files with 191 additions and 26 deletions.
5 changes: 0 additions & 5 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ services:
- 50051:50051
material-server-db:
image: mongo
restart: always
volumes:
- material-server-mongodb:/data/db
mongoexpress:
image: mongo-express
ports:
Expand All @@ -19,5 +16,3 @@ services:
- material-server-db
environment:
- ME_CONFIG_MONGODB_URL=mongodb://db:27017
volumes:
material-server-mongodb:
48 changes: 43 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
# import os
# import sys
# import sphinx_rtd_theme
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# sys.path.insert(0, os.path.abspath('..'))
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx_rtd_theme"]
import os
import sys
import sphinx_rtd_theme

# This is to prevent mypy from declaring sphinx_rtd_theme as a missing import.
sphinx_rtd_theme

sys.path.insert(0, os.path.abspath(".."))

project = "evalquiz-material-server"
copyright = "2023, Author"
author = "Author"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.todo",
"sphinx.ext.napoleon",
"sphinx_rtd_theme",
]

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

language = "en"

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]

# -- Options for todo extension ----------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration

todo_include_todos = True
19 changes: 19 additions & 0 deletions docs/evalquiz_proto.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
evalquiz\_proto package
=======================

Subpackages
-----------

.. toctree::
:maxdepth: 4

evalquiz_proto.shared
evalquiz_proto.tests

Module contents
---------------

.. automodule:: evalquiz_proto
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/evalquiz_proto.shared.generated.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
evalquiz\_proto.shared.generated package
========================================

Module contents
---------------

.. automodule:: evalquiz_proto.shared.generated
:members:
:undoc-members:
:show-inheritance:
53 changes: 53 additions & 0 deletions docs/evalquiz_proto.shared.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
evalquiz\_proto.shared package
==============================

Subpackages
-----------

.. toctree::
:maxdepth: 4

evalquiz_proto.shared.generated

Submodules
----------

evalquiz\_proto.shared.exceptions module
----------------------------------------

.. automodule:: evalquiz_proto.shared.exceptions
:members:
:undoc-members:
:show-inheritance:

evalquiz\_proto.shared.internal\_lecture\_material module
---------------------------------------------------------

.. automodule:: evalquiz_proto.shared.internal_lecture_material
:members:
:undoc-members:
:show-inheritance:

evalquiz\_proto.shared.mimetype\_resolver module
------------------------------------------------

.. automodule:: evalquiz_proto.shared.mimetype_resolver
:members:
:undoc-members:
:show-inheritance:

evalquiz\_proto.shared.path\_dictionary\_controller module
----------------------------------------------------------

.. automodule:: evalquiz_proto.shared.path_dictionary_controller
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: evalquiz_proto.shared
:members:
:undoc-members:
:show-inheritance:
18 changes: 18 additions & 0 deletions docs/evalquiz_proto.tests.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
evalquiz\_proto.tests package
=============================

Subpackages
-----------

.. toctree::
:maxdepth: 4

evalquiz_proto.tests.shared

Module contents
---------------

.. automodule:: evalquiz_proto.tests
:members:
:undoc-members:
:show-inheritance:
21 changes: 21 additions & 0 deletions docs/evalquiz_proto.tests.shared.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
evalquiz\_proto.tests.shared package
====================================

Submodules
----------

evalquiz\_proto.tests.shared.test\_internal\_lecture\_material module
---------------------------------------------------------------------

.. automodule:: evalquiz_proto.tests.shared.test_internal_lecture_material
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: evalquiz_proto.tests.shared
:members:
:undoc-members:
:show-inheritance:
23 changes: 19 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
Welcome to the Evalquiz documentation!
======================================
.. evalquiz-material-server documentation master file, created by
sphinx-quickstart on Thu Sep 21 09:12:24 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to evalquiz-material-server's documentation!
====================================================

.. toctree::
:maxdepth: 2
:maxdepth: 4
:caption: Contents:

evalquiz_material_server
evalquiz_proto


Indices and tables
==================

modules
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
7 changes: 0 additions & 7 deletions docs/modules.rst

This file was deleted.

3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ ignore_missing_imports = True
[mypy-pkg_resources]
ignore_missing_imports = True

[mypy-setuptools]
ignore_missing_imports = True

# Ignore type errors that are made by betterproto-python
[mypy-evalquiz_proto.shared.generated.*]
ignore_errors = True
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ jsonpickle
schedule
sphinx
sphinx_rtd_theme
pymongo
pymongo
setuptools
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import pathlib
import pkg_resources
from setuptools import setup

with pathlib.Path("requirements.txt").open() as requirements_txt:
install_requires = [
str(requirement)
for requirement in pkg_resources.parse_requirements(requirements_txt)
]

from distutils.core import setup

setup(
name="Evalquiz Material Server",
name="evalquiz_material_server",
version="1.0",
author_email="st170001@stud.uni-stuttgart.de",
packages=["evalquiz_pipeline_server"],
packages=["evalquiz_material_server"],
install_requires=install_requires,
)

0 comments on commit fd8d72c

Please sign in to comment.