mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-01-19 08:13:58 +00:00
docs: commit docs
This commit is contained in:
parent
ac808d31ad
commit
ff92b10055
1 changed files with 67 additions and 1 deletions
|
@ -27,4 +27,70 @@ We use `toml` to define some info for `dioxus` project.
|
||||||
|
|
||||||
### Web.App
|
### Web.App
|
||||||
|
|
||||||
|
Web platform application config:
|
||||||
|
|
||||||
1. ***title*** - this value will display on the web page title. like `<title></title>` tag.
|
1. ***title*** - this value will display on the web page title. like `<title></title>` 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"
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue