Commit c5f24bd
authored
use sidebar for docs navigation (#19)
* docs: add interactive benchmark charts and user-facing copy
Replace static chart embeds with a canvas renderer that draws lines/points directly on the page, provides hover tooltips, and re-renders immediately when the theme toggles via a data-theme observer.
Introduce theme-aware chart styling through CSS variables for axis/grid/label and series colors, tuned to stay brand-adjacent while improving contrast in both light and dark modes.
Improve chart readability by increasing axis/tick typography and expanding plot margins to avoid label overlap.
Rewrite the benchmark page to be user-facing (describe the dataset and comparison setup), remove run instructions and the results table now that interactive hovers show values.
Move Errors/Examples/Benchmark into the More dropdown by lowering header_links_before_dropdown and placing those entries after the primary links.
* docs: refine benchmark chart formatting
Add a TypeScript source for the benchmark charts and regenerate the JS output for the docs site.
Format memory ticks/tooltip with MB or GB, shorten row counts in tooltips, and trim time tooltip precision while keeping axis ticks labeled in seconds.
Update the benchmark page labels and wording to match the new axis units and R vignette description.
* docs: polish benchmark intro
* docs: align navigation with Polars-style sidebar
- Rename the landing page to Overview and simplify the root toctree to use self + reference/index, matching the left-nav structure (getting-started renamed to Install & basics).
- Add a dedicated sidebar template that renders the full global toctree from level 0, expands reference pages further, and labels the section like Polars.
- Strip the "versus." prefix from sidebar link text at render time to prevent truncation in the left nav while preserving actual URLs.
- Force the sidebar template on all pages via html_sidebars so the nav is always visible (no hide-on-wide behavior).
- Hide top navbar links and right-align the remaining header controls to keep search/theme aligned after removing the top nav links.
* docs: simplify nav rendering
- drop the HTML post-processing for sidebar labels and use an autosummary method template so method pages render as Comparison.* without the versus. prefix
- restore the GitHub icon link via theme options and place header controls on the right without duplicate search
- remove the brittle nav-hiding CSS while keeping header alignment adjustments
- note the benchmark machine (2020 13-inch MacBook Pro, i7, 32 GB RAM) on the benchmarks page1 parent 8137add commit c5f24bd
File tree
9 files changed
+1357
-10
lines changed- docs_api/source
- _static
- css
- js
- ts
- _templates
- autosummary
9 files changed
+1357
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 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 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 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 | + | |
| 145 | + | |
| 146 | + | |
0 commit comments