diff options
Diffstat (limited to 'src/arrow/docs/source/_templates/docs-sidebar.html')
-rw-r--r-- | src/arrow/docs/source/_templates/docs-sidebar.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arrow/docs/source/_templates/docs-sidebar.html b/src/arrow/docs/source/_templates/docs-sidebar.html new file mode 100644 index 000000000..fde4435df --- /dev/null +++ b/src/arrow/docs/source/_templates/docs-sidebar.html @@ -0,0 +1,25 @@ + +<a class="navbar-brand" href="{{ pathto(master_doc) }}"> + <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo"> +</a> + +<div id="version-search-wrapper"> + +{% include "version-switcher.html" %} + +<form id="search-box" class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get"> + <i class="icon fas fa-search"></i> + <input type="search" class="form-control" name="q" id="search-input" placeholder="{{ theme_search_bar_text }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" > +</form> + +</div> + +<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation"> + <div class="bd-toc-item active"> + {% if "python/api" in pagename or "python/generated" in pagename %} + {{ generate_nav_html("sidebar", startdepth=0, maxdepth=3, collapse=False, includehidden=True, titles_only=True) }} + {% else %} + {{ generate_nav_html("sidebar", startdepth=0, maxdepth=4, collapse=False, includehidden=True, titles_only=True) }} + {% endif %} + </div> +</nav> |