Skip to content

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.

ModelSource
sonnetpack: web-migration
Full Reference

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.

FactDetail
What it migratesDuda website ZIP export → Astro 5 static site
Target frameworkAstro 5 with Content Collections (glob loader)
Key toolsBeautifulSoup / Cheerio for parsing, Astro Image component, CSS Grid/Flexbox
Duda DOM rootbody.dmRoot > div.dmwr > div.dm_wrapper > div.dm-{pagename}
Section markerdiv[dm:templateid] — one per section, ordered by dm:templateorder
Column systemFoundation grid (small-12 medium-6) alongside dmRespCol classes
CDN to rewriteirp-cdn.multiscreensite.com/{siteId}/ — all assets must be downloaded
Mobile breakpointDuda uses a separate mobile.css at max-width: 800px — inspect both files
Not portableBlog posts (RSS), store products (CSV), forms (rebuild), JS runtime (discard)
I want to…File
Understand the ZIP export structure, file naming, and what to ignorereference/setup.md
Parse the Duda HTML DOM hierarchy and identify sections and widgetsreference/html-parsing.md
Extract colors, typography, and spacing tokens from Duda CSSreference/style-extraction.md
Pull text, images, buttons, and background images from widgetsreference/content-extraction.md
Map dmRespRow sections to Astro components — hero, cards, CTAreference/component-creation.md
Rewrite CDN URLs, optimize images with Astro Image, and handle fontsreference/image-migration.md
Extract navigation, set up Astro 5 Content Collections, or look up Astro 5 API changesreference/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.


┏━ 🔧 duda-to-astro-migration ━━━━━━━━━━━━━━━━━━━━┓ ┃ Migrating Duda export to Astro 5 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛