This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: breadcrumb for documentation (#7207)
* feat: breadcrumbs for docs (#7045) (#7160) * feat: Added BreadCrumbs in Docs Page (#7045) * feat:reverted some autochanged files by VScode (#7045) * feat:code review Changes (#7045) * fix:code review (#7045) * Update components/BreadCrumb.js * Update pages/docs/how-to-guides/editing.mdx * Update pages/docs/advanced/single-user-mode.mdx * Update pages/docs/map.mdx * Update pages/docs/faqs.mdx * Update pages/docs/contributing/automated-tests.mdx * Update pages/docs/contributing/reviewers.mdx * Update pages/docs/environments/linkfree-cli.mdx * Update pages/docs/how-to-guides/milestones.mdx * Update pages/docs/contributing/storybook.mdx --------- Co-authored-by: Eddie Jaoude <[email protected]> Co-authored-by: Sara Jaoude <[email protected]> * fix: reformatted files * fix: consistent coding style --------- Co-authored-by: Nitheesh Daram <[email protected]> Co-authored-by: Sara Jaoude <[email protected]>
- Loading branch information
1 parent
30d47ae
commit 9d9b781
Showing
33 changed files
with
251 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { FiChevronRight } from "react-icons/fi"; | ||
import { AiOutlineHome } from "react-icons/ai"; | ||
|
||
import Link from "@components/Link"; | ||
|
||
export default function BreadCrumb({ section, name }) { | ||
return ( | ||
<nav className="flex p-3" aria-label="Breadcrumb"> | ||
<ol role="list" className="flex items-center space-x-4"> | ||
<li> | ||
<div> | ||
<Link | ||
href="/docs" | ||
className="text-primary hover:text-primary-medium-low" | ||
> | ||
<AiOutlineHome | ||
className="h-5 w-5 flex-shrink-0" | ||
aria-hidden="true" | ||
/> | ||
<span className="sr-only">Docs</span> | ||
</Link> | ||
</div> | ||
</li> | ||
<li key={section}> | ||
<div className="flex items-center"> | ||
<FiChevronRight | ||
className="h-5 w-5 flex-shrink-0 text-primary" | ||
aria-hidden="true" | ||
/> | ||
<Link | ||
href={`/docs/#${section}`} | ||
className="ml-4 text-sm font-medium text-primary hover:text-primary-medium-low" | ||
> | ||
{section} | ||
</Link> | ||
</div> | ||
</li> | ||
<li key={name}> | ||
<div className="flex items-center"> | ||
<FiChevronRight | ||
className="h-5 w-5 flex-shrink-0 text-primary" | ||
aria-hidden="true" | ||
/> | ||
<Link | ||
href="#" | ||
className="ml-4 text-sm font-medium text-primary hover:text-primary-medium-low" | ||
> | ||
{name} | ||
</Link> | ||
</div> | ||
</li> | ||
</ol> | ||
</nav> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.