conf.py 2.37 KB
Newer Older
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
1
2
3
# -*- coding: utf-8 -*-

import os
4
5
import sys

6
import openmm.version
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
7

8
9
10
11
12
13
14
15
extensions = [
    "sphinx.ext.mathjax",
    "sphinx.ext.ifconfig",
    "sphinx.ext.autosummary",
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "process-docstring",
]
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
16
17

autosummary_generate = True
18
autodoc_default_options = {
19
20
21
    "members": True,
    "inherited-members": True,
    "member-order": "bysource",
22
}
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
23

24
25
source_suffix = ".rst"
master_doc = "index"
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
26

27
project = u"OpenMM Python API"
28
copyright = u"2015-2025, Stanford University and the Authors"
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
29

30
31
version = openmm.version.short_version
release = openmm.version.full_version
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
32

33
34
35
exclude_patterns = ["_build", "_templates"]
html_static_path = ["_static"]
templates_path = ["_templates"]
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
36

37
pygments_style = "sphinx"
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
38

Robert McGibbon's avatar
Robert McGibbon committed
39
40
html_theme = "alabaster"
html_theme_options = {
41
42
43
44
    "github_button": False,
    "github_user": "openmm",
    "github_repo": "openmm",
    "logo_name": True,
45
    "logo": "logo.svg",
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
    "extra_nav_links": [
        {
            "title": "OpenMM.org",
            "uri": "https://openmm.org",
            "relative": False,
        },
        {
            "title": "User's Manual",
            "uri": "../userguide/",
            "relative": True,
        },
        {
            "title": "Developer Guide",
            "uri": "../developerguide/",
            "relative": True,
        },
        {
            "title": "C++ API reference",
            "uri": "../api-c++/",
            "relative": True,
        },
67
68
69
70
71
        {
            "title": "Cookbook & Tutorials",
            "uri": "https://openmm.github.io/openmm-cookbook/",
            "relative": False,
        },
72
73
74
75
76
77
78
        {
            "title": "GitHub",
            "uri": "https://github.com/openmm",
            "relative": False,
        },
    ],
    "show_relbar_bottom": True,
79
80
81
    "font_family": "Roboto, sans-serif",
    "head_font_family": "Roboto, sans-serif",
    "caption_font_family": "Roboto, sans-serif",
Robert McGibbon's avatar
Robert McGibbon committed
82
83
}
html_sidebars = {
84
85
    "**": [
        "about.html",
86
        "searchbox.html",
87
        "navigation.html",
Robert McGibbon's avatar
Robert McGibbon committed
88
89
    ]
}
Robert McGibbon's avatar
Sphinx  
Robert McGibbon committed
90

Robert McGibbon's avatar
Robert McGibbon committed
91
92
93
94
95
96
97
98
99
100
101
# Napoleon settings
napoleon_google_docstring = False
napoleon_numpy_docstring = 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