mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
chore(web): add banner to docs and fix theme flash
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "bun run generate-analytics && bun run generate-schema",
|
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Banner } from "fumadocs-ui/components/banner";
|
||||||
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
import { baseOptions } from "@/app/layout.config";
|
import { baseOptions } from "@/app/layout.config";
|
||||||
@@ -5,8 +6,13 @@ import { source } from "@/lib/source";
|
|||||||
|
|
||||||
export default function Layout({ children }: { children: ReactNode }) {
|
export default function Layout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<DocsLayout tree={source.pageTree} {...baseOptions}>
|
<>
|
||||||
{children}
|
<Banner variant="rainbow">
|
||||||
</DocsLayout>
|
⚠️ WORK IN PROGRESS DONT TAKE REFERENCE!!!
|
||||||
|
</Banner>
|
||||||
|
<DocsLayout tree={source.pageTree} {...baseOptions}>
|
||||||
|
{children}
|
||||||
|
</DocsLayout>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export const dynamic = "force-static";
|
export const dynamic = "force-static";
|
||||||
|
|
||||||
import { RootProvider } from "fumadocs-ui/provider";
|
import { RootProvider } from "fumadocs-ui/provider";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata, Viewport } from "next";
|
||||||
import { Poppins } from "next/font/google";
|
import { Poppins } from "next/font/google";
|
||||||
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
@@ -92,6 +92,11 @@ export const metadata: Metadata = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const viewport: Viewport = {
|
||||||
|
width: "device-width",
|
||||||
|
initialScale: 1.0,
|
||||||
|
};
|
||||||
|
|
||||||
export default function Layout({ children }: { children: ReactNode }) {
|
export default function Layout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" className={poppins.className} suppressHydrationWarning>
|
<html lang="en" className={poppins.className} suppressHydrationWarning>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"name": "better-t-stack",
|
"name": "better-t-stack",
|
||||||
"compatibility_date": "2025-07-13",
|
"compatibility_date": "2025-07-13",
|
||||||
"compatibility_flags": ["nodejs_compat"],
|
"compatibility_flags": ["nodejs_compat"],
|
||||||
|
"keep_names": false,
|
||||||
"assets": {
|
"assets": {
|
||||||
"directory": ".open-next/assets",
|
"directory": ".open-next/assets",
|
||||||
"binding": "ASSETS"
|
"binding": "ASSETS"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
"check": "turbo check",
|
"check": "turbo check",
|
||||||
"format": "biome check --write .",
|
"format": "biome check --write .",
|
||||||
"publish-packages": "turbo run build --filter=create-better-t-stack && changeset publish",
|
"publish-packages": "turbo run build --filter=create-better-t-stack && changeset publish",
|
||||||
"deploy:web": "turbo run --filter=web deploy"
|
"deploy:web": "bun run --filter=web generate-analytics && bun run --filter=web generate-schema && turbo run --filter=web deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.1.2",
|
"@biomejs/biome": "2.1.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user