Loading...
Loading...
Use this when generating HTML for Adobe Document Authoring (DA, da.live) upload, uploading media binaries to DA, publishing to aem.live, or driving the DA admin API (auth, source PUT, preview/publish). Covers block HTML format (canonical div-class form and accepted table alternate), section structure, page and section metadata, icons, links, images, default content, document skeleton constraints, block cell content normalization, the DA Source API contract, IMS auth, media storage, supported formats, Media Bus vs Content Bus delivery, and silent-failure rules that corrupt content.
npx skill4agent add adobe/skills da-content| Doing | Read |
|---|---|
| Generating HTML for DA upload | references/html-content.md |
| Uploading images, video, PDFs, fonts | references/media.md |
| Hitting the DA admin API, auth, preview/publish | references/platform.md |
| Re-verifying asset boundary behavior empirically | references/fixtures/README.md |
[verified][assumed]admin.da.live/source/...admin.da.liveadmin.hlx.pageaem.pageaem.liveabout:erroradmin.da.liveadmin.hlx.pageDA_TOKENdatatext/htmlaem.page# Use $DA_TOKEN from the da-auth skill, or read a cached token file directly.
# See platform.md §3 for the cache locations the various Adobe DA tools use.
TOKEN="${DA_TOKEN:?invoke the da-auth skill to obtain a DA admin token}"
# 1. Upload HTML — note multipart with field name "data" (other names silently fail)
curl -X PUT \
-H "Authorization: Bearer $TOKEN" \
-F "data=@./page.html;type=text/html" \
"https://admin.da.live/source/{org}/{repo}/path/to/page.html"
# 2. Trigger preview — required separate step, path WITHOUT .html extension
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
"https://admin.hlx.page/preview/{org}/{repo}/main/path/to/page"
# 3. Optional: publish to aem.live
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
"https://admin.hlx.page/live/{org}/{repo}/main/path/to/page"admin.da.live/source/...content.da.live<!DOCTYPE><html><head><script><style>style=<div>class="<block-name> [<variant>…]"/blocks/<name>/<name>.{js,css}<tr><td colspan="N">Name</td></tr>Ncolspancolspanclass="hero cta center"Hero (cta, center)toBlockCSSClassNamesmetadataclass="metadata"Metadata<meta><img src><img src><source srcset><picture><img src="about:error">/path/foo.png./foo.png/media/<scope>/<file>content.da.livemultipart/form-datadatafileimage409 AEM_BACKEND_FETCH_FAILEDaem.pageaem.liveadmin.hlx.page/preview/.../live/...expires_at~/.aem/da-token.json.hlx/.da-token.json@adobe/aem-cli<b><i><s><mark><kbd><strong><em><del><em><code><span><ins><br>https://admin.hlx.page/<action>/.../fonts//icons//blocks//scripts//styles//head.htmlhttps://da.live/edit#/...https://admin.da.live/source/.../<parent>/.<docname>/aem.pageaem.live~/.aem/da-token.json.hlx/.da-token.json@adobe/aem-cli/mediaaem.pageaem.live<div><main><div class="section">Style<head><meta>