diff --git a/src/components/common/Footer.jsx b/src/components/common/Footer.jsx index 3c3dd7b..9418f69 100644 --- a/src/components/common/Footer.jsx +++ b/src/components/common/Footer.jsx @@ -3,7 +3,7 @@ import Image from "next/image"; const NAV_LINKS = [ { label: 'Companies', href: '/companies' }, - { label: 'Documentation', href: 'https://docs.futarchy.fi', external: true }, + { label: 'Documentation', href: '/documents' }, { label: 'Status', href: 'https://status.futarchy.fi', external: true }, ]; diff --git a/src/pages/docs/index.jsx b/src/pages/docs/index.jsx new file mode 100644 index 0000000..b90d6e2 --- /dev/null +++ b/src/pages/docs/index.jsx @@ -0,0 +1 @@ +export { default } from "../documents"; diff --git a/src/pages/documents/index.jsx b/src/pages/documents/index.jsx new file mode 100644 index 0000000..fd11495 --- /dev/null +++ b/src/pages/documents/index.jsx @@ -0,0 +1,168 @@ +import Head from "next/head"; +import Link from "next/link"; + +import RootLayout from "../../components/layout/RootLayout"; + +const DOCUMENT_GROUPS = [ + { + title: "Start Here", + description: "Core reading for understanding the product, the mechanism, and the trading surface.", + links: [ + { + label: "Docs README", + href: "https://github.com/futarchy-fi/docs/blob/main/README.md", + }, + { + label: "How Futarchy Works", + href: "https://github.com/futarchy-fi/docs/blob/main/how-futarchy-works.md", + }, + { + label: "Trading in Futarchy", + href: "https://github.com/futarchy-fi/docs/blob/main/trading-in-futarchy.md", + }, + ], + }, + { + title: "Protocol", + description: "Implementation details for proposal lifecycles, pools, custody, and conditional assets.", + links: [ + { + label: "Market Implementation", + href: "https://github.com/futarchy-fi/docs/blob/main/market-implementation.md", + }, + { + label: "Proposal Lifecycle", + href: "https://github.com/futarchy-fi/docs/blob/main/protocol/proposal-lifecycle.md", + }, + { + label: "Liquidity Pools", + href: "https://github.com/futarchy-fi/docs/blob/main/protocol/liquidity-pools.md", + }, + { + label: "Custody and Oracles", + href: "https://github.com/futarchy-fi/docs/blob/main/protocol/custody-and-oracles.md", + }, + ], + }, + { + title: "DAO Use", + description: "Materials for teams evaluating integration, sponsorship, and rollout paths.", + links: [ + { + label: "DAO Overview", + href: "https://github.com/futarchy-fi/docs/blob/main/dao/README.md", + }, + { + label: "DAO Integration", + href: "https://github.com/futarchy-fi/docs/blob/main/dao/integration.md", + }, + { + label: "DAO FAQ", + href: "https://github.com/futarchy-fi/docs/blob/main/dao/faq.md", + }, + { + label: "DAO Sponsorship", + href: "https://github.com/futarchy-fi/docs/blob/main/dao/sponsorship.md", + }, + ], + }, + { + title: "Reference", + description: "Operational reference material, risk disclosures, and terminology.", + links: [ + { + label: "Deployment and Addresses", + href: "https://github.com/futarchy-fi/docs/blob/main/deployment-and-addresses.md", + }, + { + label: "Risks and Guarantees", + href: "https://github.com/futarchy-fi/docs/blob/main/appendices/risks-and-guarantees.md", + }, + { + label: "Glossary", + href: "https://github.com/futarchy-fi/docs/blob/main/appendices/glossary.md", + }, + ], + }, +]; + +const pageTitle = "Futarchy Documents"; +const pageDescription = + "A stable in-app landing page for Futarchy documentation, with direct links to the canonical docs repository."; + +export default function DocumentsPage() { + return ( + <> +
++ The live footer docs link now lands here first. If the external docs host does + not open cleanly in your browser or wallet webview, use the direct document links + below. +
+{group.description}
+ +