You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/website/app/(docs)/docs/obsidian/pages/sync-and-import.md
+28-14Lines changed: 28 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ The Sync and Import feature allows you to synchronize your discourse nodes with
10
10
> **Note:** This feature is currently in **beta**. The sync functionality requires an active connection to the Discourse Graph database.
11
11
12
12
> **Warning:** When using sync and import:
13
+
>
13
14
> - Don't edit the things you imported
14
15
> - Don't click to create new files (from imported nodes)
15
16
> - Don't delete imported node types
@@ -65,18 +66,22 @@ Before publishing, make sure:
65
66
2.**Open the command palette** by pressing `Cmd/Ctrl + P`
66
67
67
68
3.**Search for the publish command** by typing "Publish" and select **"Discourse Graph: Publish current node to lab space"**
68
-

69
+

69
70
70
71
4. The plugin will:
71
72
- Publish the node to your group
73
+
-**Automatically publish any relations** connected to this node where the other endpoint has already been published to the same group
72
74
- Sync any embedded assets (images, attachments) to the shared storage
73
75
- Update the node's frontmatter with a `publishedToGroups` field
74
76
75
77
5. A confirmation notice will appear: **"Published"**
76
-

78
+

79
+
80
+
**Note on publishing relations:** Relations between nodes are published **automatically** — you do not need to publish them separately. When you publish a node, the plugin checks all its relations and publishes any where:
81
+
82
+
- Both the source and destination nodes are published to the same group, **and**
83
+
- The relation type is defined in your discourse relation settings
77
84
78
-
> **Tip:** If you see the message "Please sync the node first", wait a moment for the automatic sync to complete, or manually trigger a sync via the command palette using **"Discourse Graph: Sync discourse nodes to Supabase"**.
79
-

80
85
---
81
86
82
87
## Importing discourse nodes from another space
@@ -95,12 +100,20 @@ Importing allows you to bring published discourse nodes from other group members
95
100
96
101

97
102
98
-
4. The plugin will import each selected node and display a progress bar. Once complete, a confirmation notice will appear showing how many nodes were imported successfully.
103
+
4. Before importing, the modal shows an **import preview** summarizing everything that will be created:
104
+
- Number of nodes and relations to be imported
105
+
- Any new node types that will be added to your vault
106
+
- Any new relation types that will be added
107
+
- Any new discourse relation triplets (source → relation → destination) that will be established
108
+
109
+
5. The plugin will import each selected node **and their associated relations**, then display a progress bar. Once complete, you will see a confirmation notice.
99
110
100
111
Imported nodes are saved in an `import/{spaceName}/` folder in your vault, preserving the original space organization.
> **Note:** Relations are only imported when **both** the source and destination nodes are present in your local vault (either as previously imported nodes or nodes you already have locally). Relations whose endpoints are missing will be skipped.
116
+
104
117
---
105
118
106
119
## Refreshing imported nodes
@@ -116,21 +129,22 @@ After importing, you can fetch the latest content from the original sources to k
116
129
Alternatively, you can click the "Refresh" button in the Discourse Context panel.
-**Sync discourse nodes to Supabase**: Manually sync all discourse nodes to the database
124
-
-**Publish current node to lab space**: Publish the active discourse node to your group
125
-
-**Import nodes from another space**: Open the import modal to browse and import shared nodes
126
-
-**Fetch latest content from imported nodes**: Refresh all imported nodes with the latest content
127
-
135
+
-**Sync discourse nodes to Supabase**: Manually sync all discourse nodes to the database
136
+
-**Publish current node to lab space**: Publish the active discourse node to your group, including any relations whose other endpoint is already published to the same group
137
+
-**Import nodes from another space**: Open the import modal to browse and import shared nodes along with their relations
138
+
-**Fetch latest content from imported nodes**: Refresh all imported nodes with the latest content
128
139
129
140
## Troubleshooting
130
141
131
142
-**"Sync mode is not enabled"** — You need to enable sync mode in the admin panel first (see [Enabling sync mode](#enabling-sync-mode) above)
132
-
-**"Please sync the node first"** — The node hasn't been synced yet. Wait for automatic sync or trigger a manual sync
143
+
-**"Please sync the node first"** — The node hasn't been synced yet. Wait for automatic sync or trigger a manual sync via the command palette using **"Discourse Graph: Sync discourse nodes to Supabase"**.
144
+
145
+

146
+
133
147
-**"You are not a member of any groups"** — You need to be added to a group before you can import nodes. Contact your team administrator
134
148
-**No importable nodes found** — Either no nodes have been published to your groups, or you have already imported all available nodes
135
-
-If you want to see more information about imported nodes, you can unhide frontmatter information in the setting panel
0 commit comments