Skip to content

Commit

Permalink
BS-130
Browse files Browse the repository at this point in the history
Changes in the theme style
  • Loading branch information
svyatmikh committed Jun 6, 2019
1 parent a1e5b99 commit dea5856
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
import os
import sys
import re
# sys.path.insert(0, os.path.abspath('.'))


Expand Down Expand Up @@ -77,7 +78,8 @@
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
#pygments_style = 'sphinx'
pygments_style = 'default'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand All @@ -89,7 +91,9 @@
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes", ]
html_theme_options = {
'logo_only': True
}

#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

Expand Down Expand Up @@ -175,3 +179,30 @@

html_show_sourcelink = False

# Extensions to theme docs
def setup(app):
from sphinx.domains.python import PyField
from sphinx.util.docfields import Field

app.add_object_type(
'confval',
'confval',
objname='configuration value',
indextemplate='pair: %s; configuration value',
doc_field_types=[
PyField(
'type',
label=_('Type'),
has_arg=False,
names=('type',),
bodyrolename='class'
),
Field(
'default',
label=_('Default'),
has_arg=False,
names=('default',),
),
]
)

0 comments on commit dea5856

Please sign in to comment.