File: __init__.py

package info (click to toggle)
dask-sphinx-theme 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: python: 1,419; makefile: 16; javascript: 10
file content (17 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from os import path
from ._version import __version__


def get_html_theme_path():
    """Return list of HTML theme paths."""
    cur_dir = path.abspath(path.dirname(path.dirname(__file__)))
    return cur_dir


# See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
def setup(app):
    app.add_html_theme("dask_sphinx_theme", path.abspath(path.dirname(__file__)))
    return {
        "parallel_read_safe": True,
        "parallel_write_safe": True,
    }