From 4bd896c8f2653e88f7c88a184ff4570e7e802ba3 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Mon, 11 Sep 2023 00:00:07 +0200 Subject: [PATCH] Fix linkified breadcrumb items in readthedocs theme A doc can never have a `link` attribute so this branch never kicked in. Actually even now, this branch will still not kick in, only mkdocs-section-index makes this state possible. --- mkdocs/themes/readthedocs/breadcrumbs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdocs/themes/readthedocs/breadcrumbs.html b/mkdocs/themes/readthedocs/breadcrumbs.html index 8357ee84..29ab9086 100644 --- a/mkdocs/themes/readthedocs/breadcrumbs.html +++ b/mkdocs/themes/readthedocs/breadcrumbs.html @@ -3,8 +3,8 @@
  • {%- if page %} {%- for doc in page.ancestors[::-1] %} - {%- if doc.link %} - + {%- if doc.url %} + {%- else %} {%- endif %}