Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
269 changes: 135 additions & 134 deletions .source/index.ts

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
import { DocsBody, DocsPage } from "fumadocs-ui/page";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { source } from "@/app/source";
import defaultComponents from "fumadocs-ui/mdx";
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
import { TypeTable } from "fumadocs-ui/components/type-table";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
import { Heading } from "fumadocs-ui/components/heading";
import { ThemeAwareSVG } from "@/components/theme-aware-svg";
import Link from "fumadocs-core/link";
import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Callout } from "fumadocs-ui/components/callout";
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
import {
GoogelPlayIcon,
SvgComponent,
SvgComponent2,
SvgComponentTest,
} from "@/components/images";
import { Separator } from "@/components/seperator";
import CommandTable from "@/components/table";

export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

const MDX = page.data.body;

const path = `/content/docs/${page.file.path}`;

return (
<DocsPage
toc={page.data.toc}
full={page.data.full}
tableOfContent={{
style: "clerk",
single: false,
}}
editOnGithub={{
owner: "minima-global",
repo: "docs",
sha: "main",
path: path,
}}
>
<DocsBody>
<h1>{page.data.title}</h1>
<MDX
components={{
...defaultComponents,
ThemeAwareSVG,
Tabs,
Tab,
ImageZoom,
TypeTable,
Accordion,
Accordions,
Heading,
Link,
SvgComponent,
SvgComponent2,
SvgComponentTest,
Steps,
Step,
GoogelPlayIcon,
CommandTable,
Separator,
Callout,
pre: ({ ref: _ref, ...props }) => (
<CodeBlock {...props}>
<Pre className=" max-h-[400px]">{props.children}</Pre>
</CodeBlock>
),
}}
/>
</DocsBody>
</DocsPage>
);
}

export async function generateStaticParams() {
return source.generateParams();
}

export async function generateMetadata(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

return {
title: page.data.title,
description: page.data.description,
twitter: {
card: "summary_large_image",
},
};
}
import { DocsBody, DocsPage } from "fumadocs-ui/page";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { source } from "@/app/source";
import defaultComponents from "fumadocs-ui/mdx";
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
import { TypeTable } from "fumadocs-ui/components/type-table";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
import { Heading } from "fumadocs-ui/components/heading";
import { ThemeAwareSVG } from "@/components/theme-aware-svg";
import Link from "fumadocs-core/link";
import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Callout } from "fumadocs-ui/components/callout";
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
import {
GoogelPlayIcon,
SvgComponent,
SvgComponent2,
SvgComponentTest,
} from "@/components/images";
import { Separator } from "@/components/seperator";
import CommandTable from "@/components/table";
export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();
const MDX = page.data.body;
const path = `/content/docs/${page.file.path}`;
return (
<DocsPage
toc={page.data.toc}
full={page.data.full}
tableOfContent={{
style: "clerk",
single: false,
}}
editOnGithub={{
owner: "minima-global",
repo: "docs",
sha: "main",
path: path,
}}
>
<DocsBody>
<h1>{page.data.title}</h1>
<MDX
components={{
...defaultComponents,
ThemeAwareSVG,
Tabs,
Tab,
ImageZoom,
TypeTable,
Accordion,
Accordions,
Heading,
Link,
SvgComponent,
SvgComponent2,
SvgComponentTest,
Steps,
Step,
GoogelPlayIcon,
CommandTable,
Separator,
Callout,
pre: ({ ref: _ref, ...props }) => (
<CodeBlock {...props}>
<Pre className=" max-h-[400px]">{props.children}</Pre>
</CodeBlock>
),
}}
/>
</DocsBody>
</DocsPage>
);
}
export async function generateStaticParams() {
return source.generateParams();
}
export async function generateMetadata(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();
return {
title: page.data.title,
description: page.data.description,
twitter: {
card: "summary_large_image",
},
};
}
3 changes: 2 additions & 1 deletion content/docs/core/minimawhitepaper/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Can a secure, scalable, truly decentralized cryptocurrency be made with no overa
- The protocol needs to be so resource-efficient that every user is able to run a Complete node at all times, as if it is of no consequence.
- It must remove the paid miners. The miner-centric fee-paying model always leads to centralization.
- It must be complete. Immutability of the protocol is a desired quality.
- Since it must be complete, the Protocol must

Since it must be complete, the Protocol must

1. scale from inception
2. be Quantum Secure
Expand Down
4 changes: 3 additions & 1 deletion content/docs/development/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"layer2",
"---Smart Contract Examples---",
"future-cash",
"vestr"
"vestr",
"---Integrations---",
"streamr"
]
}
Loading