Merge branch 'kp-theme-changes' into rtd-theme

This commit is contained in:
Kevin Putnam
2019-07-10 15:05:10 -07:00
4 changed files with 84 additions and 15 deletions
@@ -0,0 +1,31 @@
{# Add rst-badge after rst-versions for small badge style. #}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Clear Linux</span>
v: {{ current_version }}
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<dl>
<dt>{{ _('Language Versions') }}</dt>
{% for slug, url in languages %}
<dd><a href="{{ url }}/{{ pagename }}.html">{{ slug }}</a></dd>
{% endfor %}
</dl>
<dl>
<dt>{{ _('Document Versions') }}</dt>
{% for slug, url in versions %}
<dd><a href="{{ url }}/{{ pagename }}.html">{{ slug }}</a></dd>
{% endfor %}
</dl>
<dl>
<dt>{{ _('clearlinux.org links') }}</dt>
<dd>
<a href="https://www.clearlinux.org/">Project Home</a>
</dd>
<dd>
<a href="https://github.com/clearlinux/clear-linux-documentation">GitHub</a>
</dd>
</dl>
</div>
</div>
@@ -12,21 +12,21 @@
<div class="padding-md--left-right">
<div class="header__site_info">
<object class="header__site_img_object" type="image/svg+xml" data="https://stg.clearlinux.org/modules/custom/clearlinux_org/themes/clearlinux_theme/clear-technologies.svg"></object>
<object class="header__site_img_object" type="image/svg+xml" data="https://clearlinux.org/modules/custom/clearlinux_org/themes/clearlinux_theme/clear-technologies.svg"></object>
<div class="header__site_info_name">
<a href ="https://stg.clearlinux.org"> Clear Linux* Project</a>
<a href ="https://clearlinux.org"> Clear Linux* Project</a>
</div>
</div>
<nav class="header__menu">
<ul class="header__menu_list">
<li class="header__menu_list_item green ">
<a tabindex='1' href="https://stg.clearlinux.org/about">About</a>
<a tabindex='1' href="https://clearlinux.org/about">About</a>
</li>
<li class="header__menu_list_item purple ">
<a tabindex='1' href="https://stg.clearlinux.org/developer">Developer</a>
<a tabindex='1' href="https://clearlinux.org/developer">Developer</a>
</li>
<li class="header__menu_list_item blue ">
<a tabindex='1' href="https://stg.clearlinux.org/software">Software</a>
<a tabindex='1' href="https://clearlinux.org/software">Software</a>
</li>
</ul>
</nav>
@@ -41,6 +41,11 @@
{% endblock %}
{% block menu %}
{% include "cversions.html" %}
{{ super() }}
{% endblock %}
{% block footer %}
<script type="text/javascript" src="{{ pathto('_static/tcs_theme.js', 1) }}"></script>
@@ -7,7 +7,7 @@
.wy-nav-side {
background: #8e6db6;
background: #007ab2;
}
/* (temporarily) add an under development tagline to the bread crumb
.wy-breadcrumbs::after {
@@ -32,6 +32,23 @@
color: rgba(255,255,255,1);
}
.wy-side-nav-search input[type=text] {
border-radius: 0px;
padding: 0px 0px;
box-shadow: none;
border: 0;
outline: 0;
background: transparent;
border-bottom: 1px solid black;
color: white;
}
::placeholder {
color: white;
}
/* squish the space between a paragraph before a list */
div > p + ul, div > p + ol {
margin-top: -20px;
+25 -9
View File
@@ -53,7 +53,7 @@ master_doc = 'index'
# General information about the project.
#project = u'Clear Linux* project'
project = u'Documentation'
project = u'Clear Linux* Project Docs'
copyright = u'2019, many'
author = u'many'
@@ -121,20 +121,36 @@ rst_epilog = """
#html_theme = 'sphinx_rtd_theme'
html_theme = 'otc_tcs_sphinx_theme'
version = current_version = "latest"
# 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 = {
'style_nav_header_background': '#007ab2',
'navigation_depth': 4,
'display_version': False
}
html_context = {
"display_github": True, # Integrate GitHub
"github_user": "clearlinux", # Username
"github_repo": "clear-linux-documentation", # Repo name
"github_version": "rtd-theme", # Version
"conf_py_path": "/source/", # Path in the checkout to the docs root
}
# 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 = {
'style_nav_header_background': '#8e6db6',
'navigation_depth': 4
"current_version": current_version,
"languages": ( ("English", ""),
("Mandarin", "/md"),
("Spanish", "/esp")
),
"versions": ( ("latest", ""),
("LTS 1", "/lts/v1"),
("LTS 2", "/lts/v2"),
("LTS 3", "/lts/v3"),
("LTS 4", "/lts/v4"),
("LTS 5", "/lts/v5"),
("LTS 6", "/lts/v6")
)
}
# Add any paths that contain custom themes here, relative to this directory.