diff --git a/src/content/docs/features/clipboard.mdx b/src/content/docs/features/clipboard.mdx index 7d568a0c79..3ddcdd0199 100644 --- a/src/content/docs/features/clipboard.mdx +++ b/src/content/docs/features/clipboard.mdx @@ -19,30 +19,13 @@ Install the clipboard plugin to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_clipboard_manager::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - - - diff --git a/src/content/docs/features/dialog.mdx b/src/content/docs/features/dialog.mdx index 64780f001f..6277d92204 100644 --- a/src/content/docs/features/dialog.mdx +++ b/src/content/docs/features/dialog.mdx @@ -21,25 +21,13 @@ Install the dialog plugin to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_dialog::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` diff --git a/src/content/docs/features/http-client.mdx b/src/content/docs/features/http-client.mdx index c803cc2b30..c9a7fb2d54 100644 --- a/src/content/docs/features/http-client.mdx +++ b/src/content/docs/features/http-client.mdx @@ -18,29 +18,13 @@ Install the http plugin to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust ins={6} - // lib.rs - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_http::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - diff --git a/src/content/docs/features/notification.mdx b/src/content/docs/features/notification.mdx index 91aa436a9f..976e8b9606 100644 --- a/src/content/docs/features/notification.mdx +++ b/src/content/docs/features/notification.mdx @@ -20,28 +20,13 @@ Install the notifications plugin to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_notification::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - diff --git a/src/content/docs/features/os-info.mdx b/src/content/docs/features/os-info.mdx index 1679abf30c..12826b5e5d 100644 --- a/src/content/docs/features/os-info.mdx +++ b/src/content/docs/features/os-info.mdx @@ -18,28 +18,13 @@ Install the OS Information plugin to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_os::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - diff --git a/src/content/docs/features/process.mdx b/src/content/docs/features/process.mdx index 14f19f6a45..4701ed8aca 100644 --- a/src/content/docs/features/process.mdx +++ b/src/content/docs/features/process.mdx @@ -18,29 +18,13 @@ Install the plugin-process to get started. - 1. Use your project's package manager to add the dependency: + Use your project's package manager to add the dependency: - 2. Modify `lib.rs` to initialize the plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust ins={6} - // lib.rs - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialize the plugin - .plugin(tauri_plugin_process::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - diff --git a/src/content/docs/fr/features/notification.mdx b/src/content/docs/fr/features/notification.mdx index fda070232e..233d62424a 100644 --- a/src/content/docs/fr/features/notification.mdx +++ b/src/content/docs/fr/features/notification.mdx @@ -20,28 +20,13 @@ Pour commencer, installez le plugin de notifications. - 1. Utilisez le gestionnaire de package (package manager) de votre projet pour ajouter la dépendance: + Utilisez le gestionnaire de package (package manager) de votre projet pour ajouter la dépendance: - 2. Modifiez `lib.rs` pour initialiser le plugin: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // Initialisation du plugin - .plugin(tauri_plugin_notification::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` - diff --git a/src/content/docs/zh-cn/features/notification.mdx b/src/content/docs/zh-cn/features/notification.mdx index fc9caecb7b..b56143d31e 100644 --- a/src/content/docs/zh-cn/features/notification.mdx +++ b/src/content/docs/zh-cn/features/notification.mdx @@ -20,28 +20,13 @@ import Stub from '@components/Stub.astro'; - 1. 使用你的项目的包管理器以添加依赖: + 使用你的项目的包管理器以添加依赖: - 2. 修改 `lib.rs` 以初始化插件: - - {/* TODO: Revise once https://github.com/tauri-apps/tauri/issues/7696 is in */} - - ```rust - #[cfg_attr(mobile, tauri::mobile_entry_point)] - pub fn run() { - tauri::Builder::default() - // 初始化插件 - .plugin(tauri_plugin_notification::init()) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); - } - ``` -