# File Structure

## File Structure

After unzipping the package, the important theme folder is:

<FileTree>

- themes/
  - taxo/ (Main theme folder)
- changelog.html
- documentation.html

</FileTree>

In the Tina edition, the main theme folder is `taxo-tina`. In the Sanity edition, it is `taxo-sanity`.

### Main Theme Directory Structure
This is the Astro edition. The Tina and Sanity editions have the same layout, with the differences listed below.

<FileTree>

- taxo/
  - .cursor/
    - rules/
      - theme-architecture.mdc (AI: Cursor)
  - .github/
    - copilot-instructions.md (AI: GitHub Copilot)
  - .vscode/
  - .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
  - jest.config.ts
  - netlify.toml
  - package.json
  - package-lock.json
  - tsconfig.json
  - tsconfig.jest.json
  - vercel.json
  - vercel.sh
  - wrangler.toml
  - public/
    - .htaccess
    - _headers
    - images/
    - plyr/
    - videos/
  - scripts/
    - generate-favicons.mjs
    - generate-multilingual-content.mjs
    - remove-draft-from-sitemap.mjs
    - remove-multilingual.mjs
    - toml-watcher.mjs
  - src/
    - \_\_tests\_\_/
    - assets/
      - images/
    - config/
      - config.toml
      - fonts.json
      - language.json
      - menu.ar.json
      - menu.en.json
      - menu.fr.json
      - social.json
    - content/ (a folder per language in each: arabic/, english/, french/)
      - about-us/
      - author/
      - blog/
      - case-studies/
      - contact/
      - faq/
      - homepage/
      - pages/
      - pricing/
      - sections/
      - services/
      - team/
      - testimonial/
    - i18n/
      - ar.json
      - en.json
      - fr.json
    - layouts/
      - components/
        - cards/
        - global/
          - footer/
          - header/
          - Footer.astro
          - FooterTwo.astro
          - Logo.astro
        - sections/
        - seo/
        - utilities/
        - widgets/
      - helpers/
      - shortcodes/
      - Base.astro
    - lib/
      - integrations/
      - utils/
      - shortcodes.ts
    - pages/
      - [...lang]/
        - index.astro
        - home-two.astro
        - about.astro
        - contact.astro
        - faq.astro
        - pricing.astro
        - 404.astro
        - llms.txt.ts
        - llms-full.txt.ts
        - team/
        - blog/
        - case-studies/
        - services/
        - [page].astro
      - [...path].md.ts
      - 404.astro
      - robots.txt.ts
    - plugins/
    - styles/
    - types/
    - content.config.ts
    - sections.schema.ts

</FileTree>

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

- `.env.example`
- `tina/`: the editor's setup and forms. `tina/generated/collections.json` is rebuilt by `npm run tina:generate`
- `scripts/tina/` and `scripts/cms/`: the scripts behind `npm run dev`, `npm run build`, `npm run tina:generate`, `npm run tina:audit`, and `npm run setup:tina`
- `src/lib/tina/` and `src/layouts/components/tina/`
- `public/admin/`

In Tina, the listing pages of the blog, services, and case studies, and the privacy policy and terms pages, are `.mdx` files, not `.md`.

**Sanity adds:**

- `.env.example`, `sanity.cli.ts`, and `sanity.config.ts`
- `sanity/`: the Studio's schema. `sanity/seed/demo-content.json` holds the sample content
- `scripts/sanity/`: the scripts behind `npm run setup`, `npm run dev:all`, `npm run import-seed`, and the preview server
- `src/lib/sanity/`, `src/middleware.ts`, and `src/sanity-routes/`

**Sanity leaves out** the folders `src/content/` and `src/i18n/`, and `menu.ar.json`, `menu.en.json`, and `menu.fr.json` in `src/config/`. That content is in the Studio, and in the seed file until you connect a project.

### Files You Will Edit Most Often
In the Astro and Tina editions:

- `src/config/config.toml`: logo, title, contact info, multilingual, forms,
  header button, announcement bar, subscription
- `src/config/menu.<lang>.json`: main menu, mega menu, footer menus
- `src/i18n/<lang>.json`: shared labels for header, footer, buttons, and common text
- `src/content/sections/<language>/`: reusable landing-page sections
- `src/content/homepage/<language>/`: homepage-level metadata
- `src/pages/[...lang]/*.astro`: page structure, layout selection, and which
  sections appear on each route

### How Taxo Is Organized
Use this rule when customizing the theme:

- `src/pages/...` decides **which sections render**
- `src/content/...` provides **editable content data**
- `src/layouts/components/...` controls **HTML structure and styling**

This structure helps you decide whether you should edit a page file, a content
file, or a component.