Forráskód Böngészése

chore(dev-hub) Remove Lazer and Fix inline code

Aditya Arora 2 hónapja
szülő
commit
860f547757

+ 1 - 0
apps/developer-hub/content/docs/entropy/index.mdx

@@ -11,6 +11,7 @@ import {
   DiceSix,
   MagnifyingGlass,
 } from "@phosphor-icons/react/dist/ssr";
+import { IntegrationCard } from "../../../src/components/IntegrationCard";
 
 **Pyth Entropy** is an on-chain random number generator (RNG) designed for developers who need fair, unbiased, and cryptographically secure randomness.
 Whether you're building a blockchain game, NFT mint, lottery, or simulation, Entropy delivers randomness that is:

+ 0 - 8
apps/developer-hub/content/docs/lazer/how-to-guides/index.mdx

@@ -1,8 +0,0 @@
----
-title: Lazer How-To Guide
-description: A placeholder docs page
----
-
-# How To
-
-Pyth Lazer is a low latency, highly customizable price oracle. It offers a customizable set of price feeds, target chains (EVM or Solana) and channels (real time or fixed rate)

+ 0 - 10
apps/developer-hub/content/docs/lazer/index.mdx

@@ -1,10 +0,0 @@
----
-title: Overview
-description: A placeholder landing page
-icon: CardsThree
-full: true
----
-
-# Low latency, highly customizable price oracle
-
-Pyth Lazer is a low latency, highly customizable price oracle. It offers a customizable set of price feeds, target chains (EVM or Solana) and channels (real time or fixed rate)

+ 0 - 7
apps/developer-hub/content/docs/lazer/meta.json

@@ -1,7 +0,0 @@
-{
-  "root": true,
-  "title": "Lazer",
-  "description": "Low latency, highly customizable price oracle",
-  "icon": "Lightning",
-  "pages": ["index", "---Guides---", "how-to-guides"]
-}

+ 1 - 1
apps/developer-hub/content/docs/meta.json

@@ -1,3 +1,3 @@
 {
-  "pages": ["pyth-core", "lazer", "express-relay", "entropy"]
+  "pages": ["price-feeds", "entropy", "express-relay"]
 }

+ 20 - 0
apps/developer-hub/source.config.ts

@@ -27,6 +27,26 @@ export const docs = defineDocs({
 
 export default defineConfig({
   mdxOptions: {
+    rehypeCodeOptions: {
+      langs: [
+        "solidity",
+        "ts",
+        "bash",
+        "js",
+        "json",
+        "md",
+        "mdx",
+        "python",
+        "rust",
+        "sh",
+        "yaml",
+      ],
+      inline: "tailing-curly-colon",
+      themes: {
+        light: "github-light",
+        dark: "github-dark",
+      },
+    },
     remarkPlugins: [remarkMath],
     rehypePlugins: [rehypeKatex, rehypeCode],
   },

+ 3 - 4
apps/developer-hub/src/components/Root/index.tsx

@@ -14,8 +14,7 @@ import "./global.css";
 
 export const TABS = [
   { segment: "", children: "Home" },
-  { segment: "pyth-core", children: "Pyth Core" },
-  { segment: "lazer", children: "Lazer" },
+  { segment: "price-feeds", children: "Price Feeds" },
   { segment: "express-relay", children: "Express Relay" },
   { segment: "entropy", children: "Entropy" },
 ];
@@ -40,8 +39,8 @@ export const Root = ({ children }: Props) => (
       enableAccessibilityReporting={ENABLE_ACCESSIBILITY_REPORTING}
       extraCta={<SearchButton />}
       mainCta={{
-        label: "Insights",
-        href: "https://insights.pyth.network/",
+        label: "Developer Forum",
+        href: "https://dev-forum.pyth.network/",
       }}
       providers={[NuqsAdapter]}
       tabs={TABS}