feat(electron): add documentation button in help menu bar (#7199)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Yuji OshiroandPeng Xiao authored and GitHub committed 2024-06-17 22:13:06 +08:00
1 parent e14e110f03
commit e3bd8562b8
1 file changed
+10
@@ -143,6 +143,16 @@ export function createApplicationMenu() {
await checkForUpdates();
},
},
{
label: 'Documentation',
click: async () => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { shell } = require('electron');
await shell.openExternal(
'https://docs.affine.pro/docs/hello-bonjour-aloha-你好'
);
},
},
],
},
];