@braindb/astro
v0.1.1
Published
BrainDB Astro integration
Downloads
52
Maintainers
Readme
@braindb/astro
[!WARNING] You need to add
@braindb/coreas direct dependency due to vitejs/vite#14289
This is an Astro integration for BrainDB.
Usage
Installation
Install the integration automatically using the Astro CLI:
pnpm add @braindb/core
pnpm astro add @braindb/astronpm install @braindb/core
npx astro add @braindb/astroyarn add @braindb/core
yarn astro add @braindb/astroOr install it manually:
- Install the required dependencies
pnpm add @braindb/astro @braindb/corenpm install @braindb/astro @braindb/coreyarn add @braindb/astro @braindb/core- Add the integration to your astro config
+import brainDbAstro from "@braindb/astro";
export default defineConfig({
integrations: [
+ brainDbAstro(),
],
});if you need BrainDB instance
import { brainDbAstro, getBrainDb } from "@braindb/astro";
const bdb = getBrainDb();Wiki links
By default plugin adds @braindb/remark-wiki-link to support wiki links ([[]])
You can disable it, like this:
export default defineConfig({
integrations: [
+ brainDbAstro({ remarkWikiLink: false }),
],
});TODO
- [ ] add
@braindb/remark-dataviewwhen it will be stable
