Skip to content

Commit b2dd1f2

Browse files
committed
improve document ui
1 parent f199b00 commit b2dd1f2

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
sphinx==8.2.3
1919
sphinx-reredirects==1.0.0
20-
pydata-sphinx-theme==0.8.0
20+
pydata-sphinx-theme==0.16.1
2121
myst-parser==4.0.1
2222
maturin==1.9.6
2323
jinja2==3.1.6
Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
2-
3-
<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get">
4-
<i class="icon fas fa-search"></i>
5-
<input type="search" class="form-control" name="q" id="search-input" placeholder="{{ theme_search_bar_text }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" >
6-
</form>
7-
1+
<p>
2+
<a href="{{ pathto(master_doc) }}">
3+
<img src="{{ pathto('_static/images/2x_bgwhite_original.png', 1) }}" class="logo" alt="logo">
4+
</a>
5+
</p>
6+
<p>
7+
<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get">
8+
<input type="search" class="form-control" name="q" id="search-input" placeholder="{{ theme_search_bar_text }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" >
9+
</form>
10+
</p>
811
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
12+
913
<div class="bd-toc-item active">
1014
{% if "python/api" in pagename or "python/generated" in pagename %}
11-
{{ generate_nav_html("sidebar", startdepth=0, maxdepth=3, collapse=False, includehidden=True, titles_only=True) }}
15+
{{ generate_toctree_html("sidebar", startdepth=0, maxdepth=3, collapse=False, includehidden=True, titles_only=True) }}
1216
{% else %}
13-
{{ generate_nav_html("sidebar", startdepth=0, maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
17+
{{ generate_toctree_html("sidebar", startdepth=0, maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
1418
{% endif %}
1519
</div>
16-
17-
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
18-
<img src="{{ pathto('_static/images/2x_bgwhite_original.png', 1) }}" class="logo" alt="logo">
19-
</a>
20-
</nav>
21-
20+
</nav>

0 commit comments

Comments
 (0)