1. Support for assigning the URL of an old project to a new project during redeployment#
According to the documentation, set the update_subdomain field in the parameters to the web project ID or the full web link of the old project. e.g.: https://xxxxxxxxx.302ai.app or xxxxxxxxxxxNote: 1. The old web project will be directly overwritten and cannot be rolled back. 2. The API key used to create the old web project must be consistent with the current request. 3. If the domain of the old web project does not exist, an error will be reported directly. 4. If an error occurs during the deployment of the new web project, the web page will not be accessible, and it needs to be redeployed. It cannot be rolled back.
2. Support for setting a delayed deletion time for web projects#
According to the documentation, set the validity period of the web project in days in the auto_deleted_days parameter field.
1. Support for markdown meta metadata recognition, meta metadata will not be saved to the final deployed html file#
Supported meta formats and syntax
Format Type
Prefix/Suffix
Parsing Method
Recommended Support
YAML
--- ... ---
yaml.safe_load
Recommended
JSON
;;; ... ;;; or --- {...} ---
json.loads
Suggested
TOML
+++ ... +++
toml.loads
Suggested
INI
;;; ... ;;;
configparser
Optional
Supported meta metadata fields
Field Name
Explanation
title
Title
css
Custom CSS style links. If not provided, a default CSS style will be used. Supports relative path syntax (relative paths require a zip format data request and the corresponding file must exist at the relative path).
js
Custom external JS links. Supports relative path syntax (relative paths require a zip format data request and the corresponding file must exist at the relative path).
description
Description
favicon
Favicon
theme
Theme color
image
opengraph image
Example of a markdown file with meta information in yaml format
title: Test Document
author: Zhang San
date: 2025-05-15
css:
- https://cdn.jsdelivr.net/npm/github-markdown-css/github-markdown.min.css
- /static/custom.css
js:
- https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js
- /static/my-script.js
description: This is a test YAML metadata header example for Markdown files.
---
# Hello, World!
This is the main content used to test your metadata parsing code.
- This is a list item
- This is another list item