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

Fix documentation navigation menu on mobile phones and collapsed windows and other edits #346

Merged
merged 6 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions docsrc/source/_static/theme_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -9373,6 +9373,7 @@ font-weight: 600;
color: var(--main-color);
background-color: transparent;
border-left: 2px solid var(--main-color);
border-radius: 0px;
}
.toc-h2 {
font-size:.85rem
Expand Down
24 changes: 12 additions & 12 deletions docsrc/source/_templates/nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

{%- set userguide_dropdown_navigation = [
('Basics', pathto('basics')),
('Getting Started', pathto('getting_started')),
('Modelling', pathto('dipolar_guide_modelling')),
('Fitting', pathto('dipolar_guide_fitting')),
('Theory', pathto('theory')),]
-%}


{%- set advancedguide_dropdown_navigation = [
('Modelling Guide', pathto('modelling_guide')),
Expand All @@ -23,18 +23,18 @@
-%}

<div class="container-fluid {{ top_container_cls }} px-0">

<div class="sk-navbar-collapse collapse navbar-collapse" id="navbarSupportedContent">
<div class="navbar-collapse collapse navbar-collapse" id="navbar-collapsible">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="sk-nav-link nav-link" href="{{ pathto('installation') }}">Installation</a>
<a class="nav-link nav-link" href="{{ pathto('installation') }}">Installation</a>
</li>

<li class="dropdown">
<a class="dropbtn" href="{{ pathto('user_guide') }}" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">User Guide</a>
<div class="dropdown-content" aria-labelledby="navbarDropdown">
{%- for title, link in userguide_dropdown_navigation %}
<a class="sk-nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
<a class="nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
{%- endfor %}
</div>
</li>
Expand All @@ -43,36 +43,36 @@
<a class="dropbtn" href="{{ pathto('advanced_guide') }}" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Advanced Guides</a>
<div class="dropdown-content" aria-labelledby="navbarDropdown">
{%- for title, link in advancedguide_dropdown_navigation %}
<a class="sk-nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
<a class="nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
{%- endfor %}
</div>
</li>

<li class="nav-item">
<a class="sk-nav-link nav-link" href="{{ pathto('examples') }}">Examples</a>
<a class="nav-link nav-link" href="{{ pathto('examples') }}">Examples</a>
</li>

<li class="nav-item">
<a class="sk-nav-link nav-link" href="{{ pathto('modelsref') }}">Models</a>
<a class="nav-link nav-link" href="{{ pathto('modelsref') }}">Models</a>
</li>


<li class="nav-item">
<a class="sk-nav-link nav-link" href="{{ pathto('reference') }}">Reference</a>
<a class="nav-link nav-link" href="{{ pathto('reference') }}">Reference</a>
</li>

{%- for title, link in drop_down_navigation %}
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="{{ link }}">{{ title }}</a>
<a class="nav-link nav-link nav-more-item-mobile-items" href="{{ link }}">{{ title }}</a>
</li>

{%- endfor %}

<li class="dropdown">
<a class="dropbtn" href="{{ pathto('more') }}" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More</a>
<a class="dropbtn nav-link dropdown-toggle" href="{{ pathto('more') }}" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More</a>
<div class="dropdown-content" aria-labelledby="navbarDropdown">
{%- for title, link in more_dropdown_navigation %}
<a class="sk-nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
<a class="nav-dropdown-item dropdown-item" href="{{ link }}">{{ title}}</a>
{%- endfor %}
</div>
</li>
Expand Down
6 changes: 3 additions & 3 deletions docsrc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
html_theme_options = {
"navbar_start": ["navbar-logo"],
"navbar_center": ["nav"],
"navbar_end": ["search-field","navbar-icon-links"],
"navbar_end": ["search-field"],
}
html_sidebars = {
"index": [],
Expand All @@ -124,8 +124,8 @@
"examples": [],
"auto_examples/**": [],
"auto_examples/**": [],
"**": ["sidebar-nav-bs", "sidebar-ethical-ads"],
"page_sidebar_items": ["page-toc", "edit-this-page"],
"**": ["sidebar-nav-bs"],
"page_sidebar_items": ["page-toc"],
}

html_copy_source = False
Expand Down
2 changes: 0 additions & 2 deletions docsrc/source/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ API Reference
snlls
fnnls
cvxnnls
save
load

.. rubric:: Dipolar EPR functions

Expand Down