Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

Yuji Oshiroe3bd8562b870
diff --git a/packages/frontend/electron/src/main/application-menu/create.ts b/packages/frontend/electron/src/main/application-menu/create.ts
index 70a3fa0f02..c2b22688f5 100644
--- a/packages/frontend/electron/src/main/application-menu/create.ts
+++ b/packages/frontend/electron/src/main/application-menu/create.ts
@@ -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-你好'
+ );
+ },
+ },
],
},
];