duda-to-astro-migration
Use when migrating a Duda website export to Astro, parsing Duda HTML exports, mapping Duda dm-prefixed classes to Astro components, or extracting content from Duda platform exports. Also use when encountering Duda-specific class names like dmRespRow, dmNewParagraph, or dmButtonLink.
| Model | Source |
|---|---|
| sonnet | pack: web-migration |
Full Reference
Duda-to-Astro Migration
Section titled “Duda-to-Astro Migration”Migrate exported Duda websites to Astro 5 by parsing Duda’s dm-prefixed HTML structure, extracting content and styles, and rebuilding as Astro components with Content Collections. Duda exports are static HTML snapshots — NOT source code — so migration is content extraction, not code porting. Forms, dynamic pages, and Duda’s jQuery runtime are not portable and must be rebuilt from scratch.
Quick Reference
Section titled “Quick Reference”| Fact | Detail |
|---|---|
| What it migrates | Duda website ZIP export → Astro 5 static site |
| Target framework | Astro 5 with Content Collections (glob loader) |
| Key tools | BeautifulSoup / Cheerio for parsing, Astro Image component, CSS Grid/Flexbox |
| Duda DOM root | body.dmRoot > div.dmwr > div.dm_wrapper > div.dm-{pagename} |
| Section marker | div[dm:templateid] — one per section, ordered by dm:templateorder |
| Column system | Foundation grid (small-12 medium-6) alongside dmRespCol classes |
| CDN to rewrite | irp-cdn.multiscreensite.com/{siteId}/ — all assets must be downloaded |
| Mobile breakpoint | Duda uses a separate mobile.css at max-width: 800px — inspect both files |
| Not portable | Blog posts (RSS), store products (CSV), forms (rebuild), JS runtime (discard) |
Reference Index
Section titled “Reference Index”| I want to… | File |
|---|---|
| Understand the ZIP export structure, file naming, and what to ignore | reference/setup.md |
| Parse the Duda HTML DOM hierarchy and identify sections and widgets | reference/html-parsing.md |
| Extract colors, typography, and spacing tokens from Duda CSS | reference/style-extraction.md |
| Pull text, images, buttons, and background images from widgets | reference/content-extraction.md |
| Map dmRespRow sections to Astro components — hero, cards, CTA | reference/component-creation.md |
| Rewrite CDN URLs, optimize images with Astro Image, and handle fonts | reference/image-migration.md |
| Extract navigation, set up Astro 5 Content Collections, or look up Astro 5 API changes | reference/routing.md |
Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.
Announcement
Section titled “Announcement”┏━ 🔧 duda-to-astro-migration ━━━━━━━━━━━━━━━━━━━━┓ ┃ Migrating Duda export to Astro 5 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛