diff --git a/site/.vitepress/config.mts b/site/.vitepress/config.mts index 7824a7c..8ca2d47 100644 --- a/site/.vitepress/config.mts +++ b/site/.vitepress/config.mts @@ -34,12 +34,24 @@ function head(): HeadConfig[] { const guides = { text: "Guides", - items: [], + collapsed: true, + items: [ + { text: "Binary Quantization", link: "/guides/binary-quant" }, + { text: "Scalar Quantization", link: "/guides/scalar-quant" }, + { + text: "Matryosha/Adaptive Length Embeddings", + link: "/guides/matryoshka", + }, + { text: "Semantic Search", link: "/guides/semantic-search" }, + { text: "Hybrid Search", link: "/guides/hybrid-search" }, + { text: "Classifiers", link: "/guides/classifiers" }, + { text: "Improving Performance", link: "/guides/improving-perf" }, + ], }; function nav(): DefaultTheme.NavItem[] { return [ - //guides, + guides, { text: "API Reference", link: "/api-reference" }, { text: "♥ Sponsor", link: "https://github.com/sponsors/asg017" }, { @@ -104,26 +116,22 @@ function sidebar(): DefaultTheme.SidebarItem[] { collapsed: false, items: [ { text: "Python", link: "/python" }, - { text: "JavaScript (Server-side)", link: "/js" }, - { text: "JavaScript+WASM (Browser)", link: "/wasm-browser" }, + { text: "JavaScript", link: "/js" }, { text: "Ruby", link: "/ruby" }, { text: "Rust", link: "/rust" }, { text: "Go", link: "/go" }, { text: "C/C++", link: "/c" }, + { text: "WebAssembly (Browser)", link: "/wasm" }, { text: "Datasette", link: "/datasette" }, { text: "sqlite-utils", link: "/sqlite-utils" }, { text: "Loadable Extension", link: "/loadable" }, ], }, - //guides, - { - text: "Comparisons with...", - link: "/compare", - }, + guides, { text: "Documentation", items: [ - { text: "Building from Source", link: "/building-source" }, + { text: "Compiling", link: "/compiling" }, { text: "API Reference", link: "/api-reference" }, ], }, @@ -134,6 +142,14 @@ function sidebar(): DefaultTheme.SidebarItem[] { text: "sqlite-ecosystem", link: "https://github.com/asg017/sqlite-ecosystem", }, + { + text: "sqlite-lembed", + link: "https://github.com/asg017/sqlite-lembed", + }, + { + text: "sqlite-rembed", + link: "https://github.com/asg017/sqlite-rembed", + }, ], }, ]; @@ -141,7 +157,7 @@ function sidebar(): DefaultTheme.SidebarItem[] { // https://vitepress.dev/reference/site-config export default defineConfig({ - title: PROJECT, + title: `${PROJECT}`, description, lastUpdated: true, head: head(), diff --git a/site/.vitepress/theme/Sponsors.vue b/site/.vitepress/theme/Sponsors.vue new file mode 100644 index 0000000..93eea86 --- /dev/null +++ b/site/.vitepress/theme/Sponsors.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/site/.vitepress/theme/index.ts b/site/.vitepress/theme/index.ts index 39d420d..54e08a8 100644 --- a/site/.vitepress/theme/index.ts +++ b/site/.vitepress/theme/index.ts @@ -3,6 +3,7 @@ import { h } from "vue"; import type { Theme } from "vitepress"; import DefaultTheme from "vitepress/theme"; import "./style.css"; +import Sponsors from "./Sponsors.vue"; export default { extends: DefaultTheme, @@ -13,6 +14,8 @@ export default { h("marquee", { class: "banner", scrollamount: "10" }, [ "🚧🚧🚧 sqlite-vec is still in beta, and this documentation is incomplete! Watch the repo for updates 🚧🚧🚧", ]), + "home-hero-image": () => h("div", {}, [""]), + "aside-ads-before": () => h(Sponsors), }); }, enhanceApp({ app, router, siteData }) { diff --git a/site/public/flyio.svg b/site/public/flyio.svg new file mode 100644 index 0000000..cc3ff6e --- /dev/null +++ b/site/public/flyio.svg @@ -0,0 +1,15 @@ + diff --git a/site/public/mozilla.svg b/site/public/mozilla.svg new file mode 100644 index 0000000..fff3920 --- /dev/null +++ b/site/public/mozilla.svg @@ -0,0 +1,24 @@ + + + + + + + + + diff --git a/site/public/sqlitecloud.svg b/site/public/sqlitecloud.svg new file mode 100644 index 0000000..2b835ef --- /dev/null +++ b/site/public/sqlitecloud.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/site/public/turso.svg b/site/public/turso.svg new file mode 100644 index 0000000..fc93433 --- /dev/null +++ b/site/public/turso.svg @@ -0,0 +1 @@ + \ No newline at end of file