瀏覽代碼

chore(config) Fix config links (#4153)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Lorenzo Lewis 3 年之前
父節點
當前提交
62cb5b4d5c
共有 4 個文件被更改,包括 451 次插入391 次删除
  1. 5 7
      core/tauri-utils/src/config.rs
  2. 2 0
      tooling/cli/Cargo.lock
  3. 1 1
      tooling/cli/Cargo.toml
  4. 443 383
      tooling/cli/schema.json

+ 5 - 7
core/tauri-utils/src/config.rs

@@ -1378,7 +1378,7 @@ impl Allowlist for DialogAllowlistConfig {
 /// It is a list of URLs that can be accessed by the webview when using the HTTP APIs.
 /// The scoped URL is matched against the request URL using a glob pattern.
 ///
-/// # Examples
+/// Examples:
 /// - "https://**": allows all HTTPS urls
 /// - "https://*.github.com/tauri-apps/tauri": allows any subdomain of "github.com" with the "tauri-apps/api" path
 /// - "https://myapi.service.com/users/*": allows access to any URLs that begins with "https://myapi.service.com/users/"
@@ -2248,10 +2248,10 @@ impl PackageConfig {
 ///
 /// `tauri.conf.json` is composed of the following objects:
 ///
-/// - [`build`](BuildConfig): The build configuration
-/// - [`package`](PackageConfig): Package settings
-/// - [`plugins`](PluginConfig): The plugins config
-/// - [`tauri`](TauriConfig): The Tauri config
+/// - [`package`](#packageconfig): Package settings
+/// - [`tauri`](#tauriconfig): The Tauri config
+/// - [`build`](#buildconfig): The build configuration
+/// - [`plugins`](#pluginconfig): The plugins config
 ///
 /// ```json title="Example tauri.config.json file"
 /// {
@@ -2269,8 +2269,6 @@ impl PackageConfig {
 ///     "allowlist": {
 ///       "all": true
 ///     },
-///     // The below `bundle` object has been edited for brevity
-///
 ///     "bundle": {},
 ///     "security": {
 ///       "csp": null

+ 2 - 0
tooling/cli/Cargo.lock

@@ -1103,6 +1103,7 @@ checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee"
 dependencies = [
  "autocfg",
  "hashbrown",
+ "serde",
 ]
 
 [[package]]
@@ -2336,6 +2337,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "c6b5a3c80cea1ab61f4260238409510e814e38b4b563c06044edf91e7dc070e3"
 dependencies = [
  "dyn-clone",
+ "indexmap",
  "schemars_derive",
  "serde",
  "serde_json",

+ 1 - 1
tooling/cli/Cargo.toml

@@ -78,7 +78,7 @@ libc = "0.2"
 
 [build-dependencies]
 tauri-utils = { version = "1.0.0-rc.5", features = [ "schema", "isolation" ], path = "../../core/tauri-utils" }
-schemars = { version = "0.8", features = [ "url" ] }
+schemars = { version = "0.8", features = [ "url", "preserve_order" ] }
 serde = { version = "1.0", features = [ "derive" ] }
 serde_json = "1.0"
 serde_with = "1.13"

文件差異過大導致無法顯示
+ 443 - 383
tooling/cli/schema.json


部分文件因文件數量過多而無法顯示