From 634349c5775f7905131fade14fa0816938be6207 Mon Sep 17 00:00:00 2001 From: Joel Willmore <95916148+jlwllmr@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:49:10 +0000 Subject: [PATCH] Add tooling page CTA (#859) * Add tooling page CTA * Address linter * Move CTA to top of page * Move CTA back to bottom of page --- docs/developers/tooling/oracles/redstone.mdx | 2 +- docs/developers/tooling/oracles/tellor.mdx | 4 ++- .../permanent-data/irys/irys-querying.mdx | 2 +- src/components/ToolingCTA.jsx | 27 +++++++++++++++++++ src/theme/DocItem/Layout/index.js | 2 ++ 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 src/components/ToolingCTA.jsx diff --git a/docs/developers/tooling/oracles/redstone.mdx b/docs/developers/tooling/oracles/redstone.mdx index 6ad71515c..1d25d99ef 100644 --- a/docs/developers/tooling/oracles/redstone.mdx +++ b/docs/developers/tooling/oracles/redstone.mdx @@ -1,6 +1,6 @@ --- title: RedStone -image: /img/socialCards/redstone-oracles.jpg +image: /img/socialCards/redstone.jpg --- RedStone provides data feeds with update times of less than 10 seconds, suitable diff --git a/docs/developers/tooling/oracles/tellor.mdx b/docs/developers/tooling/oracles/tellor.mdx index 95a37c7d7..1e201f22d 100644 --- a/docs/developers/tooling/oracles/tellor.mdx +++ b/docs/developers/tooling/oracles/tellor.mdx @@ -1,6 +1,8 @@ --- title: Tellor -description: A versatile oracle protocol that can provide data of any type permissionlessly with crypto-economic liveness and security. +description: >- + A versatile oracle protocol that can provide data of any type permissionlessly + with crypto-economic liveness and security. image: /img/socialCards/tellor.jpg --- diff --git a/docs/developers/tooling/permanent-data/irys/irys-querying.mdx b/docs/developers/tooling/permanent-data/irys/irys-querying.mdx index acc655369..3dbc2ea93 100644 --- a/docs/developers/tooling/permanent-data/irys/irys-querying.mdx +++ b/docs/developers/tooling/permanent-data/irys/irys-querying.mdx @@ -1,6 +1,6 @@ --- title: Query Irys transactions -image: /img/socialCards/querying-irys-transactions.jpg +image: /img/socialCards/query-irys-transactions.jpg description: Querying data on Irys. --- diff --git a/src/components/ToolingCTA.jsx b/src/components/ToolingCTA.jsx new file mode 100644 index 000000000..60bcf0998 --- /dev/null +++ b/src/components/ToolingCTA.jsx @@ -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 ( +
+ Have you built a tool for Linea? Contribute to the docs to add it + here! See our{" "} + + guide to contributing + + . +
+