One Data Pipeline, 900 Pages: How We Built a Dealer Website from Source Data
Most dealer websites are typed in. Someone copies model text from the manufacturer's site, uploads images one by one and pastes a spec table, and it's out of date within months. For Mahindra Rivonia we did the opposite. We gathered every source the site depends on and wrote one script that turns them into structured data. Astro builds about 915 pages from it. Re-run the script and the whole site refreshes.
The idea: the site is a view of the data
A dealer website is mostly not written by the dealer. The models, trims, prices, specifications, imagery, brochures, offers and news all come from the manufacturer. The stock comes from the DMS. The dealer adds local details, people and events.
If that’s true, the right architecture isn’t a CMS full of hand-made pages. It’s a pipeline that collects the sources, normalises them into clean data, and a set of templates that render the data. The pages become a view of the data. Fix the data once and every page that uses it is fixed.
The sources
| Source | What it provides | How it’s collected |
|---|---|---|
| Manufacturer’s public site | Model copy, structure, offers, accessories, news | An offline mirror crawled politely, respecting robots rules |
| Manufacturer asset library | 602 original images, brochures and videos | Collected from pages, embedded data and script bundles; de-duplicated |
| Press-release archive | Launch copy, events, high-resolution media | Exported with the client’s own press-portal login |
| AutoSpec | Prices and up to 148 specification fields per derivative | Structured data export |
| DMS stock field set | The shape of every stock unit | Taken from the group’s existing vehicle pages and feed |
How we collect OEM content covers the collection tools in detail. This article is about what happens next.
The script
One Python script reads all of that and writes the site’s data. It’s deliberately boring:
- It’s re-runnable. It rebuilds its output folders from scratch every time, so there’s never a half-updated state.
- It’s declarative where it matters. The model catalogue (slug, display name, category and which logo applies) is a short, readable list that mirrors the manufacturer’s own menu. Grouping models into SUVs, bakkies and commercial is one line per model.
- It normalises. Prices, specification names, image names and article dates come out in one consistent format, whatever the source looked like.
- It’s honest about mock data. Before launch, stock and reviews are generated in exactly the shape of the real feeds, from a fixed random seed, so they’re stable between runs and clearly flagged as mock in the data.
Its outputs are plain files: JSON for models, derivatives, stock, promotions, accessories, videos, reviews and the dealership’s details; Markdown for the news articles; images in organised folders for Astro to optimise; and the brochure PDFs.
The templates
Astro reads those files at build time. The site has 25 page templates, and they produce about 915 pages:
- 15 model pages across SUVs, bakkies and commercial vehicles, each with variants, prices, features, specifications and a brochure where one exists.
- Stock pages for every unit, plus listing pages per condition (new, demo, used and other brands) as real URLs.
- 98 articles across five news categories at launch, with manufacturer news carrying a canonical link to the original.
- Pricing, compare, needs analysis and finance pages that all read the same trim and price data.
- Seven promotions, aftersales pages with five accessory catalogues, legal pages and one thank-you page per form type.
- Feeds:
llms.txt, a fullllms-full.txt, and JSON feeds of models, trims and stock.
Because every template reads the same data, the facts agree everywhere. The price on the model page is the price on the pricing page, in the comparer, in the finance calculator and in the structured data.
Why not a CMS?
We’ll be straight about the trade-off. A pipeline site doesn’t have an admin screen. For content that comes from the manufacturer and the DMS, that’s an advantage: nobody should be retyping it. For content the dealership writes (a new event or a staff change), someone has to edit a file or ask us.
That’s fine for one dealership. For a group of sites it isn’t, which is why the Digicars estate’s move to Astro depends on a page-building system that sits on top of a pipeline like this one. WordPress can do that job as a headless editor. A purpose-built dealership page builder can do it better. The Digicars platform case study has the plan.
Where AI fits
We built the pipeline and the site with AI doing much of the production work, as we did on Nero Studio. The pipeline is exactly the kind of code AI writes well: lots of careful, repetitive parsing and normalising, with clear inputs and outputs that are easy to test. Our job was to decide the structure, check the output against the sources and refuse anything we couldn’t explain.
The structure also makes the site easy for AI to work on later. Adding a model is a line in a list and a re-run. Adding a specification to every comparison is one change to one template.
What we’d tell anyone building something similar
- Find the real sources first. Every hour spent finding the structured source (AutoSpec instead of scraped spec tables, original images instead of thumbnails) saves ten later.
- Make the pipeline idempotent. Same inputs, same outputs, every time. Rebuild from scratch rather than patching.
- Keep mock data in the real shape. When the live feed arrives, only the data should change, not the templates.
- Generate the machine-readable views too. If the data is clean enough to render pages, it’s clean enough to publish as JSON for search engines and AI assistants.
- Measure every template. A data-driven site multiplies mistakes as efficiently as it multiplies pages. Lighthouse 100 on every template is how we catch them.
Questions about data-driven dealer websites
A few useful answers before you decide.
How long does a full rebuild take?
What happens when the manufacturer redesigns its site?
Can the same pipeline feed several dealer sites?
Build from the data
Read the Mahindra Rivonia case study, see Astro dealer websites or talk to us about a data-heavy site of your own.
Keep the right things connected.

Mahindra Rivonia — The first Astro dealer website
The first Digicars dealer website built on Astro: every model, trim and stock unit pre-rendered to static HTML on Cloudflare, with finance on every price and nothing running on a server.

Scraping OEM Sites to Keep Dealer Websites Updated in Real Time
Manufacturers change prices, derivatives and offers constantly; dealer sites rarely keep up. This is how we collect OEM content, watch for changes and push approved updates to dealer …

ChatGPT as Creative Director, Claude as Build Team: A Website in Hours
How we took an automotive accessories brand from a catalogue PDF to a tested, animated Astro website in a few hours, and why we still understand every line of the code.

Static Astro dealer websites
Dealer websites pre-rendered to static HTML on a global edge network: no server to slow down or hack, Lighthouse 100 on mobile, finance on every price and stock straight from the DMS.
Start a conversation
Tell us what you are working towards. We’ll help you find a practical next step.

