generated from Consensys/doctools.template-site
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import {useLocation} from '@docusaurus/router'; | ||
import Admonition from '@theme/Admonition'; | ||
|
||
export default function ToolingCTA() { | ||
const location = useLocation(); | ||
|
||
// Only show on pages that include '/tooling' in their path | ||
if (!location.pathname.includes('/tooling')) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div style={{ marginTop: '2rem' }}> | ||
<Admonition type="info" title="Want to be featured here?"> | ||
<p> | ||
Have you built a tool for Linea? Contribute to the docs to add it here! | ||
Check failure on line 17 in src/components/ToolingCTA.jsx GitHub Actions / Lint Code Base, Spelling
|
||
See our <a href="https://github.com/Consensys/doc.linea?tab=readme-ov-file#contribute"> | ||
guide to contributing</a>. | ||
</p> | ||
</Admonition> | ||
</div> | ||
); | ||
} |
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