Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs improvements
zadamc97ada343463
diff --git a/package-lock.json b/package-lock.jsonindex d8b3c97f3e..2c8d1c985e 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,16 +1,18 @@{"name": "trilium",- "version": "0.58.2-beta",+ "version": "0.58.4","lockfileVersion": 2,"requires": true,"packages": {"": {- "version": "0.58.2-beta",+ "name": "trilium",+ "version": "0.58.4","hasInstallScript": true,"license": "AGPL-3.0-only","dependencies": {+ "@braintree/sanitize-url": "6.0.2","@electron/remote": "2.0.9",- "@excalidraw/excalidraw": "0.13.0",+ "@excalidraw/excalidraw": "0.14.0","archiver": "5.3.1","async-mutex": "0.4.0","axios": "1.2.2",@@ -45,17 +47,17 @@"is-svg": "4.3.2","jimp": "0.16.2","joplin-turndown-plugin-gfm": "1.0.12",- "jsdom": "20.0.3",+ "jsdom": "21.0.0","mime-types": "2.1.35","multer": "1.4.5-lts.1",- "node-abi": "3.30.0",+ "node-abi": "3.31.0","normalize-strings": "1.1.1","open": "8.4.0","rand-token": "1.0.1","react": "17.0.2","react-dom": "17.0.2","request": "2.88.2",- "rimraf": "3.0.2",+ "rimraf": "4.0.4","safe-compare": "1.1.4","sanitize-filename": "1.6.3","sanitize-html": "2.8.1",@@ -68,7 +70,7 @@"tmp": "0.2.1","turndown": "7.1.1","unescape": "1.0.1",- "ws": "8.11.0",+ "ws": "8.12.0","yauzl": "2.10.0"},"bin": {@@ -115,6 +117,11 @@"node": ">=6.9.0"}},+ "node_modules/@braintree/sanitize-url": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz",+ "integrity": "sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg=="+ },"node_modules/@develar/schema-utils": {"version": "2.6.5","resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",@@ -372,9 +379,9 @@}},"node_modules/@excalidraw/excalidraw": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@excalidraw/excalidraw/-/excalidraw-0.13.0.tgz",- "integrity": "sha512-TTi1hiUczfIj/kLQshh1EHUrXziEa5cwLF74TrlFQWwW9jhJIF73HplmqEMrfwwqt7CrypXRZtMzH1hhmZ3vbg==",+ "version": "0.14.0",+ "resolved": "https://registry.npmjs.org/@excalidraw/excalidraw/-/excalidraw-0.14.0.tgz",+ "integrity": "sha512-bQsaS8YFqmy5FF9Dk6QbCXESaU0xAU8JpdhjkQrr9NworPlz+3Ue/Aa2cchVOMMPbGNcYdybYrfWU4TV0mwdag==","peerDependencies": {"react": "^17.0.2 || ^18.2.0","react-dom": "^17.0.2 || ^18.2.0"@@ -923,6 +930,21 @@"node": ">=10"}},+ "node_modules/@npmcli/move-file/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/@sindresorhus/is": {"version": "0.14.0","resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",@@ -2355,6 +2377,63 @@"node": ">=10"}},+ "node_modules/cacache/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/cacache/node_modules/rimraf/node_modules/brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/cacache/node_modules/rimraf/node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "dev": true,+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/cacache/node_modules/rimraf/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },"node_modules/cacheable-lookup": {"version": "5.0.4","resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",@@ -6527,9 +6606,9 @@}},"node_modules/jsdom": {- "version": "20.0.3",- "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz",- "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==",+ "version": "21.0.0",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-21.0.0.tgz",+ "integrity": "sha512-AIw+3ZakSUtDYvhwPwWHiZsUi3zHugpMEKlNPaurviseYoBqo0zBd3zqoUi3LPCNtPFlEP8FiW9MqCZdjb2IYA==","dependencies": {"abab": "^2.0.6","acorn": "^8.8.1",@@ -7345,9 +7424,9 @@"dev": true},"node_modules/node-abi": {- "version": "3.30.0",- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.30.0.tgz",- "integrity": "sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw==",+ "version": "3.31.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.31.0.tgz",+ "integrity": "sha512-eSKV6s+APenqVh8ubJyiu/YhZgxQpGP66ntzUb3lY1xB9ukSRaGnx0AIxI+IM+1+IVYC1oWobgG5L3Lt9ARykQ==","dependencies": {"semver": "^7.3.5"},@@ -7467,6 +7546,21 @@"node": ">= 6"}},+ "node_modules/node-gyp/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/node-releases": {"version": "2.0.1","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz",@@ -8609,14 +8703,14 @@}},"node_modules/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "dependencies": {- "glob": "^7.1.3"- },+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.0.4.tgz",+ "integrity": "sha512-R0hoVr9xTwemarQjoWlNt/nb5dEGVTBhVdkRmEX2zEkT8T6onH0XKiGjuaC7rNNj/gYzY2p4NVRJ3sjO1ascHQ==","bin": {- "rimraf": "bin.js"+ "rimraf": "dist/cjs/src/bin.js"+ },+ "engines": {+ "node": ">=14"},"funding": {"url": "https://github.com/sponsors/isaacs"@@ -9715,6 +9809,20 @@"tmp": "^0.2.0"}},+ "node_modules/tmp/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/to-readable-stream": {"version": "1.0.0","resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",@@ -10341,15 +10449,15 @@}},"node_modules/ws": {- "version": "8.11.0",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz",- "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==",+ "version": "8.12.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz",+ "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==","engines": {"node": ">=10.0.0"},"peerDependencies": {"bufferutil": "^4.0.1",- "utf-8-validate": "^5.0.2"+ "utf-8-validate": ">=5.0.2"},"peerDependenciesMeta": {"bufferutil": {@@ -10552,6 +10660,11 @@"regenerator-runtime": "^0.13.4"}},+ "@braintree/sanitize-url": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz",+ "integrity": "sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg=="+ },"@develar/schema-utils": {"version": "2.6.5","resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",@@ -10749,9 +10862,9 @@}},"@excalidraw/excalidraw": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@excalidraw/excalidraw/-/excalidraw-0.13.0.tgz",- "integrity": "sha512-TTi1hiUczfIj/kLQshh1EHUrXziEa5cwLF74TrlFQWwW9jhJIF73HplmqEMrfwwqt7CrypXRZtMzH1hhmZ3vbg==",+ "version": "0.14.0",+ "resolved": "https://registry.npmjs.org/@excalidraw/excalidraw/-/excalidraw-0.14.0.tgz",+ "integrity": "sha512-bQsaS8YFqmy5FF9Dk6QbCXESaU0xAU8JpdhjkQrr9NworPlz+3Ue/Aa2cchVOMMPbGNcYdybYrfWU4TV0mwdag==","requires": {}},"@gar/promisify": {@@ -11166,6 +11279,15 @@"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz","integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==","dev": true+ },+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "requires": {+ "glob": "^7.1.3"+ }}}},@@ -12375,6 +12497,50 @@"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz","integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==","dev": true+ },+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "requires": {+ "glob": "^7.1.3"+ },+ "dependencies": {+ "brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "requires": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "dev": true,+ "requires": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ }+ },+ "minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "requires": {+ "brace-expansion": "^1.1.7"+ }+ }+ }}}},@@ -15550,9 +15716,9 @@}},"jsdom": {- "version": "20.0.3",- "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz",- "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==",+ "version": "21.0.0",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-21.0.0.tgz",+ "integrity": "sha512-AIw+3ZakSUtDYvhwPwWHiZsUi3zHugpMEKlNPaurviseYoBqo0zBd3zqoUi3LPCNtPFlEP8FiW9MqCZdjb2IYA==","requires": {"abab": "^2.0.6","acorn": "^8.8.1",@@ -16188,9 +16354,9 @@"dev": true},"node-abi": {- "version": "3.30.0",- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.30.0.tgz",- "integrity": "sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw==",+ "version": "3.31.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.31.0.tgz",+ "integrity": "sha512-eSKV6s+APenqVh8ubJyiu/YhZgxQpGP66ntzUb3lY1xB9ukSRaGnx0AIxI+IM+1+IVYC1oWobgG5L3Lt9ARykQ==","requires": {"semver": "^7.3.5"}@@ -16277,6 +16443,15 @@"string_decoder": "^1.1.1","util-deprecate": "^1.0.1"}+ },+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "requires": {+ "glob": "^7.1.3"+ }}}},@@ -17179,12 +17354,9 @@"integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs="},"rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "requires": {- "glob": "^7.1.3"- }+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.0.4.tgz",+ "integrity": "sha512-R0hoVr9xTwemarQjoWlNt/nb5dEGVTBhVdkRmEX2zEkT8T6onH0XKiGjuaC7rNNj/gYzY2p4NVRJ3sjO1ascHQ=="},"rndm": {"version": "1.2.0",@@ -18005,6 +18177,16 @@"integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==","requires": {"rimraf": "^3.0.0"+ },+ "dependencies": {+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "requires": {+ "glob": "^7.1.3"+ }+ }}},"tmp-promise": {@@ -18494,9 +18676,9 @@}},"ws": {- "version": "8.11.0",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz",- "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==",+ "version": "8.12.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz",+ "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==","requires": {}},"xhr": {diff --git a/package.json b/package.jsonindex 025ee9feaa..0808b715d6 100644--- a/package.json+++ b/package.json@@ -27,9 +27,9 @@"postinstall": "rimraf ./node_modules/canvas"},"dependencies": {- "@braintree/sanitize-url": "^6.0.2",+ "@braintree/sanitize-url": "6.0.2","@electron/remote": "2.0.9",- "@excalidraw/excalidraw": "0.13.0",+ "@excalidraw/excalidraw": "0.14.0","archiver": "5.3.1","async-mutex": "0.4.0","axios": "1.2.2",@@ -64,17 +64,17 @@"is-svg": "4.3.2","jimp": "0.16.2","joplin-turndown-plugin-gfm": "1.0.12",- "jsdom": "20.0.3",+ "jsdom": "21.0.0","mime-types": "2.1.35","multer": "1.4.5-lts.1",- "node-abi": "3.30.0",+ "node-abi": "3.31.0","normalize-strings": "1.1.1","open": "8.4.0","rand-token": "1.0.1","react": "17.0.2","react-dom": "17.0.2","request": "2.88.2",- "rimraf": "3.0.2",+ "rimraf": "4.0.4","safe-compare": "1.1.4","sanitize-filename": "1.6.3","sanitize-html": "2.8.1",@@ -87,7 +87,7 @@"tmp": "0.2.1","turndown": "7.1.1","unescape": "1.0.1",- "ws": "8.11.0",+ "ws": "8.12.0","yauzl": "2.10.0"},"devDependencies": {diff --git a/src/build_docs_website.js b/src/build_docs_website.jsindex 9e3e6a6c50..3738ff8ff9 100644--- a/src/build_docs_website.js+++ b/src/build_docs_website.js@@ -17,7 +17,27 @@ addNavigationAndStyle(rootNoteMeta, WEB_TMP_DIR);fs.writeFileSync(WEB_TMP_DIR + '/style.css', getCss());function getCss() {- return '* { color: red }';+ return `+body {+ display: flex;+ flex-direction: row-reverse;+ width: 1000px;+ margin: auto;+}++.note-tree-nav {+ width: 200px;+ margin-right: 20px;+ overflow-x: auto;+}++.note-tree-nav ul {+ padding-left: 20px;+}++.content {+ width: 780px;+}`;}function addNavigationAndStyle(noteMeta, parentDirPath) {diff --git a/src/services/export/zip.js b/src/services/export/zip.jsindex 8bc7e6dc64..4f9c16f9db 100644--- a/src/services/export/zip.js+++ b/src/services/export/zip.js@@ -255,9 +255,11 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true)<base target="_parent"></head><body>- <h1>${utils.escapeHtml(title)}</h1>-- <div class="ck-content">${content}</div>+ <div class="content">+ <h1>${utils.escapeHtml(title)}</h1>++ <div class="ck-content">${content}</div>+ </div></body></html>`;}diff --git a/src/transform_api_docs.js b/src/transform_api_docs.jsindex 8212f891bc..ed944481df 100644--- a/src/transform_api_docs.js+++ b/src/transform_api_docs.js@@ -42,7 +42,7 @@ scriptApiDocsRoot.dirFileName = scriptApiDocsRoot.dataFileName.substr(0, scriptAscriptApiDocsRoot.children = getScriptApiMeta();fs.writeFileSync(META_PATH, JSON.stringify(meta, null, 2));-const scriptApiDocsRootDir = USER_GUIDE_DIR + scriptApiDocsRootFilePath.substr(0, scriptApiDocsRootFilePath.length - 5);+const scriptApiDocsRootDir = USER_GUIDE_DIR + scriptApiDocsRootFilePath;fs.mkdirSync(scriptApiDocsRootDir, {recursive: true});fs.mkdirSync(scriptApiDocsRootDir + '/BackendScriptApi', {recursive: true});@@ -55,12 +55,12 @@ fs.copyFileSync(TMP_BE_DOCS + '/BackendScriptApi.html', BE_ROOT);fs.copyFileSync(TMP_FE_DOCS + '/FrontendScriptApi.html', FE_ROOT);for (const file of BE_FILES) {- fs.copyFileSync(TMP_BE_DOCS + '/' + file + '.html', scriptApiDocsRootDir + '/BackendScriptApi/' + file + '.html');+ fs.copyFileSync(TMP_BE_DOCS + '/' + file + '.html', `${scriptApiDocsRootDir}/BackendScriptApi/${file}.html`);}rewriteLinks(BE_ROOT, BE_FILES, 'BackendScriptApi');for (const file of FE_FILES) {- fs.copyFileSync(TMP_FE_DOCS + '/' + file + '.html', scriptApiDocsRootDir + '/FrontendScriptApi/' + file + '.html');+ fs.copyFileSync(TMP_FE_DOCS + '/' + file + '.html', `${scriptApiDocsRootDir}/FrontendScriptApi/${file}.html`);}rewriteLinks(FE_ROOT, FE_FILES, 'FrontendScriptApi');@@ -141,7 +141,7 @@ function findNoteMeta(noteMeta, name, notePath) {if (noteMeta.title === name) {return {noteMeta,- filePath: '/' + noteMeta.dataFileName,+ filePath: '/' + noteMeta.dirFileName,notePath};}@@ -152,7 +152,7 @@ function findNoteMeta(noteMeta, name, notePath) {if (ret) {return {noteMeta: ret.noteMeta,- filePath: '/' + noteMeta.dirFileName + ret.path,+ filePath: '/' + noteMeta.dirFileName + ret.filePath,notePath: ret.notePath};}