Skip to content

Commit cd7666e

Browse files
authored
Update desktop docs to platform-specific URLs (#5757)
Fixes #5751 ## Summary - Replaces outdated Notion link with docs.comfy.org URLs - Uses Electron API to detect platform for Windows/macOS specific docs ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5757-Update-desktop-docs-to-platform-specific-URLs-2786d73d36508188a200ed3ad91b836f) by [Unito](https://www.unito.io)
1 parent 8d12611 commit cd7666e

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/components/helpcenter/HelpCenterMenuContent.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ const EXTERNAL_LINKS = {
168168
DOCS: 'https://docs.comfy.org/',
169169
DISCORD: 'https://www.comfy.org/discord',
170170
GITHUB: 'https://github.com/comfyanonymous/ComfyUI',
171-
DESKTOP_GUIDE: 'https://comfyorg.notion.site/',
171+
DESKTOP_GUIDE_WINDOWS: 'https://docs.comfy.org/installation/desktop/windows',
172+
DESKTOP_GUIDE_MACOS: 'https://docs.comfy.org/installation/desktop/macos',
172173
UPDATE_GUIDE: 'https://docs.comfy.org/installation/update_comfyui'
173174
} as const
174175
@@ -222,7 +223,11 @@ const moreItems = computed<MenuItem[]>(() => {
222223
label: t('helpCenter.desktopUserGuide'),
223224
visible: isElectron(),
224225
action: () => {
225-
openExternalLink(EXTERNAL_LINKS.DESKTOP_GUIDE)
226+
const docsUrl =
227+
electronAPI().getPlatform() === 'darwin'
228+
? EXTERNAL_LINKS.DESKTOP_GUIDE_MACOS
229+
: EXTERNAL_LINKS.DESKTOP_GUIDE_WINDOWS
230+
openExternalLink(docsUrl)
226231
emit('close')
227232
}
228233
},

src/extensions/core/electronAdapter.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import { useDialogService } from '@/services/dialogService'
99
import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
1010
import { checkMirrorReachable } from '@/utils/networkUtil'
1111

12+
// Desktop documentation URLs
13+
const DESKTOP_DOCS = {
14+
WINDOWS: 'https://docs.comfy.org/installation/desktop/windows',
15+
MACOS: 'https://docs.comfy.org/installation/desktop/macos'
16+
} as const
17+
1218
;(async () => {
1319
if (!isElectron()) return
1420

@@ -159,7 +165,11 @@ import { checkMirrorReachable } from '@/utils/networkUtil'
159165
label: 'Desktop User Guide',
160166
icon: 'pi pi-book',
161167
function() {
162-
window.open('https://comfyorg.notion.site/', '_blank')
168+
const docsUrl =
169+
electronAPI.getPlatform() === 'darwin'
170+
? DESKTOP_DOCS.MACOS
171+
: DESKTOP_DOCS.WINDOWS
172+
window.open(docsUrl, '_blank')
163173
}
164174
},
165175
{

0 commit comments

Comments
 (0)