File: __init__.py

package info (click to toggle)
kytos-sphinx-theme 0.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,036 kB
  • sloc: python: 37; makefile: 13
file content (14 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Kythos theme modules."""
import os

def get_html_theme_path():
    """Return list of HTML theme paths."""
    theme_path = '/usr/share/kytos_sphinx_theme'
    return [theme_path]

def setup(app):
    """Setup."""
    # add_html_theme is new in Sphinx 1.6+
    if hasattr(app, 'add_html_theme'):
        theme_path = get_html_theme_path()[0]
        app.add_html_theme('kytos', os.path.join(theme_path, 'kytos'))