An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16245
Vanessa64099d54b5f6
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex a1f8ed1810..481f4dca6f 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -705,7 +705,11 @@ export const onExport = async (data: IWebSocketData, filePath: string, servePaththemeStyle = `<link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}appearance/themes/${themeName}/theme.css?${Constants.SIYUAN_VERSION}"/>`;}const screenWidth = getScreenWidth();- const minWidthHtml = isInAndroid() || isInHarmony() ? `document.body.style.minWidth = "${screenWidth}px"` : "";+ const mobileHtml = isInAndroid() || isInHarmony() ? {+ js: `document.body.style.minWidth = "${screenWidth}px";`,+ css: `@page { size: A4; }+.protyle-wysiwyg {padding : 0}`+ } : {js: "", css: ""};const html = `<!DOCTYPE html><html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="${getThemeMode()}" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}"><head>@@ -725,17 +729,18 @@ export const onExport = async (data: IWebSocketData, filePath: string, servePathbody {font-family: var(--b3-font-family);background-color: var(--b3-theme-background);color: var(--b3-theme-on-background)}${await setInlineStyle(false, servePath)}${await getPluginStyle()}+ ${mobileHtml.css}</style>${getSnippetCSS()}</head><body><div class="${["htmlmd", "word"].includes(exportOption.type) ? "b3-typography" : "protyle-wysiwyg" + (window.siyuan.config.editor.displayBookmarkIcon ? " protyle-wysiwyg--attr" : "")}"-style="${isInAndroid() || isInHarmony() ? "margin: 0 16px;" : "max-width: 800px;margin: 0 auto;"}" id="preview">${data.data.content}</div>+style="max-width: 800px;margin: 0 auto;" id="preview">${data.data.content}</div>${getIconScript(servePath)}<script src="${servePath}stage/build/export/protyle-method.js?v=${Constants.SIYUAN_VERSION}"></script><script src="${servePath}stage/protyle/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}"></script><script>- ${minWidthHtml};+ ${mobileHtml.js}window.siyuan = {config: {appearance: { mode: ${mode}, codeBlockThemeDark: "${window.siyuan.config.appearance.codeBlockThemeDark}", codeBlockThemeLight: "${window.siyuan.config.appearance.codeBlockThemeLight}" },