import { defineConfig } from '@rspress/core';
import { withCallstackPreset } from '@callstack/rspress-preset';

export default withCallstackPreset(
  {
    context: __dirname,
    docs: {
      title: 'agent-device',
      description:
        'Agent-native CLI for AI mobile testing, React Native QA, Expo app verification, simulator and emulator automation, app observability, and replayable device workflows.',
      editUrl: 'https://github.com/callstack/agent-device/edit/main/website',
      rootUrl: 'https://oss.callstack.com/agent-device',
      rootDir: 'docs',
      icon: '/logo.svg',
      logoLight: '/logo-light.svg',
      logoDark: '/logo-dark.svg',
      ogImage: '/og-image.jpg',
      socials: {
        github: 'https://github.com/callstack/agent-device',
        discord: 'https://discord.gg/eYapw6F3',
      },
    },
    theme: {
      content: {
        outlineCTAHeadline: 'Curious about developing mobile apps with AI agents?',
        outlineCTADescription: 'We can help you take your agentic workflows to the next level and ship faster.',
        outlineCTAButtonText: "Book a call",
      },
    },
  },
  defineConfig({
    base: process.env.RSPRESS_BASE || '/agent-device',
  }),
);
