# File Structure

## File Structure

Veltro separates route composition, content, configuration, and reusable UI. This is the Astro edition. The Tina and Sanity editions have the same layout, with the differences listed below.

<FileTree>

- veltro/
  - .cursor/
    - rules/
      - theme-architecture.mdc (AI: Cursor)
  - .github/
    - copilot-instructions.md (AI: GitHub Copilot)
  - .windsurf/
    - rules/
      - theme-architecture.md (AI: Windsurf)
  - AGENTS.md (AI: the main instructions)
  - CLAUDE.md (AI: Claude Code)
  - GEMINI.md (AI: Gemini CLI)
  - SKILLS.md (AI: step-by-step recipes)
  - CHANGELOG.md
  - README.md
  - astro.config.mjs
  - netlify.toml
  - package.json
  - package-lock.json
  - tsconfig.json
  - vercel.json
  - vercel.sh
  - wrangler.toml
  - ... (editor, formatter, and test settings)
  - public/
    - .htaccess
    - \_headers
    - company-desk.pdf
    - images/
    - videos/
  - scripts/
    - generate-favicons.mjs
    - generate-multilingual-content.mjs
    - remove-draft-from-sitemap.mjs
    - remove-multilingual.mjs
    - toml-watcher.mjs
  - src/
    - assets/
      - images/
    - config/
      - config.toml
      - fonts.json
      - language.json
      - menu.en.json
      - menu.fr.json
      - menu.ar.json
      - social.json
    - content/
      - about/
      - author/
      - awards/
      - blog/
        - english/
        - french/
        - arabic/
      - careers/
      - case-studies/
      - contact/
      - faq/
      - homepage/
      - industries/
      - pages/
      - portfolio/
      - pricing/
      - sections/
      - services/
      - team/
      - testimonial/
    - i18n/
      - en.json
      - fr.json
      - ar.json
    - layouts/
      - Base.astro
      - components/
        - cards/
        - global/
          - footer/
          - header/
        - sections/
        - seo/
        - utilities/
        - widgets/
      - helpers/
      - shortcodes/
    - lib/
      - integrations/
      - utils/
    - pages/
      - [...lang]/
      - [...path].md.ts
      - 404.astro
      - robots.txt.ts
    - plugins/
    - styles/
      - rtl.css
      - theme.css
      - ...
    - types/
    - content.config.ts
    - sections.schema.ts

</FileTree>

Every folder in `src/content/` has `english/`, `french/`, and `arabic/` inside it, as `blog/` shows. `src/pages/[...lang]/` also holds the `llms.txt.ts` and `llms-full.txt.ts` routes.

### The AI Files
| File                                 | Read by                                                  |
| ------------------------------------ | -------------------------------------------------------- |
| `AGENTS.md`                          | OpenAI Codex, and the tools below, for the main rules    |
| `SKILLS.md`                          | Any assistant: step-by-step recipes for common jobs      |
| `CLAUDE.md`                          | Claude Code, which imports `AGENTS.md`                   |
| `GEMINI.md`                          | Gemini CLI, which imports `AGENTS.md`                    |
| `.github/copilot-instructions.md`    | GitHub Copilot                                           |
| `.cursor/rules/theme-architecture.mdc` | Cursor                                                 |
| `.windsurf/rules/theme-architecture.md` | Windsurf                                              |

### What Differs By Edition
**Tina** adds:

- `tina/`: the editor's setup, its forms in `tina/generated/collections.json`, and `tina/tina-lock.json`
- `scripts/tina/` and `scripts/cms/`: the scripts behind `npm run dev`, `npm run build`, and the editor
- `src/layouts/components/tina/` and `src/lib/tina/`: the live preview
- `.env.example`, which lists every optional setting

Everything else is the same, except that some content files are `.mdx` where the Astro edition has `.md`: the privacy policy, the terms, and the `-index` of blog, services, portfolio, case studies, and industries.

**Sanity** adds:

- `sanity.config.ts`, `sanity.cli.ts`, and `sanity/`: your Studio, and `sanity/seed/demo-content.json`, the bundled demo content
- `scripts/sanity/`: setup, import, and preview scripts
- `src/lib/sanity/`, `src/sanity-routes/`, and `src/middleware.ts`: how the site reads your project, and draft preview
- `.env.example`, which explains every variable

The Sanity edition doesn't have `src/content/`, `src/config/menu.<lang>.json`, or `src/i18n/`. That content is in your Sanity project. `src/config/config.toml` holds the defaults for **Site settings**, and the few settings that stay in code.

### Files You Will Edit Most Often
- `src/config/config.toml`: site identity, SEO, AI files, content folder names, forms, languages, smooth scrolling, cursor, header action, contact details, and footer settings
- `src/config/menu.<lang>.json`: header, mega menu, footer columns, and legal links
- `src/config/fonts.json`: font families and variants
- `src/styles/theme.css`: Tailwind CSS 4 design tokens, breakpoints, type scale, radii, and colors
- `src/i18n/<lang>.json`: shared interface text
- `src/content/sections/<language>/`: reusable section content
- `src/pages/[...lang]/`: routes and section order

### Organization Rule
- `src/pages/...` decides **which sections render and in what order**
- `src/content/...` provides **editable content and frontmatter**
- `src/layouts/components/...` controls **markup, styling, and interaction hooks**

Static files placed in `public/` keep their direct URL. Images imported from `src/assets/images/` are processed by Astro's image pipeline.