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
2 changes: 1 addition & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ EOF
cat << 'EOF' > "$SIDEBAR_ITEMS_PATH"
// DO NOT EDIT THIS FILE. ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN.

import { SidebarItem } from "vocs";
import type { SidebarItem } from "./types";

export const exampleItems: SidebarItem[] = [
EOF
Expand Down
Binary file modified vocs/bun.lockb
Binary file not shown.
27 changes: 25 additions & 2 deletions vocs/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: landing
showLogo: false
---

import { HomePage, Sponsors } from "vocs/components";
import { HomePage } from "vocs";

<div className="max-w-[1120px] mx-auto vp-doc relative px-[24px] mb-[64px] mt-[32px] md:px-0 md:mb-[32px]">
<div className="pt-[48px] max-sm:pt-0">
Expand Down Expand Up @@ -380,6 +380,29 @@ Join the Community

# Supporters

<Sponsors />
<div className="vocs_Sponsors_row grid grid-cols-2 gap-4 max-sm:grid-cols-1" style={{ "--vocs_Sponsors_height": "120px" }}>
<a
href="https://paradigm.xyz"
className="vocs_Sponsors_column vocs_Sponsors_sponsor vocs_Link vocs_Link_styleless"
>
<img
alt="Paradigm"
className="vocs_Sponsors_image"
src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg"
style={{ height: "var(--vocs_Sponsors_height)" }}
/>
</a>
<a
href="https://ithaca.xyz"
className="vocs_Sponsors_column vocs_Sponsors_sponsor vocs_Link vocs_Link_styleless"
>
<img
alt="Ithaca"
className="vocs_Sponsors_image"
src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-light.svg"
style={{ height: "var(--vocs_Sponsors_height)" }}
/>
</a>
</div>

</article>
2 changes: 1 addition & 1 deletion vocs/example-items.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// DO NOT EDIT THIS FILE. ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN.

import { SidebarItem } from "vocs";
import type { SidebarItem } from "./types";

export const exampleItems: SidebarItem[] = [
{ text: 'Advanced', collapsed: true, link: '/examples/advanced/README', items: [
Expand Down
4 changes: 3 additions & 1 deletion vocs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"caniuse-lite": "^1.0.30001755",
"react": "latest",
"react-dom": "latest",
"vocs": "latest"
"vite": "^8.0.16",
"vocs": "2.0.10",
"waku": "^1.0.0-beta.0"
},
"devDependencies": {
"@types/react": "latest",
Expand Down
2 changes: 1 addition & 1 deletion vocs/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Sidebar } from "vocs";
import type { Sidebar } from "./types";
import { exampleItems } from "./example-items";

export const sidebar: Sidebar = [
Expand Down
16 changes: 16 additions & 0 deletions vocs/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export type SidebarItem = {
badge?:
| string
| {
text: string;
variant?: "note" | "info" | "warning" | "danger" | "tip" | "success";
};
collapsed?: boolean;
disabled?: boolean;
external?: boolean;
items?: SidebarItem[];
link?: string;
text?: string;
};

export type Sidebar = SidebarItem[] | Record<string, SidebarItem[]>;
45 changes: 45 additions & 0 deletions vocs/vocs.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { defineConfig } from 'vocs/config'
import { sidebar } from './sidebar'
export default defineConfig({
title: 'alloy',
logoUrl: '/alloy-logo.png',
srcDir: 'docs',
sidebar,
iconUrl: { light: '/favicon.png', dark: '/favicon.png' },
ogImageUrl: 'https://raw.githubusercontent.com/alloy-rs/book/master/vocs/docs/publics/banner.jpg',
socials: [
{ icon: 'github', link: "https://github.com/alloy-rs/alloy" },
{ icon: 'telegram', link: "https://t.me/ethers_rs" },
],
topNav: [
{
text: 'Docs',
link: '/introduction/getting-started',
},
{
text: 'Examples',
link: 'https://github.com/alloy-rs/examples',
},
{
text: 'docs.rs',
link: 'https://docs.rs/alloy/latest/alloy/',
},
{
text: '2.0.5',
items: [
{
text: 'Changelog',
link: 'https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md',
},
{
text: 'Contributing',
link: 'https://github.com/alloy-rs/alloy/blob/main/CONTRIBUTING.md',
},
],
},
],
editLink: {
link: 'https://github.com/alloy-rs/docs/edit/main/vocs/docs/pages/:path',
text: 'Suggest changes on GitHub',
}
})
75 changes: 0 additions & 75 deletions vocs/vocs.config.tsx

This file was deleted.

Loading