You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current navigation tree suffers from several problems:
* From a UX perspective, when a navigation tree has many levels,
interacting with the tree becomes tedious. Likewise, when a tree is
very long, scanning becomes more difficult and it is easy to lose
track of where you are in the hierarchy. For projects like Rails, the
navigation tree has many levels and is very long.
* The navigation tree uses JavaScript to navigate to pages instead of
actual links. From a UX perspective, this can be frustrating when the
user expects the entries to behave like links, such as when
right-clicking or Ctrl+clicking. From an SEO perspective, it can be
harmful because search engines cannot crawl the entries.
* The CSS for the navigation tree is very brittle. The tree uses a
repeating background image to achieve its striping effect, and
requires entries to be a specific height to align with the background.
This makes it difficult to change anything related to size, such as
font size or even font family.
* In terms of page rendering costs, the navigation tree can be very
heavy for large projects. For Rails, the navigation tree adds several
thousand nodes to the DOM. Furthermore, the tree is rendered entirely
via JavaScript -- no static HTML -- which compounds the cost.
This commit replaces the navigation tree with a static sidebar per page.
For the main page, the sidebar will display a list of top-level modules
and a heading-based outline for the main page content. For other prose
files (such as `README` files), the sidebar will similarly display a
heading-based outline. For modules, the sidebar will display a list of
their methods, as well as a heading-based outline if the module has a
top-level comment that includes headings.
The `filter.svg` file is from [Feather icons][feather] v4.29.0, and is
[licensed under the MIT license][license].
[feather]: https://feathericons.com/
[license]: https://github.com/feathericons/feather/blob/v4.29.0/LICENSE
0 commit comments