Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

docs: comment for ipc

Lin Onetwo2a7e1839daaa
diff --git a/client-app/src-tauri/src/commands/document.rs b/client-app/src-tauri/src/commands/document.rs
index 36f945ced0..79cc5f1746 100644
--- a/client-app/src-tauri/src/commands/document.rs
+++ b/client-app/src-tauri/src/commands/document.rs
@@ -5,6 +5,7 @@ use yrs::StateVector;
use crate::state::AppState;
#[tauri::command]
+/// get yDoc created by create_workspace, using same id
pub async fn get_doc<'s>(
state: tauri::State<'s, AppState>,
parameters: GetDocumentParameter,
diff --git a/client-app/src-tauri/src/commands/workspace.rs b/client-app/src-tauri/src/commands/workspace.rs
index fcc3972c22..9f745ab2cc 100644
--- a/client-app/src-tauri/src/commands/workspace.rs
+++ b/client-app/src-tauri/src/commands/workspace.rs
@@ -5,6 +5,7 @@ use lib0::any::Any;
use crate::state::AppState;
#[tauri::command]
+/// create yDoc for a workspace
pub async fn create_workspace<'s>(
state: tauri::State<'s, AppState>,
parameters: CreateWorkspace,