Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

745 B
Raw Blame
import { resolve } from "path"
import { E2E_ROOT } from "../src/stack/paths"

// apps/docs is a sibling of e2e-tests at the repo root.
export const REPO_ROOT = resolve(E2E_ROOT, "..")
export const DOCS_ROOT = resolve(REPO_ROOT, "apps", "docs")

// Generated MDX lands in the User Guide tab; screenshots under the docs image
// root so Mintlify serves them at /images/user-guide/<panel>/<slug>/step-N.png.
export const GUIDE_MDX_ROOT = resolve(DOCS_ROOT, "user-guide")
export const GUIDE_IMAGE_ROOT = resolve(DOCS_ROOT, "images", "user-guide")

// Public URL (as referenced from an MDX <img src>) for a guide's image folder.
export function guideImageUrlDir(panel: string, slug: string): string {
  return `/images/user-guide/${panel}/${slug}`
}