Skip to content

Commit

Permalink
Add search bar to navigation bar
Browse files Browse the repository at this point in the history
Add search bar to navigation bar. This required to split our navigation
bar into two separate templates in order to fit the bar between the logo
and the links.

Signed-off-by: Antonio Torres <[email protected]>
  • Loading branch information
antoniotorresm committed Mar 20, 2024
1 parent 3cceb32 commit 2c99ef9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/_templates/custom_nav.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<a class="navbar-brand logo" href="/">
<img src="https://raw.githubusercontent.com/freeipa/freeipa.github.io/main/src/_static/freeipa-logo-small.png" class="logo__image" alt="Logo image" />
</a>
<div class="sidebar-primary-item">
<nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item navbar-nav active">
Expand Down
3 changes: 3 additions & 0 deletions src/_templates/logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a class="navbar-brand logo" href="/">
<img src="https://raw.githubusercontent.com/freeipa/freeipa.github.io/main/src/_static/freeipa-logo-small.png" class="logo__image" alt="Logo image" />
</a>
2 changes: 1 addition & 1 deletion src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# html_theme_path = ["themes"]

html_sidebars = {
"**": ["custom_nav.html"]
"**": ["logo.html", "search-button-field.html", "custom_nav.html"]
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down

0 comments on commit 2c99ef9

Please sign in to comment.