AI-generated HTML · Updated 2026-09-14 · Demox team

You have an AI-generated page. How do you publish it?

Direct answer: If an AI already wrote an HTML file, you do not need a Git repository to share it. Open www.demox.site, sign in, and upload the .html file. If the page needs local CSS, images, or fonts, put those files next to the HTML, use relative paths, zip the folder, and upload the ZIP with index.html at the root. CLI: demox deploy ./page.html or demox deploy ./folder. MCP agents can do the same after you install @demox-site/mcp-server. Absolute paths such as /Users/... will break in the browser.

How to do it

  1. Step 1. Save the AI output as a .html file, or as a folder with index.html.
  2. Step 2. Replace local disk paths with relative paths.
  3. Step 3. Upload the file or ZIP, or run demox deploy.
  4. Step 4. Check the live page in a private window.

FAQ

Why are styles missing?

The HTML still points at a local file. Keep assets in the same folder and use relative paths.

Can I keep the same URL after edits?

Yes. Redeploy to the same site ID.

AI 生成的网页怎么发布?

单个 HTML 直接上传。有 CSS 和图片就把它们和 HTML 放在一起,用相对路径打 ZIP。不需要先建 Git 仓库。

按这个顺序做

  1. 01 把 AI 产物存成 .html,或存成根目录含 index.html 的文件夹。
  2. 02 把本机磁盘路径改成相对路径。
  3. 03 上传文件或 ZIP,或执行 demox deploy。
  4. 04 用无痕窗口检查线上页面。

常见问题

为什么样式丢了?

HTML 还在指向本机文件。资源放在同一目录,使用相对路径。

改完还能用同一个地址吗?

可以。对同一个站点 ID 重新发布。

Related Demox pages

Upload and publish · Read the docs