fix(docs): include section in article breadcrumb
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user