|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | + |
| 7 | +# -- Path setup -------------------------------------------------------------- |
| 8 | + |
| 9 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 10 | +# add these directories to sys.path here. If the directory is relative to the |
| 11 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | +# |
| 13 | +# import os |
| 14 | +# import sys |
| 15 | +# sys.path.insert(0, os.path.abspath('.')) |
| 16 | + |
| 17 | +# NOTE(fangjun): we have to use `pip install sphinx_rtd_theme` |
| 18 | +# otherwise `import` will throw. |
| 19 | +import sphinx_rtd_theme |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +# -- Project information ----------------------------------------------------- |
| 24 | + |
| 25 | +project = 'Kaldi Pybind' |
| 26 | +copyright = '2020, Kaldi Pybind Authors' |
| 27 | +author = 'Kaldi Pybind Authors' |
| 28 | + |
| 29 | + |
| 30 | +# -- General configuration --------------------------------------------------- |
| 31 | + |
| 32 | +# Add any Sphinx extension module names here, as strings. They can be |
| 33 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 34 | +# ones. |
| 35 | +extensions = [ |
| 36 | +'sphinx.ext.autodoc', |
| 37 | +'sphinx.ext.autosummary', |
| 38 | +'sphinx.ext.mathjax', |
| 39 | +'sphinx.ext.napoleon', |
| 40 | +'sphinx.ext.todo', |
| 41 | +'sphinx.ext.viewcode', |
| 42 | +] |
| 43 | + |
| 44 | +# Add any paths that contain templates here, relative to this directory. |
| 45 | +templates_path = ['_templates'] |
| 46 | + |
| 47 | +# List of patterns, relative to source directory, that match files and |
| 48 | +# directories to ignore when looking for source files. |
| 49 | +# This pattern also affects html_static_path and html_extra_path. |
| 50 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 51 | + |
| 52 | +# The suffix(es) of source filenames. |
| 53 | +# You can specify multiple suffix as a list of string: |
| 54 | +# |
| 55 | +source_suffix = '.rst' |
| 56 | + |
| 57 | +# The master toctree document. |
| 58 | +master_doc = 'index' |
| 59 | + |
| 60 | +# The name of the Pygments (syntax highlighting) style to use. |
| 61 | +pygments_style = 'sphinx' |
| 62 | + |
| 63 | + |
| 64 | +# -- Options for HTML output ------------------------------------------------- |
| 65 | + |
| 66 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 67 | +# a list of builtin themes. |
| 68 | +# |
| 69 | +# html_theme = 'alabaster' |
| 70 | +html_theme = 'sphinx_rtd_theme' |
| 71 | +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 72 | +smartquotes = False |
| 73 | + |
| 74 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 75 | +# relative to this directory. They are copied after the builtin static files, |
| 76 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 77 | +html_static_path = ['_static'] |
| 78 | + |
| 79 | +html_context = { |
| 80 | + 'css_files': [ |
| 81 | + '_static/theme_overrides.css', # override wide tables in RTD theme |
| 82 | + ], |
| 83 | +} |
| 84 | + |
| 85 | +html_show_sourcelink = False |
0 commit comments