Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝🐛 #260

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/01_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Example
The following example illustrate how to use the module


.. rli:: https://raw.githubusercontent.com/mraniki/dxsp/main/dxsp/example.py
.. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/examples/example.py
:language: python


18 changes: 15 additions & 3 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,26 @@

.navbar-inverse, .navbar-collapse, .navbar-brand:hover, .navbar-default, .navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
background-color: #222222;

}

.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
color: #ffcc00;
}

a {
color: #ffcc00;
}
a:hover {
color: #ffcc00; ;
}



a:hover code {
color: #ffcc00;
}

dt:target, span.highlighted {
background-color: transparent;

}


159 changes: 58 additions & 101 deletions docs/_templates/navbar.html
Original file line number Diff line number Diff line change
@@ -1,105 +1,62 @@
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ pathto(master_doc) }}" style="padding: 12px;">
{%- block sidebarlogo %}
{%- if logo %}
<span>
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo">
<!-- <img src="{{ pathto('_static/alt-' + logo, 1) }}" class="logo-hover"> -->
</span>
{%- endif %}
{%- endblock %}
</a>
</div>
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ pathto(master_doc) }}" style="padding: 12px;">
{%- block sidebarlogo %}
{%- if logo %}
<span>
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo">
<!-- <img src="{{ pathto('_static/alt-' + logo, 1) }}" class="logo-hover"> -->
</span>
{%- endif %}
{%- endblock %}
</a>
</div>

<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
{% if theme_navbar_links %}
{%- for menu in theme_navbar_links %}
{% if menu[0] == "_menu" %}
<li class="dropdown">
<a role="button" id="{{ menu[1] }}Toc" data-toggle="dropdown" data-target="#" href="#" aria-expanded="false">{{ menu[1] }} <b class="caret"></b></a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="{{ menu[1] }}Toc">
{%- for link in menu[2] %}
{% if link[0] == "_divider" %}
<li class="divider"></li>
{% elif link[0] == "_menu" %}
<li class="dropdown-submenu">
{% if link|length == 4 %}
<a tabindex="-1" href="{{ pathto(link[2]) }}">{{ link[1] }}</a>
{% elif link|length == 5 %}
<a tabindex="-1" href="{{ pathto(link[2]) }}{{ link[3] }}">{{ link[1] }}</a>
{% else %}
<a tabindex="-1" href="#">{{ link[1] }}</a>
{% endif %}
<ul class="dropdown-menu">
{%- for sublink in link[-1] %}
{% if sublink[0] == "_divider" %}
<li class="divider"></li>
{% elif sublink[0] == "_menu" %}
<li class="dropdown-submenu">
{% if sublink|length == 4 %}
<a tabindex="-1" href="{{ pathto(sublink[2]) }}">{{ sublink[1] }}</a>
{% elif sublink|length == 5 %}
<a tabindex="-1" href="{{ pathto(sublink[2]) }}{{ sublink[3] }}">{{ sublink[1] }}</a>
{% else %}
<a tabindex="-1" href="#">{{ sublink[1] }}</a>
{% endif %}
<ul class="dropdown-menu">
{%- for specificlink in sublink[-1] %}
{% if specificlink[0] == "_divider" %}
<li class="divider"></li>
{% elif specificlink|length > 2 %}
<li><a href="{{ pathto(specificlink[1]) }}{{ specificlink[2] }}">{{ specificlink[0] }}</a></li>
{% else %}
<li><a href="{{ specificlink[1] if specificlink[1][:4] == 'http' else pathto(specificlink[1]) }}">{{ specificlink[0] }}</a></li>
{% endif %}
{%- endfor %}
</ul>
</li>
{% elif sublink|length > 2 %}
<li><a href="{{ pathto(sublink[1]) }}{{ sublink[2] }}">{{ sublink[0] }}</a></li>
{% else %}
<li><a href="{{ sublink[1] if sublink[1][:4] == 'http' else pathto(sublink[1]) }}">{{ sublink[0] }}</a></li>
{% endif %}
{%- endfor %}
</ul>
</li>
{% elif link|length > 2 %}
<li><a href="{{ pathto(link[1]) }}{{ link[2] }}">{{ link[0] }}</a></li>
{% else %}
<li><a href="{{ link[1] if link[1][:4] == 'http' else pathto(link[1]) }}">{{ link[0] }}</a></li>
{% endif %}
{%- endfor %}
</ul>
</li>
{% else %}
<li><a href="{{ pathto(*menu[1:]) }}">{{ menu[0] }}</a></li>
{% endif %}
{%- endfor %}
{% endif %}
{% if theme_navbar_sidebarrel %}
{% block sidebarrel %}
{% include "relations.html" %}
{% endblock %}
{% endif %}
{% block navbarextra %}
{% endblock %}
{% if theme_source_link_position == "nav" %}
<li class="hidden-sm">{% include "sourcelink.html" %}</li>
{% endif %}
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a role="button" class="nav-link" href="https://talkytrader.github.io/wiki/" class="caret">TalkyTrader</a>
</li>
<li class="dropdown">
<a role="button" href="https://talky.rtfd.io/" id="menu1" data-toggle="dropdown" >🗿 Talky</a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="menu1">
<a class="dropdown-item" href="https://talky.rtfd.io/01_start">🪙 Get started</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://talky.rtfd.io/02_config">⚙️ Config</a>
</ul>

{% block navbarsearch %}
{% include "navbarsearchbox.html" %}
{% endblock %}
</div>
</li>
<li class="dropdown">
<a role="button" href="#" id="menu2" data-toggle="dropdown" >🔌 Plugins</a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="menu2">
<a class="dropdown-item" href="https://iamlistening.rtfd.io/">👂 IamListening</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://findmyorder.rtfd.io/">🔎 FindMyOrder</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://dxsp.rtfd.io/">⛓️ DXSP</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://talky.rtfd.io">💱 CEX</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://talky.rtfd.io">💁 Helper</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://talkytrend.rtfd.io/">📰 Talkytrend</a>
</ul>
</li>
<li class="dropdown">
<a role="button" href="#" id="menu3" data-toggle="dropdown">➕ More</a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="menu3">
<a class="dropdown-item" href="https://github.com/mraniki/tt">🆕 What's new?</a>
<li class="divider"></li>
<a class="dropdown-item" href="https://talky.rtfd.io">💬 Connect</a>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>