Skip to content

Commit

Permalink
docs(query): add tutorials links to nav bar when looking at queries g…
Browse files Browse the repository at this point in the history
…uide

FIx #9410
  • Loading branch information
vkarpov15 committed Sep 10, 2020
1 parent 1ac769b commit 6b04250
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/css/mongoose5.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ pre code {
li.sub-item {
height: 23px;
font-size: 11pt;
margin-left: 20px;
margin-left: 15px;
}

li.tertiary-item {
height: 23px;
font-size: 11pt;
margin-left: 30px;
}

li.version {
Expand Down
7 changes: 7 additions & 0 deletions docs/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ html(lang='en')
a.pure-menu-link(href="/docs/subdocs.html", class=outputUrl === '/docs/subdocs.html' ? 'selected' : '') Subdocuments
li.pure-menu-item.sub-item
a.pure-menu-link(href="/docs/queries.html", class=outputUrl === '/docs/queries.html' ? 'selected' : '') Queries
- if (['/docs/queries', '/docs/tutorials/findoneandupdate', '/docs/tutorials/lean', '/docs/tutorials/query_casting'].some(path => outputUrl.startsWith(path)))
li.pure-menu-item.tertiary-item
a.pure-menu-link(href="/docs/tutorials/query_casting.html", class=outputUrl === '/docs/tutorials/query_casting.html' ? 'selected' : '') Query Casting
li.pure-menu-item.tertiary-item
a.pure-menu-link(href="/docs/tutorials/findoneandupdate.html", class=outputUrl === '/docs/tutorials/findoneandupdate.html' ? 'selected' : '') findOneAndUpdate
li.pure-menu-item.tertiary-item
a.pure-menu-link(href="/docs/tutorials/lean.html", class=outputUrl === '/docs/tutorials/lean.html' ? 'selected' : '') The Lean Option
li.pure-menu-item.sub-item
a.pure-menu-link(href="/docs/validation.html", class=outputUrl === '/docs/validation.html' ? 'selected' : '') Validation
li.pure-menu-item.sub-item
Expand Down

0 comments on commit 6b04250

Please sign in to comment.