Skip to content

Commit

Permalink
Add static and templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
haakoek committed Mar 5, 2024
1 parent 91ef647 commit 33cb889
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 0 deletions.
91 changes: 91 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@

body{
background: #FFFFFF !important;
}

.wy-menu-vertical header, .wy-menu-vertical p.caption{
color: #4EA0AF!important;
}
.wy-menu-vertical li.current{
background-color: #f4f4f4!important;
}
.wy-menu-vertical li.toctree-l2.current>a{
background-color: #ebebeb!important;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{
background-color: #e3e3e3!important;
}

.rst-content .sidebar{
background-color: #fff!important;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
}

h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a {
color: #17d9ff;
}

h1, h2, h3, h4, h5, h6 {
color: black;
font-weight: normal;
padding: 0;
}

h1, h2, h3 {
margin-top: 30px;
margin-bottom: 20px;
}

h1 {
color: white;
padding: 20px 20px 20px 45px;
margin: 20px 0 35px -45px;
background: linear-gradient(to left, #fff, #2b38ff)!important;

width: calc(100% + 90px);
border-bottom: 3px solid #000;
}

h2 {
padding: .2em 0;
border-bottom: 1px solid #ddd;
}

h3 {
margin-top: 35px;
}

h4 {
margin-top: 30px;
}

h5 {
margin-top: 25px;
}

.wy-nav-content{
max-width: none!important;
}

.wy-side-nav-search{
background: #2b38ff!important;
}

.wy-side-nav-search input[type=text]{
border-color:#4DA0B0!important;
}

.wy-side-nav-search input[type=text]{
border-radius: 4px!important;
}

#caption-api {
background: red !important;
}

#caption-text-api {
text-color: blue !important;
}
27 changes: 27 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends "!layout.html" %}

{% block menu %}
{{ super() }}

{% if sidebar_external_links %}
<p class="caption">
<span class="caption-text">
{% if sidebar_external_links_caption %}
{{ sidebar_external_links_caption }}
{% else %}
External links
{% endif %}
</span>
</p>
<ul>
{% for text, link in sidebar_external_links %}
{% if hasdoc(link) %}
<li class="toctree-l1"><a href="{{ pathto(link) }}">{{ text }}</a></li>
{% else %}
<li class="toctree-l1"><a href="{{ link }}">{{ text }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}

{% endblock %}
27 changes: 27 additions & 0 deletions docs/_templates/versions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{%- if current_version %}
<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"> Other Versions</span>
v: {{ current_version.name }}
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
{%- if versions.tags %}
<dl>
<dt>Releases</dt>
{%- for item in versions.tags %}
<dd><a href="{{ item.url }}">{{ item.name }}</a></dd>
{%- endfor %}
</dl>
{%- endif %}
{%- if versions.branches %}
<dl>
<dt>Development</dt>
{%- for item in versions.branches %}
<dd><a href="{{ item.url }}">{{ item.name }}</a></dd>
{%- endfor %}
</dl>
{%- endif %}
</div>
</div>
{%- endif %}
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_css_files = ['custom.css']

0 comments on commit 33cb889

Please sign in to comment.