Skip to content
Closed
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 type { SidebarItem } from "./types";
import { SidebarItem } from "vocs";

export const exampleItems: SidebarItem[] = [
EOF
Expand Down
Binary file modified vocs/bun.lockb
Binary file not shown.
27 changes: 2 additions & 25 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 } from "vocs";
import { HomePage, Sponsors } from "vocs/components";

<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,29 +380,6 @@ Join the Community

# Supporters

<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>
<Sponsors />

</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 type { SidebarItem } from "./types";
import { SidebarItem } from "vocs";

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

export const sidebar: Sidebar = [
Expand Down
16 changes: 0 additions & 16 deletions vocs/types.ts

This file was deleted.

45 changes: 0 additions & 45 deletions vocs/vocs.config.ts

This file was deleted.

75 changes: 75 additions & 0 deletions vocs/vocs.config.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { defineConfig } from 'vocs'
import { sidebar } from './sidebar'
export default defineConfig({
title: 'alloy',
logoUrl: '/alloy-logo.png',
sidebar,
sponsors: [
{
name: 'Collaborator',
height: 120,
items: [
[
{
name: 'Paradigm',
link: 'https://paradigm.xyz',
image:
'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg',
},
{
name: 'Ithaca',
link: 'https://ithaca.xyz',
image:
'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-light.svg',
},
],
],
}
],
iconUrl: { light: '/favicon.png', dark: '/favicon.png' },
head() {
return (
<>
<meta name="twitter:card" content="summary"/>
<meta property="og:title" content="Alloy Docs" />
<meta property="og:description" content="Connect Applications to Blockchains" />
<meta property="og:image" content="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: {
pattern: 'https://github.com/alloy-rs/docs/edit/main/vocs/docs/pages/:path',
text: 'Suggest changes on GitHub',
}
})
Loading