From ff92b100558930ecdfb3f698abdcb12199ac5f90 Mon Sep 17 00:00:00 2001
From: YuKun Liu <41265098+mrxiaozhuox@users.noreply.github.com>
Date: Mon, 21 Feb 2022 20:37:46 +0800
Subject: [PATCH] docs: commit docs
---
docs/cli/src/configure.md | 68 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 67 insertions(+), 1 deletion(-)
diff --git a/docs/cli/src/configure.md b/docs/cli/src/configure.md
index 11ccd6a16..bc2edfcc0 100644
--- a/docs/cli/src/configure.md
+++ b/docs/cli/src/configure.md
@@ -27,4 +27,70 @@ We use `toml` to define some info for `dioxus` project.
### Web.App
-1. ***title*** - this value will display on the web page title. like `
` tag.
\ No newline at end of file
+Web platform application config:
+
+1. ***title*** - this value will display on the web page title. like `` tag.
+ ```
+ # HTML title tag content
+ title = "dioxus app | ⛺"
+ ```
+
+### Web.Watcher
+
+Web platform `dev-server` watcher config:
+
+1. ***reload_html*** - a boolean value; when watcher trigger, regenerate `index.html` file.
+ ```
+ # when watcher trigger, regenerate the `index.html`
+ reload_html = true
+ ```
+2. ***watch_path*** - which files & directories will be watcher monitoring.
+ ```
+ watch_path = ["src", "public"]
+ ```
+
+### Web.Resource
+
+Include some `CSS Javascript` resources into html file.
+
+1. ***style*** - include some style(CSS) file into html.
+ ```
+ style = [
+ # include from public_dir.
+ "./assets/style.css",
+ # or some asset from online cdn.
+ "https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.css"
+ ]
+ ```
+2. ***script*** - include soe script(JS) file into html.
+ ```
+ style = [
+ # include from public_dir.
+ "./assets/index.js",
+ # or some asset from online cdn.
+ "https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.js"
+ ]
+ ```
+
+### Web.Resource.Dev
+
+Only include resources at `Dev` mode.
+
+1. ***style*** - include some style(CSS) file into html.
+ ```
+ style = [
+ # include from public_dir.
+ "./assets/style.css",
+ # or some asset from online cdn.
+ "https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.css"
+ ]
+ ```
+2. ***script*** - include soe script(JS) file into html.
+ ```
+ style = [
+ # include from public_dir.
+ "./assets/index.js",
+ # or some asset from online cdn.
+ "https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.js"
+ ]
+ ```