Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/10671

Vanessac5de82d91ad4
diff --git a/app/src/menus/onGetnotebookconf.ts b/app/src/menus/onGetnotebookconf.ts
index def9923256..db88c429f3 100644
--- a/app/src/menus/onGetnotebookconf.ts
+++ b/app/src/menus/onGetnotebookconf.ts
@@ -22,7 +22,14 @@ declare interface INotebookConf {
export const genNotebookOption = (id: string) => {
let html = `<option value="">${window.siyuan.languages.currentNotebook}</option>`;
+ const helpIds: string[] = [];
+ Object.keys(Constants.HELP_PATH).forEach((key: "zh_CN") => {
+ helpIds.push(Constants.HELP_PATH[key]);
+ });
window.siyuan.notebooks.forEach((item) => {
+ if (helpIds.includes(item.id)) {
+ return;
+ }
html += `<option value="${item.id}" ${id === item.id ? "selected" : ""}>${item.name}</option>`;
});
return html;