mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Issue #5036 -> Click on nav bar goes to top level doc
Closes issue #5036 This commit redirects the reader to top level doc upon clicking on a main nav. menu item (eg. Installation [click] -> Mac OS X) Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
This commit is contained in:
parent
a6ce867e48
commit
8ae966de75
2 changed files with 9 additions and 1 deletions
6
docs/theme/mkdocs/css/docs.css
vendored
6
docs/theme/mkdocs/css/docs.css
vendored
|
@ -49,6 +49,12 @@ ol li {
|
|||
margin: 0px;
|
||||
padding: 0em;
|
||||
}
|
||||
#nav_menu > #docsnav > #main-nav > li > a {
|
||||
color: #253237;
|
||||
}
|
||||
#nav_menu > #docsnav > #main-nav > li.dd_on_hover > a {
|
||||
color: #5992a3;
|
||||
}
|
||||
#nav_menu > #docsnav > #main-nav > li.dd_on_hover {
|
||||
background: #b1d5df;
|
||||
color: #5992a3;
|
||||
|
|
4
docs/theme/mkdocs/nav.html
vendored
4
docs/theme/mkdocs/nav.html
vendored
|
@ -4,7 +4,9 @@
|
|||
{% for menu in nav %}
|
||||
{% if menu.title != '**HIDDEN**' %}
|
||||
<li class="dd_menu pull-left{% if menu.active %} active{% endif %}">
|
||||
<span>{{ menu.title }}</span>
|
||||
{% for first_item in menu.children[:1] %}
|
||||
<a href="{{ first_item.url }}">{{ menu.title }}</a>
|
||||
{% endfor %}
|
||||
<ul class="dd_submenu" style="max-height: 75px;">
|
||||
{% for menu in menu.children %}
|
||||
<li {% if menu.active %}class="active"{% endif %}>
|
||||
|
|
Loading…
Add table
Reference in a new issue