maestral/docs/conf.py

71 lines
2.1 KiB
Python
Raw Normal View History

2020-04-02 23:06:22 +03:00
# -*- coding: utf-8 -*-
2020-09-20 14:00:46 +03:00
# -- Path setup --------------------------------------------------------------------------
2020-04-02 23:06:22 +03:00
import os
import sys
import time
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../maestral'))
2020-09-20 14:00:46 +03:00
# -- Project information -----------------------------------------------------------------
2020-04-02 23:06:22 +03:00
author = 'Sam Schott'
2020-09-20 01:12:36 +03:00
version = '1.2.1.dev0'
release = version
2020-04-02 23:06:22 +03:00
project = 'Maestral'
2020-04-03 15:12:27 +03:00
title = 'Maestral API Documentation'
copyright = '{}, {}'.format(time.localtime().tm_year, author)
2020-04-02 23:06:22 +03:00
2020-09-20 14:00:46 +03:00
# -- General configuration ---------------------------------------------------------------
2020-04-02 23:06:22 +03:00
extensions = [
2020-09-20 14:00:46 +03:00
'sphinx.ext.napoleon', # support numpy style docstrings in config module
'sphinx.ext.todo', # support for todo list
'sphinx.ext.ifconfig', # support for if-clauses in docs
'sphinx.ext.viewcode', # link back to github code
'autoapi.extension', # builds API docs from doc strings without importing module
'sphinx_click.ext', # support for click commands
'm2r', # convert markdown to rest
2020-04-02 23:06:22 +03:00
]
source_suffix = ['.rst', '.md']
master_doc = 'index'
2020-09-20 14:00:46 +03:00
language = 'en'
# html4_writer = True
2020-04-02 23:06:22 +03:00
2020-09-20 14:00:46 +03:00
# -- Options for HTML output -------------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-04-03 15:12:27 +03:00
html_theme = 'sphinx_rtd_theme'
2020-04-02 23:06:22 +03:00
html_logo = '../maestral/resources/maestral.png'
html_context = {
'css_files': [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/custom.css',
],
}
2020-09-20 14:00:46 +03:00
# -- Options for LaTeX output ------------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-04-03 15:12:27 +03:00
latex_documents = [(master_doc, 'maestral.tex', title, author, 'manual'), ]
2020-04-02 23:06:22 +03:00
2020-09-20 14:00:46 +03:00
# -- Extension configuration -------------------------------------------------------------
2020-04-02 23:06:22 +03:00
2020-09-20 14:00:46 +03:00
# autoapi
2020-09-20 02:05:39 +03:00
autoapi_type = 'python'
autoapi_dirs = ['../maestral']
2020-09-20 14:00:46 +03:00
autoapi_options = [
'members',
'inherited-members',
'special-members',
'show-inheritance',
'show-module-summary',
'imported-members',
]
autoapi_add_toctree_entry = False
2020-09-20 14:00:46 +03:00
# todo list support
2020-04-02 23:06:22 +03:00
todo_include_todos = True