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

PR: Add docs to the navbar #112

Merged
merged 4 commits into from
Jul 3, 2018
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
3 changes: 3 additions & 0 deletions databags/main-nav.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"en": {
"https://docs.spyder-ide.org/": "Docs",
"/blog": "Blog",
"/": "Home"
},
"es": {
"https://docs.spyder-ide.org/": "Docs",
"/blog": "Blog",
"/": "Inicio"
},
"fr": {
"https://docs.spyder-ide.org/": "Docs",
"/blog": "Blog",
"/": "Accueil"
}
Expand Down
4 changes: 2 additions & 2 deletions spyder_website.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ locale = fr
footer_twitter = "https://twitter.com/spyder_ide"
footer_facebook = "https://www.facebook.com/SpyderIDE/"
extension_nav = true
ext_1_ref =
ext_1_title = "Documentation"
ext_1_ref = "https://docs.spyder-ide.org/"
ext_1_title = "Docs"
ext_2_ref = "/blog"
ext_2_title = "Blog"
ext_3_ref =
Expand Down
4 changes: 2 additions & 2 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<a href="{{ this.parent|url }}">
<img src="{{ '/static/images/spyder-logo.svg' | url}}">
<span>
<span id="logo-text">Spyder {% block section %}{% endblock %}</span>
<span id="logo-text"><big>S</big>pyder {% block section %}{% endblock %}</span>
</span>
</a>
<p></p>
Expand All @@ -49,7 +49,7 @@

{% set data_nav = bag('main-nav', this.alt) %}
{% for path, label in data_nav.items() %}
<a class="pull-right" href="{{ path|url }}" onclick="location.href='{{path|url}}';" data-nav-section="{{label}}">{{ label }}</a>
<a class="pull-right" href="{{ path }}" data-nav-section="{{label}}">{{ label }}</a>
{% endfor %}

</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-icon