-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MichaelHaussmann/dev
Dev to main
- Loading branch information
Showing
14 changed files
with
1,320 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
API | ||
===== | ||
|
||
Resolver | ||
--- | ||
|
||
.. autoclass:: resolva.Resolver | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# Getting started with sphinx | ||
# https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html | ||
|
||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
################################################################################################### | ||
# Sys path setting for autodoc (needs to be able to import the code) | ||
import sys | ||
from pathlib import Path | ||
here = Path(__file__) | ||
root = here.parent.parent | ||
venv = root / 'venv' / 'lib' / 'python3.7' / 'site-packages' | ||
print(root) | ||
sys.path.append(str(root)) | ||
sys.path.append(str(venv)) | ||
# sys.exit() | ||
|
||
################################################################################################### | ||
# General options | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
project = 'Resolva' | ||
copyright = '2024, Michael Haussmann' | ||
author = 'Michael Haussmann' | ||
release = '0.1.0' | ||
|
||
extensions = ['myst_parser', | ||
# 'sphinx.ext.duration', | ||
'sphinx.ext.napoleon', # Google format doctrings -> reSt before parsed | ||
'sphinx.ext.doctest', | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.autosummary', | ||
# 'sphinx.ext.todo', | ||
'sphinx.ext.viewcode', | ||
] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
||
################################################################################################### | ||
# HTML options | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
html_static_path = ['_static'] | ||
html_title = "Resolva Documentation" | ||
# html_logo = "img/small.png" | ||
html_favicon = "img/favicon.ico" | ||
|
||
html_theme_options = { | ||
# 'logo_only': True, | ||
'display_version': True, | ||
'prev_next_buttons_location': 'bottom', | ||
'style_external_links': True, # Toc options | ||
'collapse_navigation': False, | ||
# 'sticky_navigation': False, | ||
'navigation_depth': 3, | ||
'includehidden': True, | ||
'titles_only': False | ||
} | ||
|
||
################################################################################################### | ||
# Autodoc | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration | ||
|
||
# Automatically extract typehints when specified and place them in | ||
# descriptions of the relevant function/method. | ||
autodoc_typehints = "description" | ||
|
||
# Don't show class signature with the class' name. | ||
autodoc_class_signature = "separated" | ||
|
||
autodoc_default_options = { | ||
# 'members': 'var1, var2', | ||
'member-order': 'bysource', | ||
# 'special-members': '__init__', | ||
'undoc-members': True, | ||
# 'exclude-members': '__weakref__' | ||
} | ||
|
||
|
||
################################################################################################### | ||
# Napoleon, for Google docstring format | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#docstrings | ||
# | ||
napoleon_google_docstring = True | ||
# napoleon_numpy_docstring = True | ||
napoleon_include_init_with_doc = True | ||
napoleon_include_private_with_doc = False | ||
napoleon_include_special_with_doc = True | ||
napoleon_use_admonition_for_examples = False | ||
napoleon_use_admonition_for_notes = False | ||
napoleon_use_admonition_for_references = False | ||
napoleon_use_ivar = False | ||
napoleon_use_param = True | ||
napoleon_use_rtype = True | ||
napoleon_preprocess_types = False | ||
napoleon_type_aliases = None | ||
napoleon_attr_annotations = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Index | ||
===== |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
.. toctree:: | ||
:caption: Getting Started | ||
:maxdepth: 2 | ||
:hidden: | ||
|
||
overview | ||
usage | ||
|
||
.. toctree:: | ||
:caption: Reference Documentation | ||
:maxdepth: 2 | ||
:hidden: | ||
|
||
api | ||
genindex | ||
|
||
.. include:: overview.md | ||
:parser: myst_parser.docutils_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=. | ||
set BUILDDIR=_build | ||
|
||
%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.https://www.sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
Oops, something went wrong.