Commit 407298f
Improve documentation site layout (#1578)
* docs: refresh theme — pydata-sphinx-theme 0.16, top navbar, dark mode
Bump pydata-sphinx-theme 0.8.0 -> 0.16 to enable the modern navbar slot
API and dark/light theme switcher. Configure top navbar with logo,
nav links, GitHub icon, and theme switcher in conf.py. Drop the custom
docs-sidebar.html override and the layout.html block that silenced the
navbar — both predate the slot API and conflict with the new theme.
Strip CSS overrides that fought the old theme (--pst-header-height: 0,
navbar-brand sizing) and add a dark-mode variant for the inline code
color and table-stripe shading. Fix the stale github_repo
("arrow-datafusion-python" -> "datafusion-python") so future Edit-on-
GitHub links resolve. Bump copyright year and project name.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: collapse navbar to section landing pages
Previous structure dumped every top-level toctree entry from index.rst
into the navbar, producing eight items including external URLs ("Github
and Issue Tracker", "Rust's API Docs", ...) that wrapped to two lines
each. Introduce user-guide/index.rst and contributor-guide/index.rst as
section landing pages with nested toctrees, then point index.rst at just
those two plus autoapi/index. The navbar now reads "User Guide",
"Contributor Guide", "API Reference" — three single-line entries. Move
the external links into the index.rst body where they're discoverable
without crowding navigation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: restore external links lost in navbar restructure
Add Examples and Rust API as text links in the top navbar via the
pydata-sphinx-theme external_links option. Nest the code-of-conduct
link inside the Contributor Guide toctree so it appears alongside the
other contributor pages. Drop the duplicate "Further reading" bullet
list from the landing page now that every link has a permanent home.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: render Rust API link as docs.rs icon next to GitHub
Move the Rust API docs entry from external_links to icon_links and use
the fa-brands fa-rust gear mark. Now sits next to the GitHub icon in
navbar_end with matching visual weight instead of a wider text link.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: render sidebar nav on landing page
The default pydata-sphinx-theme sidebar-nav-bs starts at the current
top-level section, so the root index — which has no parent section —
ends up with an empty sidebar. The theme's layout also explicitly
filters sidebar-nav-bs out of the sidebar list when suppress_sidebar_
toctree() returns true (which it does for root pages), so simply
overriding sidebar-nav-bs.html in templates doesn't help.
Add a sidebar-globaltoc.html template that calls Sphinx's toctree()
global directly to render the full document tree, and wire it through
html_sidebars under a name the theme's suppress filter doesn't strip.
Landing page now shows User Guide / Contributor Guide / API Reference
in the sidebar with the current section expanded on inner pages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: render expandable chevrons in sidebar nav
Switch the sidebar toctree call from toctree() to generate_toctree_html
with collapse=False, so nested <ul>s render into the DOM for every
branch. The pydata-sphinx-theme JS then wraps them in <details> with
fa-chevron-down toggles, matching the datafusion-comet sidebar where
each section with children can be expanded inline. show_nav_level=1
keeps deeper levels collapsed on first load.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: expand sidebar to show level 2 entries by default
Bump show_nav_level 1 -> 2 so the landing-page sidebar opens with
User Guide / Contributor Guide / API Reference already expanded to
their immediate children. Deeper levels remain collapsed behind
chevrons so the sidebar stays scannable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: add Links sidebar section for external references
Restore the "Links" sidebar heading that the previous site had —
GitHub and Issue Tracker, Rust API Docs, Code of Conduct, Examples.
Implemented as a second hidden toctree with :caption: Links so the
pydata-sphinx-theme sidebar renders the heading above the four
external URLs. Drop Code of Conduct from the Contributor Guide
toctree since it now lives under Links instead.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: consolidate external URLs into a single Links nav item
Replace the second hidden toctree (which expanded each external URL
into its own navbar entry) with a dedicated links.rst landing page,
and add a single "links" entry to the main toctree. Top navbar now
shows User Guide / Contributor Guide / API Reference / Links — four
items, no wrapping. Clicking Links opens the page that lists GitHub,
Rust API Docs, Code of Conduct, and Examples.
Drop the external_links Examples entry from conf.py since the same
URL now lives on the Links page.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: add favicon matching the main datafusion site
Drop in the same favicon.svg the main datafusion.apache.org site
uses (just the Apache DataFusion mark, no wordmark) and wire it
through html_favicon. Browsers and bookmarks now show the project
icon instead of the generic Sphinx page glyph.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: address Copilot review feedback on sidebar config
Two small follow-ups from the Copilot reviewer on #1578:
- Append .html to the html_sidebars entry. Sphinx's Jinja loader
resolves both "sidebar-globaltoc" and "sidebar-globaltoc.html" to
the same template, but the explicit form is closer to the spelling
in the Sphinx docs and is harder to misread.
- Update the inline comment in sidebar-globaltoc.html that still
claimed show_nav_level=1 after we bumped it to 2 in conf.py. Now
describes the variable wiring instead of hard-coding a number that
has to be kept in sync with conf.py.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bfa14f4 commit 407298f
12 files changed
Lines changed: 240 additions & 112 deletions
File tree
- docs/source
- _static
- _templates
- contributor-guide
- user-guide
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 26 | + | |
31 | 27 | | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 34 | + | |
| 35 | + | |
48 | 36 | | |
49 | 37 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 38 | + | |
| 39 | + | |
55 | 40 | | |
56 | 41 | | |
57 | 42 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 43 | + | |
| 44 | + | |
62 | 45 | | |
63 | 46 | | |
64 | 47 | | |
65 | 48 | | |
66 | 49 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 50 | + | |
| 51 | + | |
80 | 52 | | |
81 | 53 | | |
82 | 54 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
119 | 145 | | |
120 | 146 | | |
121 | 147 | | |
122 | | - | |
| 148 | + | |
123 | 149 | | |
124 | 150 | | |
| 151 | + | |
125 | 152 | | |
126 | 153 | | |
127 | 154 | | |
128 | 155 | | |
129 | 156 | | |
130 | 157 | | |
131 | 158 | | |
| 159 | + | |
| 160 | + | |
132 | 161 | | |
133 | 162 | | |
134 | 163 | | |
135 | 164 | | |
136 | | - | |
137 | | - | |
138 | 165 | | |
139 | 166 | | |
140 | 167 | | |
141 | | - | |
| 168 | + | |
142 | 169 | | |
143 | 170 | | |
144 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | 58 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments