generated from Consensys/doctools.template-site
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tooling page CTA * Address linter * Move CTA to top of page * Move CTA back to bottom of page
- Loading branch information
Showing
5 changed files
with
34 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,27 @@ | ||
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! 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