本文整理汇总了Python中sphinx_bootstrap_theme.get_html_theme_path函数的典型用法代码示例。如果您正苦于以下问题:Python get_html_theme_path函数的具体用法?Python get_html_theme_path怎么用?Python get_html_theme_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_html_theme_path函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: file
# a list of builtin themes.
html_theme = 'bootstrap'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
'bootswatch_theme': 'flatly',
'navbar_site_name': 'API',
'navbar_links': [
('GitHub', '//github.com/ligovirgo/trigfind/', True),
],
}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#html_title = u'trigfind v0.3'
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
示例2:
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#~ html_theme = 'sphinx_rtd_theme'
html_theme = 'nngt_theme'
html_theme_path = ["."] + sphinx_bootstrap_theme.get_html_theme_path()
html_theme_options = {
# A list of tuples containing pages or urls to link to.
# Valid tuples should be in the following forms:
# (name, page) # a link to a page
# (name, "/aa/bb", 1) # a link to an arbitrary relative url
# (name, "http://example.com", True) # arbitrary absolute url
# Note the "1" or "True" value above as the third argument to indicate
# an arbitrary url.
'navbar_links': [
("Modules", "py-modindex"),
("Index", "genindex"),
("GitHub", "https://github.com/Silmathoron/NNGT", True),
],
示例3: Pygments
exclude_patterns = ['_build', 'themes', 'README.rst']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
import sphinx_bootstrap_theme
html_theme = 'tuos'
html_theme_path = ['themes'] + sphinx_bootstrap_theme.get_html_theme_path()
html_theme_options = {'navbar_sidebarrel':False,
'navbar_pagenav': False,
'source_link_position': False,
'bootswatch_theme': 'flatly',
'navbar_site_name': "Sheffield HPC Documentation",
'navbar_title': ' ',
'navbar_links': [("RCG Home", "http://www.shef.ac.uk/cics/research", True),
("Documentation Home", "index"),
("GitHub", "https://github.com/rcgsheffield/sheffield_hpc", True),
],
'globaltoc_depth': 1}
#html_sidebars = {'software/**': ['softwaretoc.html'],
# 'gpu/**': ['softwaretoc.html'],
示例4: import
# -----------------------------------------------------------------------------------------------------------------------
# DEFINITIONS:
# -----------------------------------------------------------------------------------------------------------------------
from coconut.constants import ( # NOQA
project,
copyright,
author,
highlight_language,
)
version = VERSION
release = version_str_tag
html_theme = "bootstrap"
html_theme_path = get_html_theme_path()
master_doc = "index"
exclude_patterns = ["README.*"]
source_suffix = [".rst", ".md"]
source_parsers = {
".md": CommonMarkParser,
}
default_role = "code"
# -----------------------------------------------------------------------------------------------------------------------
# SETUP:
# -----------------------------------------------------------------------------------------------------------------------
示例5: Pygments
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# -- Options for HTML output ---------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'bootstrap'
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() + ['_templates']
#agogo/theme.conf
#basic/theme.conf
#default/theme.conf
#epub/theme.conf
#haiku/theme.conf
#nature/theme.conf
#scrolls/theme.conf
#sphinxdoc/theme.conf
#traditional/theme.conf
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
示例6:
master_doc = 'index'
project = u'exploring-flask'
author = u'Roie R. Black'
copyright = u'2014, Roie R. Black'
version = '0.1.0'
release = '0.1.0'
today_fmt = '%B %d, %Y'
exclude_patterns = ['docs/_build', '_venv']
pygments_style = 'sphinx'
# -- Options for HTML output ----------------------------------------------
html_theme = 'bootstrap'
html_theme_path = bst.get_html_theme_path()
html_title = None
html_logo = ''
html_favicon = None
html_static_path = ['_static']
html_last_updated_fmt = '%b %d, %Y'
html_show_sourcelink = True
html_show_sphinx = True
html_show_copyright = True
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
'papersize': 'letterpaper',
'pointsize': '10pt',
#'preamble': '',