mirror of
https://github.com/luxfi/docs.git
synced 2026-09-24 00:25:32 +00:00
Single-app → multi-app monorepo architecture: - apps/docs/ — Main Lux docs (replaces root-level app) - apps/bootnode-docs/ — Bootnode service - apps/bridge-docs/ — Bridge service - apps/cli-docs/ — CLI tool - apps/explorer-docs/ — Block explorer - apps/hsm-docs/ — Hardware security module - apps/indexer-docs/ — Blockchain indexer - apps/kms-docs/ — Key management service - apps/mpc-docs/ — Multi-party computation - apps/netrunner-docs/ — Network testing - apps/sdk-docs/ — SDK documentation - apps/wallet-docs/ — Wallet service New: pnpm-workspace.yaml, turbo.json, per-app configs Updated: Dockerfile (filter build), .gitignore (.turbo/, .docs/) Root package.json stripped to workspace orchestrator
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import './global.css';
|
|
import type { Viewport } from 'next';
|
|
import { baseUrl, createMetadata } from '@/lib/metadata';
|
|
import { Body } from '@/app/layout.client';
|
|
import { Provider } from './provider';
|
|
import type { ReactNode } from 'react';
|
|
import { Geist, Geist_Mono } from 'next/font/google';
|
|
import { TreeContextProvider } from '@hanzo/docs/ui/contexts/tree';
|
|
import { source } from '@/lib/source';
|
|
import { NextProvider } from '@hanzo/docs/core/framework/next';
|
|
|
|
export const metadata = createMetadata({
|
|
title: {
|
|
template: '%s | Lux Cloud',
|
|
default: 'Lux Cloud - Blockchain Infrastructure Platform',
|
|
},
|
|
description: 'Enterprise blockchain infrastructure APIs. Multi-chain RPC, WebSockets, NFT API, token API, and more.',
|
|
metadataBase: baseUrl,
|
|
});
|
|
|
|
const geist = Geist({ variable: '--font-sans', subsets: ['latin'] });
|
|
const mono = Geist_Mono({ variable: '--font-mono', subsets: ['latin'] });
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: [
|
|
{ media: '(prefers-color-scheme: dark)', color: '#0A0A0A' },
|
|
{ media: '(prefers-color-scheme: light)', color: '#0A0A0A' },
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en" className={`${geist.variable} ${mono.variable}`} suppressHydrationWarning>
|
|
<Body>
|
|
<NextProvider>
|
|
<TreeContextProvider tree={source.getPageTree()}>
|
|
<Provider>{children}</Provider>
|
|
</TreeContextProvider>
|
|
</NextProvider>
|
|
</Body>
|
|
</html>
|
|
);
|
|
}
|