Skip to content

Commit 16b5563

Browse files
authored
Fixup various things (#10)
* Update the language on the front page to point to the old page * Add the logo
1 parent 14724ef commit 16b5563

File tree

6 files changed

+43
-20
lines changed

6 files changed

+43
-20
lines changed

docs/content/docs/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Formerly known as the Solana Program Library (SPL), the
77
deploy certain SPL programs to mainnet-beta.
88

99
In addition, the organization includes re-implementations of native programs
10-
which target the Solana Virual Machine, also known as "core BPF programs".
10+
which target the Solana Virtual Machine, also known as "core BPF programs".

docs/next.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const withMDX = createMDX();
55
/** @type {import('next').NextConfig} */
66
const config = {
77
reactStrictMode: true,
8-
output: 'export',
98
};
109

1110
export default withMDX(config);

docs/src/app/(home)/page.tsx

+33-9
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,50 @@ import Link from 'next/link';
33
export default function HomePage() {
44
return (
55
<main className="flex flex-1 flex-col justify-center text-center">
6-
<h1 className="mb-4 text-2xl font-bold">Solana Program (Library)</h1>
6+
<h1 className="mb-4 text-2xl font-bold">Welcome to the new home of the Solana Program Library!</h1>
77
<h3 className="mb-4 text-2x1">
8-
The <a href="https://github.com/solana-program">Solana Program</a> organization
9-
contains a collection of on-chain programs targeting the <a href="https://www.anza.xyz/blog/the-solana-ebpf-virtual-machine">Solana Virtual Machine</a>.
10-
</h3>
11-
<h3 className="mb-4 text-2x1">
12-
These programs are tested against the <a href="https://github.com/anza-xyz/agave/">Agave</a> implementation of the SVM and deployed to Solana mainnet-beta.
8+
The{' '}
9+
<Link
10+
href="https://github.com/solana-program"
11+
className="text-fd-foreground font-semibold underline"
12+
>
13+
Solana Program
14+
</Link> organization
15+
contains a collection of on-chain programs targeting the{' '}
16+
<Link
17+
href="https://www.anza.xyz/blog/the-solana-ebpf-virtual-machine"
18+
className="text-fd-foreground font-semibold underline"
19+
>
20+
Solana Virtual Machine
21+
</Link>.
1322
</h3>
1423
<h3 className="mb-4 text-2x1">
15-
All programs are currently maintained by <a href="https://www.anza.xyz">Anza</a>.
24+
All programs are currently maintained by{' '}
25+
<Link
26+
href="https://www.anza.xyz"
27+
className="text-fd-foreground font-semibold underline"
28+
>
29+
Anza
30+
</Link>.
1631
</h3>
1732
<p className="text-fd-muted-foreground">
18-
You can open{' '}
33+
Go to{' '}
1934
<Link
2035
href="/docs"
2136
className="text-fd-foreground font-semibold underline"
2237
>
2338
/docs
2439
</Link>{' '}
25-
to see program-specific documentation.
40+
for up-to-date program-specific documentation.
41+
</p>
42+
<p className="text-fd-muted-foreground">
43+
Old docs still exist at{' '}
44+
<Link
45+
href="https://spl.solana.com"
46+
className="text-fd-foreground font-semibold underline"
47+
>
48+
https://spl.solana.com
49+
</Link>.
2650
</p>
2751
</main>
2852
);

docs/src/app/layout.config.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
2+
import Image from 'next/image';
3+
import IconImg from '@/assets/solana-program.png';
24

35
/**
46
* Shared layout configurations
@@ -11,14 +13,12 @@ export const baseOptions: BaseLayoutProps = {
1113
nav: {
1214
title: (
1315
<>
14-
<svg
15-
width="24"
16-
height="24"
17-
xmlns="http://www.w3.org/2000/svg"
18-
aria-label="Logo"
19-
>
20-
<circle cx={12} cy={12} r={12} fill="currentColor" />
21-
</svg>
16+
<Image
17+
src={IconImg}
18+
width={40}
19+
height={40}
20+
alt='logo'
21+
/>
2222
Solana Program
2323
</>
2424
),

docs/src/assets/solana-program.png

7.38 KB
Loading

docs/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
"exclude": [
4343
"node_modules"
4444
]
45-
}
45+
}

0 commit comments

Comments
 (0)