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

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Yuji Oshiro
2024-06-17 07:13:06 -07:00
committed by GitHub
parent e14e110f03
commit e3bd8562b8

View File

@@ -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-你好'
);
},
},
],
},
];