1"""Sphinx config file for https://github.com/abseil/abseil-py.""" 2 3import os 4import sys 5 6# -- Project information 7project = 'Abseil Python Common Libraries' 8copyright = '2022, Abseil' # pylint: disable=redefined-builtin 9author = 'The Abseil Authors' 10 11release = '' 12version = '' 13 14# -- General configuration 15 16extensions = [ 17 'sphinx.ext.duration', 18 'sphinx.ext.doctest', 19 'sphinx.ext.autodoc', 20 'sphinx.ext.autosummary', 21 'sphinx.ext.intersphinx', 22 'sphinx.ext.napoleon', 23 'sphinx.ext.viewcode', 24 'sphinx.ext.coverage', 25 'sphinxcontrib.apidoc', # convert .py sources to .rst docs. 26 'm2r2', # for .md files 27] 28 29# sphinxcontrib.apidoc vars 30apidoc_module_dir = '../../absl' 31apidoc_output_dir = '.' 32apidoc_toc_file = False 33apidoc_excluded_paths = [ 34 '*/tests/*', 35 'tests/*', 36] 37apidoc_separate_modules = True 38 39intersphinx_mapping = { 40 'python': ('https://docs.python.org/3/', None), 41 'sphinx': ('https://www.sphinx-doc.org/en/master/', None), 42} 43intersphinx_disabled_domains = ['std'] 44 45source_suffix = { 46 '.rst': 'restructuredtext', 47 '.md': 'markdown', 48} 49 50templates_path = ['_templates'] 51 52# -- Options for HTML output 53 54html_theme = 'sphinx_rtd_theme' 55 56# -- Options for EPUB output 57epub_show_urls = 'footnote' 58 59sys.path.insert(0, os.path.abspath('../..')) # access to README.md 60sys.path.insert(0, os.path.abspath('../../absl')) # access to python sources 61