fix(docs): include section in article breadcrumb
This commit is contained in:
@@ -344,6 +344,21 @@ function Header({ docLocation }: { docLocation: DocLocation }) {
|
||||
<li>
|
||||
<span className="text-slate-200 dark:text-slate-700">/</span>
|
||||
</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>
|
||||
<span className="text-indigo-500 dark:text-indigo-400">
|
||||
{docLocation.page.title}
|
||||
|
||||
Reference in New Issue
Block a user