From bc43b00d8fe38716ca28f5c35c3e77c44f89ddd6 Mon Sep 17 00:00:00 2001 From: carlosgmartin Date: Wed, 12 Mar 2025 16:52:34 -0400 Subject: [PATCH] Add navigation breadcrumbs to docs. --- docs/_static/style.css | 10 ++++++++++ docs/conf.py | 1 + 2 files changed, 11 insertions(+) diff --git a/docs/_static/style.css b/docs/_static/style.css index 36b54b843..51ab72d71 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -296,3 +296,13 @@ html[data-theme="light"] .highlight span.gt { html[data-theme="light"] .highlight span.gr { color: #ff0000; } + +.header-article-items__start { + display: flex; + flex-direction: row; + gap: 0.5em; +} + +.bd-breadcrumbs { + margin-bottom: 0; +} diff --git a/docs/conf.py b/docs/conf.py index 285a5abc9..bbc417af1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -172,6 +172,7 @@ html_theme_options = { 'repository_url': 'https://github.com/jax-ml/jax', 'use_repository_button': True, # add a "link to repository" button 'navigation_with_keys': False, + 'article_header_start': ['toggle-primary-sidebar.html', 'breadcrumbs'], } # The name of an image file (relative to this directory) to place at the top