# lzme-vzputh/lm-manufacturing-website architecture

> Architecture diagram of the GitHub repository lzme-vzputh/lm-manufacturing-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lzme-vzputh/lm-manufacturing-website
- Repository: https://github.com/lzme-vzputh/lm-manufacturing-website

## Overview

LM Manufacturing is a statically generated bilingual corporate website, not a dynamic application: visitors browse company information, products, news and careers in English or Khmer. The runtime workflow selects language-specific content, combines shared English-controlled fields with Khmer translations, and renders public pages. Editors change content through Pages CMS; commits to GitHub trigger Cloudflare Pages rebuilds. The graph includes documented capabilities and shared UI behavior; unsampled route and component internals are represented at their tree directories, so their individual call relationships are not asserted.

Main entry points: [`src/lib/content.ts`](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/lib/content.ts) (Bilingual content resolver), [`src/layouts`](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/layouts) (Page layouts), [`src/pages/index.astro`](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/pages/index.astro) (Home page), [`src/pages`](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages) (About, factory, contact)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content and language"]
  node_content_data["Page and collection content"]
  node_collection_content["Product, news, career entries"]
  node_content_schema["Content validation<br/>[content.config.ts]"]
  node_content_service["Bilingual content resolver<br/>[content.ts]"]
end

subgraph group_pages["Public pages"]
  node_home["Home page<br/>[index.astro]"]
  node_company_pages["About, factory, contact"]
  node_product_pages["Product listings and details"]
  node_news_pages["News listings and articles"]
  node_career_pages["Career listings and details"]
  node_khmer_pages["Khmer routes"]
  node_manage_guide["Public editing guide<br/>[manage.astro]"]
end

subgraph group_ui["Shared interface"]
  node_layouts["Page layouts"]
  node_components["Shared page components"]
  node_browser_scripts["Theme and interaction controls"]
end

subgraph group_publishing["Content publishing"]
  node_cms["Pages CMS"]
  node_github[("GitHub repository")]
  node_astro_site["Astro public site"]
  node_cloudflare["Cloudflare Pages"]
end

node_visitor(("Site visitor"))
node_editor(("Site editor"))

node_visitor -->|"browses pages"| node_astro_site
node_editor -->|"edits content"| node_cms
node_cms -->|"commits changes"| node_github
node_github -->|"triggers rebuild"| node_cloudflare
node_content_data -->|"provides page data"| node_content_service
node_collection_content -->|"validated as collections"| node_content_schema
node_content_service -->|"loads and merges entries"| node_collection_content
node_content_service -->|"selects language data"| node_content_data
node_home -.->|"uses content resolver"| node_content_service
node_company_pages -.->|"uses content resolver"| node_content_service
node_product_pages -.->|"uses content resolver"| node_content_service
node_news_pages -.->|"uses content resolver"| node_content_service
node_career_pages -.->|"uses content resolver"| node_content_service
node_khmer_pages -.->|"resolves Khmer content"| node_content_service
node_home -.->|"renders with"| node_layouts
node_company_pages -.->|"renders with"| node_layouts
node_product_pages -.->|"renders with"| node_layouts
node_news_pages -.->|"renders with"| node_layouts
node_career_pages -.->|"renders with"| node_layouts
node_layouts -.->|"uses shared components"| node_components
node_astro_site -->|"serves generated pages"| node_home
node_astro_site -->|"serves generated pages"| node_company_pages
node_astro_site -->|"serves generated pages"| node_product_pages
node_astro_site -->|"serves generated pages"| node_news_pages
node_astro_site -->|"serves generated pages"| node_career_pages
node_astro_site -->|"serves Khmer routes"| node_khmer_pages
node_astro_site -->|"serves guide"| node_manage_guide
node_astro_site -.->|"provides browser controls"| node_browser_scripts

click node_content_data "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/data"
click node_collection_content "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/content"
click node_content_schema "https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/content.config.ts"
click node_content_service "https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/lib/content.ts"
click node_home "https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/pages/index.astro"
click node_company_pages "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages"
click node_product_pages "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/products"
click node_news_pages "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/news"
click node_career_pages "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/careers"
click node_khmer_pages "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/kh"
click node_manage_guide "https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/pages/manage.astro"
click node_layouts "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/layouts"
click node_components "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/components"
click node_browser_scripts "https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/public/scripts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_content_data,node_collection_content,node_content_schema,node_content_service toneBlue
class node_home,node_company_pages,node_product_pages,node_news_pages,node_career_pages,node_khmer_pages,node_manage_guide toneAmber
class node_layouts,node_components,node_browser_scripts toneMint
class node_cms,node_github,node_astro_site,node_cloudflare toneRose
class node_visitor,node_editor toneIndigo
```

## Components

### Content and language

- [Page and collection content](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/data): `src/data`
- [Product, news, career entries](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/content): `src/content`
- [Content validation](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/content.config.ts): `src/content.config.ts`
- [Bilingual content resolver](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/lib/content.ts): `src/lib/content.ts`

### Public pages

- [Home page](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [About, factory, contact](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages): `src/pages`
- [Product listings and details](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/products): `src/pages/products`
- [News listings and articles](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/news): `src/pages/news`
- [Career listings and details](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/careers): `src/pages/careers`
- [Khmer routes](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/pages/kh): `src/pages/kh`
- [Public editing guide](https://github.com/lzme-vzputh/lm-manufacturing-website/blob/main/src/pages/manage.astro): `src/pages/manage.astro`

### Shared interface

- [Page layouts](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/layouts): `src/layouts`
- [Shared page components](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/src/components): `src/components`
- [Theme and interaction controls](https://github.com/lzme-vzputh/lm-manufacturing-website/tree/main/public/scripts): `public/scripts`

### Content publishing

- **Pages CMS**
- **GitHub repository**
- **Astro public site**
- **Cloudflare Pages**

### Other components

- **Site visitor**
- **Site editor**

## Connections

- Site visitor → Astro public site: browses pages (evidence: `README.md`)
- Site editor → Pages CMS: edits content (evidence: `README.md`)
- Pages CMS → GitHub repository: commits changes (evidence: `README.md`)
- GitHub repository → Cloudflare Pages: triggers rebuild (evidence: `README.md`)
- Page and collection content → Bilingual content resolver: provides page data (evidence: `src/lib/content.ts`)
- Product, news, career entries → Content validation: validated as collections (evidence: `src/content.config.ts`)
- Bilingual content resolver → Product, news, career entries: loads and merges entries (evidence: `src/lib/content.ts`)
- Bilingual content resolver → Page and collection content: selects language data (evidence: `src/lib/content.ts`)
- Home page → Bilingual content resolver: uses content resolver
- About, factory, contact → Bilingual content resolver: uses content resolver
- Product listings and details → Bilingual content resolver: uses content resolver
- News listings and articles → Bilingual content resolver: uses content resolver
- Career listings and details → Bilingual content resolver: uses content resolver
- Khmer routes → Bilingual content resolver: resolves Khmer content
- Home page → Page layouts: renders with
- About, factory, contact → Page layouts: renders with
- Product listings and details → Page layouts: renders with
- News listings and articles → Page layouts: renders with
- Career listings and details → Page layouts: renders with
- Page layouts → Shared page components: uses shared components
- Astro public site → Home page: serves generated pages (evidence: `README.md`)
- Astro public site → About, factory, contact: serves generated pages (evidence: `README.md`)
- Astro public site → Product listings and details: serves generated pages (evidence: `README.md`)
- Astro public site → News listings and articles: serves generated pages (evidence: `README.md`)
- Astro public site → Career listings and details: serves generated pages (evidence: `README.md`)
- Astro public site → Khmer routes: serves Khmer routes (evidence: `README.md`)
- Astro public site → Public editing guide: serves guide (evidence: `README.md`)
- Astro public site → Theme and interaction controls: provides browser controls
