mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat(electron): add documentation button in help menu bar (#7199)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -143,6 +143,16 @@ export function createApplicationMenu() {
|
|||||||
await checkForUpdates();
|
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-你好'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user