Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hideki Kobayashi
Classical-MD-Modules
Commits
e3efe19f
Commit
e3efe19f
authored
Oct 24, 2016
by
Alan O'Cais
Browse files
Change theme to bootstrap
parent
3905d59f
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/conf.py
View file @
e3efe19f
...
...
@@ -16,6 +16,8 @@
import
sys
import
os
import
sphinx_bootstrap_theme
# If extensions (or modules to document with autodoc) are in another directory,
# 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.
...
...
@@ -35,7 +37,7 @@ extensions = [
'sphinx.ext.intersphinx'
,
'sphinx.ext.todo'
,
'sphinx.ext.coverage'
,
'sphinx.ext.
pn
gmath'
,
'sphinx.ext.
im
gmath'
,
'sphinx.ext.ifconfig'
,
'sphinx.ext.viewcode'
,
]
...
...
@@ -117,45 +119,100 @@ todo_include_todos = True
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
if
on_rtd
:
html_theme
=
'nature'
else
:
html_theme
=
'default'
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 = {}
html_theme_options
=
{
# Navigation bar title. (Default: ``project`` value)
'navbar_title'
:
"E-CAM Classical MD"
,
# Tab name for entire site. (Default: "Site")
'navbar_site_name'
:
"Site"
,
# Tab name for the current pages TOC. (Default: "Page")
'navbar_pagenav_name'
:
"Page"
,
# 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': [
# ("Examples", "examples"),
# ("Link", "http://example.com", True),
# ],
# Global TOC depth for "site" navbar tab. (Default: 1)
# Switching to -1 shows all levels.
'globaltoc_depth'
:
2
,
# Include hidden TOCs in Site navbar?
#
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
# non-hidden ``toctree`` directives in the same page, or else the build
# will break.
#
# Values: "true" (default) or "false"
'globaltoc_includehidden'
:
"true"
,
# HTML navbar class (Default: "navbar") to attach to <div> element.
# For black navbar, do "navbar navbar-inverse"
'navbar_class'
:
"navbar"
,
# Fix navigation bar to top of page?
# Values: "true" (default) or "false"
'navbar_fixed_top'
:
"true"
,
# Location of link to source.
# Options are "nav" (default), "footer" or anything else to exclude.
'source_link_position'
:
"nav"
,
# Bootswatch (http://bootswatch.com/) theme.
#
# Options are nothing (default) or the name of a valid theme such
# as "amelia" or "cosmo".
#
# Example themes:
# * flatly
# * sandstone (v3 only)
# * united
# * yeti (v3 only)
'bootswatch_theme'
:
"sandstone"
,
# Choose Bootstrap version.
# Values: "3" (default) or "2" (in quotes)
'bootstrap_version'
:
"3"
,
}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# ``get_html_theme_path`` returns a list, so you can concatenate with
# any other theme directories you would like.
html_theme_path
=
sphinx_bootstrap_theme
.
get_html_theme_path
()
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title =
None
#html_short_title =
"Demo"
#
The name of an image file (relative to this directory) to place at the top
#
of the sidebar
.
#
(Optional) Logo. Should be small enough to fit the navbar (ideally 24x24).
#
Path should be relative to the ``_static`` files directory
.
html_logo
=
'ecam_logo.png'
# 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
# The name of an image file (
within the static path
) to use as favicon of
the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path
=
[
'_static'
]
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
html_static_path
=
[
"_static"
]
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
...
...
@@ -166,7 +223,9 @@ html_static_path = ['_static']
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
html_sidebars
=
{
'**'
:
[
'globaltoc.html'
,
'relations.html'
,
'sourcelink.html'
,
'searchbox.html'
],
}
#html_sidebars = {}
#html_sidebars = { '**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'], }
html_sidebars
=
{
'sidebar'
:
[
'localtoc.html'
,
'sourcelink.html'
,
'searchbox.html'
]}
# Additional templates that should be rendered to pages, maps page names to
# template names.
...
...
@@ -198,20 +257,6 @@ html_sidebars = { '**': ['globaltoc.html', 'relations.html', 'sourcelink.html',
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Language to be used for generating the HTML full-text search index.
# Sphinx supports the following languages:
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
#html_search_language = 'en'
# A dictionary with options for the search language support, empty by default.
# Now only 'ja' uses this config value
#html_search_options = {'type': 'default'}
# The name of a javascript file (relative to the configuration directory) that
# implements a search results scorer. If empty, the default will be used.
#html_search_scorer = 'scorer.js'
# Output file base name for HTML help builder.
htmlhelp_basename
=
'E-CAMdoc'
...
...
docs/ecam_logo.png
View replaced file @
3905d59f
View file @
e3efe19f
8.56 KB
|
W:
|
H:
2.31 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment