Skip to content

Move links out of navbar and into sidebar / other areas. #617

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

Closed
wants to merge 12 commits into from
Closed
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
9 changes: 0 additions & 9 deletions docs/_templates/calendar-template.html

This file was deleted.

22 changes: 22 additions & 0 deletions docs/_templates/sidebar-link-items.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<nav class="bd-docs-nav bd-links">
<div class="bd-toc-item navbar-nav">
<ul class="nav bd-sidenav">
<li class="toctree-l1">
<a class="reference internal" href="community/meeting_schedule.html">Community calendar</a>
</li>
<li class="toctree-l1">
<a class="reference external" href="https://napari.zulipchat.com/">Community chat</a>
</li>
<li class="toctree-l1">
{% if version == "dev" %}
<a class="reference internal" href="{{ 'release/index.html' }}">Release notes</a>
{% else %}
<a class="reference internal" href="{{ 'release/release_' + version.replace('.', '_') + '.html' }}">Latest release notes</a>
{% endif %}
</li>
<li class="toctree-l1">
<a class="reference external" href="https://napari.org/island-dispatch">Blog</a>
</li>
</ul>
</div>
</nav>
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@
html_theme_options = {
"external_links": [
{"name": "napari hub", "url": "https://napari-hub.org"},
{"name": "Island Dispatch", "url": "https://napari.org/island-dispatch"},
{"name": "Community chat", "url": "https://napari.zulipchat.com"},
{"name": "workshop template", "url": "https://napari.org/napari-workshop-template"},
],
"github_url": "https://github.com/napari/napari",
"navbar_start": ["navbar-logo", "navbar-project"],
Expand Down Expand Up @@ -138,12 +135,15 @@

html_sidebars = {
"**": ["search-field.html", "sidebar-nav-bs"],
"index": ["search-field.html" , "calendar-template"],
"index": ["search-field.html" , "sidebar-link-items.html"],
}

html_context = {
# use Light theme only, don't auto switch (default)
"default_mode": "light"
"default_mode": "light",
# add release version to context
"release": release,
"version": version,
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down
2 changes: 1 addition & 1 deletion docs/further-resources/napari-workshops.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can find more videos of talks, tutorials and demos on the

```{admonition} Got a workshop?
If you are looking to create your own workshop, you can use the
[napari workshop template](https://github.com/napari/napari-workshop-template)
[napari workshop template](https://napari.org/napari-workshop-template/)
as a starting point.

If you have organized a napari workshop and would like to see it featured here
Expand Down
Loading