maestral/docs/conf.py

78 lines
2.2 KiB
Python
Raw Normal View History

2020-11-20 20:09:30 +03:00
import os
2020-11-20 17:24:06 +03:00
import sys
2020-04-02 23:06:22 +03:00
import time
2020-11-20 17:24:06 +03:00
# -- Path setup ------------------------------------------------------------------------
2020-11-20 20:09:30 +03:00
sys.path.insert(0, os.path.abspath("../src"))
2020-04-02 23:06:22 +03:00
2020-10-27 19:22:10 +03:00
# -- Project information ---------------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-09-20 14:03:12 +03:00
author = "Sam Schott"
version = "1.7.0.dev2"
release = version
2020-09-20 14:03:12 +03:00
project = "Maestral"
title = "Maestral API Documentation"
copyright = f"{time.localtime().tm_year}, {author}"
2020-04-02 23:06:22 +03:00
2020-10-27 19:22:10 +03:00
# -- General configuration -------------------------------------------------------------
2020-04-02 23:06:22 +03:00
extensions = [
2022-02-11 01:12:53 +03:00
"sphinx.ext.viewcode",
2021-04-05 17:49:09 +03:00
"sphinxext.opengraph",
2020-11-21 00:44:56 +03:00
"sphinx.ext.viewcode",
2020-11-20 20:09:30 +03:00
"sphinx.ext.napoleon",
"sphinx.ext.todo",
"sphinx.ext.intersphinx",
2022-02-11 01:12:53 +03:00
"autoapi.extension",
2020-11-20 20:09:30 +03:00
"m2r2",
2020-04-02 23:06:22 +03:00
]
2020-09-20 14:03:12 +03:00
source_suffix = [".rst", ".md"]
master_doc = "index"
language = "en"
2020-09-20 14:00:46 +03:00
# html4_writer = True
2020-04-02 23:06:22 +03:00
2020-10-27 19:22:10 +03:00
# -- Options for HTML output -----------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-09-20 14:03:12 +03:00
html_theme = "sphinx_rtd_theme"
2020-11-21 03:11:44 +03:00
html_logo = "maestral-symbolic.svg"
2020-04-02 23:06:22 +03:00
2020-10-27 19:22:10 +03:00
# -- Options for LaTeX output ----------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-09-20 14:03:12 +03:00
latex_documents = [
(master_doc, "maestral.tex", title, author, "manual"),
]
2020-04-02 23:06:22 +03:00
2020-10-27 19:22:10 +03:00
# -- Extension configuration -----------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-11-20 20:09:30 +03:00
# sphinx.ext.autodoc
2020-11-20 04:55:11 +03:00
autodoc_typehints = "description"
autoclass_content = "both"
autodoc_member_order = "bysource"
autodoc_inherit_docstrings = False
2022-02-11 01:12:53 +03:00
# autoapi.extension
autoapi_type = "python"
autoapi_dirs = ["../src/maestral"]
autoapi_options = [
"members",
2022-02-19 22:02:08 +03:00
"undoc-members",
2022-02-11 01:12:53 +03:00
"show-inheritance",
]
autoapi_add_toctree_entry = False
2020-11-20 20:09:30 +03:00
# sphinx.ext.todo
2020-04-02 23:06:22 +03:00
todo_include_todos = True
2020-11-20 20:09:30 +03:00
2021-02-19 16:10:05 +03:00
# sphinx.ext.intersphsinx
2020-11-20 20:09:30 +03:00
intersphinx_mapping = {
2022-02-11 01:12:53 +03:00
"click": ("https://click.palletsprojects.com/en/latest/", None),
2020-11-21 00:44:56 +03:00
"dropbox": ("https://dropbox-sdk-python.readthedocs.io/en/latest/", None),
2020-11-21 17:31:45 +03:00
"fasteners": ("https://fasteners.readthedocs.io/en/latest/", None),
2022-02-19 21:33:12 +03:00
"keyring": ("https://keyring.readthedocs.io/en/latest/", None),
"Pyro5": ("https://pyro5.readthedocs.io/en/latest/", None),
2020-11-20 20:09:30 +03:00
"python": ("https://docs.python.org/3/", None),
2022-02-19 21:33:12 +03:00
"requests": ("https://docs.python-requests.org/en/master/", None),
"watchdog": ("https://python-watchdog.readthedocs.io/en/latest/", None),
2020-11-20 20:09:30 +03:00
}