← Files AgentMarkupARCHIVED FILE

skills/agentmarkup/assets/templates/astro.config.agentmarkup.ts

1.5 KB · Oct 5, 2026 · 18:31 UTC

↓ Download file

import { defineConfig } from 'astro/config';
import { agentmarkup } from '@agentmarkup/astro';

export default defineConfig({
  integrations: [
    // Keep existing integrations here, then add agentmarkup once.
    agentmarkup({
      site: 'https://example.com',
      name: 'Example',
      description: 'Machine-readable metadata for this Astro site.',
      llmsTxt: {
        sections: [
          {
            title: 'Pages',
            entries: [
              {
                title: 'Home',
                url: '/',
                description: 'Homepage and primary site overview.',
              },
            ],
          },
        ],
      },
      // Enable when the built HTML is thin, noisy, or client-rendered. Optional when it is already substantial.
      markdownPages: {
        enabled: true,
      },
      // Enable Content-Signal only after the user chooses this policy.
      // contentSignalHeaders: {
      //   enabled: true,
      //   aiTrain: 'yes',
      //   search: 'yes',
      //   aiInput: 'yes',
      // },
      globalSchemas: [
        {
          preset: 'webSite',
          name: 'Example',
          url: 'https://example.com',
        },
      ],
      // Add crawler directives only after the user chooses allow/disallow policy.
      // aiCrawlers: {
      //   GPTBot: 'allow',
      //   ClaudeBot: 'allow',
      //   PerplexityBot: 'allow',
      //   'Google-Extended': 'allow',
      // },
      validation: {
        warnOnMissingSchema: true,
      },
    }),
  ],
});

SHA-256: a2df97d0a5b7529dc221ea032f4ca25bec98d1d036123daa6ac2939ce8624eca