Skip to content

Commit

Permalink
docs: link PGlite product page to new PGlite website. (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
thruflo authored Aug 12, 2024
1 parent a5b74de commit a6b78f1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
--pglite-color: #F6F95C;
}

.vp-doc a.VPButton {
text-decoration: none;
}
.VPButton.pglite,
.VPButton.pglite:hover {
background-color: var(--pglite-color);
border-color: var(--pglite-color);
color: var(--vp-c-bg);
}

.img-row {
display: grid;
grid-template-columns: repeat(1, 1fr);
Expand Down
32 changes: 31 additions & 1 deletion docs/product/pglite.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,30 @@
outline: deep
---

<script setup>
import { VPButton } from 'vitepress/theme-without-fonts'
</script>

<img src="/img/icons/pglite.svg" class="product-icon" />

# PGlite

Embed a lightweight client Postgres with
real-time, reactive bindings.

<VPButton
href="https://pglite.dev"
target="_blank"
text="PGlite website ↗"
theme="pglite"
/>
&nbsp;
<VPButton href="https://github.com/electric-sql/pglite"
target="_blank"
text="GitHub repo ↗"
theme="alt"
/>

## Use cases

PGlite is a lightweight WASM Postgres build, packaged into a TypeScript library for the browser, Node.js, Bun and Deno.
Expand All @@ -35,4 +52,17 @@ Unlike previous "Postgres in the browser" projects, PGlite does not use a Linux

## How do I use it?

See the [electric-sql/pglite](https://github.com/electric-sql/pglite) repo for more details.
See the website and repo for more details:

<VPButton
href="https://pglite.dev"
target="_blank"
text="PGlite website ↗"
theme="pglite"
/>
&nbsp;
<VPButton href="https://github.com/electric-sql/pglite"
target="_blank"
text="GitHub repo ↗"
theme="alt"
/>

0 comments on commit a6b78f1

Please sign in to comment.