fix(docs): include section in article breadcrumb

This commit is contained in:
Maofeng
2026-09-20 15:57:47 +08:00
parent e70ad64b19
commit 93e7941dc4
+15
View File
@@ -344,6 +344,21 @@ function Header({ docLocation }: { docLocation: DocLocation }) {
<li> <li>
<span className="text-slate-200 dark:text-slate-700">/</span> <span className="text-slate-200 dark:text-slate-700">/</span>
</li> </li>
{docLocation.page.section !== "overview" && (
<>
<li>
<span className="text-slate-500 dark:text-slate-400">
{getDocSectionLabel(
docLocation.page.section,
docLocation.locale
)}
</span>
</li>
<li>
<span className="text-slate-200 dark:text-slate-700">/</span>
</li>
</>
)}
<li> <li>
<span className="text-indigo-500 dark:text-indigo-400"> <span className="text-indigo-500 dark:text-indigo-400">
{docLocation.page.title} {docLocation.page.title}