Docs are hosted at: https://docs.geobase.app
- Discord: geobase.app/discord
- YouTube: @geobaseapp
- X: @geobaseapp
- Bluesky: @geobaseapp
- Install deps:
pnpm i - Start dev server:
pnpm dev(visit http://localhost:3000)
- Build:
pnpm build - Start:
pnpm start
- Node.js 18.18+ or 20+
- pnpm 8+
- Recommended: enable Corepack to manage pnpm versions
corepack enablepages/: MDX docs content (e.g.,pages/guides/...). Sidebar order and labels are controlled via_meta.jsfiles inside subfolders.components/: Reusable MDX/React components (e.g.,youtube-embed.tsx,geobase-logo.tsx).public/: Static assets served from the site root.theme.config.tsx: Site-wide configuration (title, logo, repo links, colors, footer, copy-code button).next.config.mjs: Nextra setup for the docs theme.
- Create a
.mdxfile underpages/.... - Update the nearest
pages/**/_meta.jsto include the new page in the sidebar. - Place images in
public/or alongside the MDX in animages/folder; reference relatively. - Prefer absolute internal links (e.g.,
/guides/...) for stable routing. - You can import and use components from
components/in MDX.
pnpm dev: Start Next.js in dev mode at http://localhost:3000pnpm build: Build the production bundlepnpm start: Start the production server
- Deployed on Vercel. Pushes to
maintrigger production deploys. Pull requests get preview URLs. - No environment variables are required for local dev or deploy.
- Issues and PRs are welcome in this repository.
- Suggested checklist for new/updated pages:
- Content compiles locally (
pnpm dev) with no console errors - Sidebar entry added/updated in the relevant
_meta.js - Internal links are absolute; images render correctly
- Reuse shared components from
components/where helpful
- Content compiles locally (
- Version mismatches: ensure Node and pnpm meet the prerequisites; consider
nvm useif you maintain an.nvmrc. - Stale build artifacts: delete
.next/and restart the dev server. - MDX import errors: check import paths and ensure components exist in
components/.