siyuan/README.md

229 lines
11 KiB
Markdown
Raw Normal View History

2020-09-02 13:25:54 +08:00
<p align="center">
<img alt="SiYuan" src="https://b3log.org/images/brand/siyuan-128.png">
<br>
2021-09-01 19:44:49 +08:00
<em>下一代的个人知识管理系统,你的数字花园</em>
2020-09-02 13:25:54 +08:00
<br><br>
<a title="Releases" target="_blank" href="https://github.com/siyuan-note/siyuan/releases"><img src="https://img.shields.io/github/release/siyuan-note/siyuan.svg?style=flat-square&color=FF9900"></a>
<a title="Downloads" target="_blank" href="https://github.com/siyuan-note/siyuan/releases"><img src="https://img.shields.io/github/downloads/siyuan-note/siyuan/total.svg?style=flat-square&color=blueviolet"></a>
2021-09-11 09:11:01 +08:00
<a title="Docker Pulls" target="_blank" href="https://hub.docker.com/r/b3log/siyuan"><img src="https://img.shields.io/docker/pulls/b3log/siyuan.svg?style=flat-square&color=99CCFF"></a>
2021-11-03 22:14:12 +08:00
<a title="QQ 群" target="_blank" href="https://jq.qq.com/?_wv=1027&k=OmaV22we"><img src="https://img.shields.io/static/v1?label=Q%20%E7%BE%A4&style=flat-square&message=155585856&color=D28EFF"></a>
2021-09-11 09:11:01 +08:00
<a title="Discord" target="_blank" href="https://discord.gg/bzfCBwMzdP"><img src="https://img.shields.io/discord/808152298789666826?label=discord&style=flat-square&color=orange"></a>
2020-09-02 13:27:06 +08:00
<a title="Hits" target="_blank" href="https://github.com/siyuan-note/siyuan"><img src="https://hits.b3log.org/siyuan-note/siyuan.svg"></a>
2020-09-02 13:25:54 +08:00
</p>
2020-09-10 16:01:59 +08:00
<p align="center">
2021-09-01 19:45:36 +08:00
<a href="https://github.com/siyuan-note/siyuan/blob/master/README_en_US.md">English</a>
2020-09-10 16:01:59 +08:00
</p>
2020-08-30 23:47:52 +08:00
2021-09-01 19:44:49 +08:00
## 💡 简介
2020-09-10 16:01:59 +08:00
2021-09-01 19:44:49 +08:00
思源笔记是一款本地优先的个人知识管理系统, 支持细粒度块级引用和 Markdown 所见即所得。
2021-06-24 18:34:40 +08:00
![feature0.png](https://cdn.jsdelivr.net/gh/siyuan-note/siyuan@8489397401cf5025eab847dfb26a4f3896be5363/screenshots/feature0.png)
2021-02-06 23:50:34 +08:00
2021-06-24 18:34:40 +08:00
![feature1-1.png](https://cdn.jsdelivr.net/gh/siyuan-note/siyuan@8489397401cf5025eab847dfb26a4f3896be5363/screenshots/feature1-1.png)
2020-10-06 09:22:23 +08:00
2021-09-17 22:38:06 +08:00
欢迎到[思源笔记官方讨论区](https://ld246.com/domain/siyuan)了解更多。同时也欢迎关注 B3log 开源社区微信公众号 `B3log开源`
![b3logos.jpg](https://b3logfile.com/file/2020/08/b3logos-032af045.jpg)
2021-09-01 19:44:49 +08:00
## ✨ 特性
### 免费
所有本地功能都是免费的。
* 内容块
* 块级引用和双向链接
* 文档关系图、全局关系图
* 自定义属性
* SQL 查询嵌入
* 协议 `siyuan://`
* 编辑器
* Block 风格
* Markdown 所见即所得
* 列表大纲
* 块缩放聚焦
* 块横向排版
* 百万字大文档编辑
* 数学公式、图表、流程图、甘特图、时序图、五线谱等
* 网页剪藏
2021-09-17 10:12:17 +08:00
* PDF 标注双链
2021-09-01 19:44:49 +08:00
* 导出
2021-09-17 10:12:17 +08:00
* 引用块和嵌入块
2021-09-01 19:44:49 +08:00
* 带 assets 文件夹的标准 Markdown
2022-02-05 13:28:23 +08:00
* PDF、Word 和 HTML
2021-09-01 19:44:49 +08:00
* 复制到微信公众号、知乎和语雀
2021-09-17 10:17:10 +08:00
* 社区集市
* 主题
* 图标
* 模板
* 挂件
2021-09-01 19:44:49 +08:00
* 层级标签
* 多页签拖拽分屏
* 全文搜索
* 模板片段
* 快捷键
* 主题和图标
2021-05-14 22:55:14 +08:00
* Android APP
2021-11-17 21:38:15 +08:00
* iOS APP
2021-09-01 19:44:49 +08:00
* Docker 部署
2021-09-17 10:43:28 +08:00
* [API](https://github.com/siyuan-note/siyuan/blob/master/API.md)
2020-08-30 23:49:14 +08:00
2021-09-01 19:44:49 +08:00
### 付费订阅
2021-07-27 23:00:32 +08:00
2021-09-01 19:44:49 +08:00
云端服务需要付费订阅。
2021-07-27 23:06:15 +08:00
2021-09-01 19:44:49 +08:00
* 尊贵身份标识
* 端到端加密数据同步
* 端到端加密数据备份
* 云端图床服务
2022-02-14 12:43:33 +08:00
* 定时微信提醒
* 云端收集箱(计划中)
2021-07-27 23:00:32 +08:00
2021-09-01 19:44:49 +08:00
## 🗺️ 路线图
2020-09-03 11:46:50 +08:00
2021-09-01 19:44:49 +08:00
* [思源笔记开发计划和进度](https://github.com/siyuan-note/siyuan/projects)
* [思源笔记版本变更和公告](https://ld246.com/tag/siyuan-announcement)
2020-09-03 23:13:25 +08:00
2021-09-01 19:44:49 +08:00
## 🛠️ 下载安装
2020-09-10 16:01:59 +08:00
2021-09-01 19:44:49 +08:00
* [B3log](https://b3log.org/siyuan/download.html)
2020-09-10 16:01:59 +08:00
* [GitHub](https://github.com/siyuan-note/siyuan/releases)
2020-12-28 09:30:34 +08:00
* [Docker](https://hub.docker.com/r/b3log/siyuan)
2020-09-10 16:01:59 +08:00
2021-09-01 19:44:49 +08:00
获取最新内部预览版Insider Preview请将你的 GitHub 登录名发送邮件至 845765@qq.com我们将邀请你加入 SiYuan 内部预览团队。
2021-03-08 09:08:32 +08:00
2021-09-01 19:44:49 +08:00
## 🏘️ 社区
2020-09-10 16:01:59 +08:00
2021-09-01 19:44:49 +08:00
* [中文讨论区](https://ld246.com/domain/siyuan)
2021-12-24 08:10:00 +08:00
* [GitHub Issues](https://github.com/siyuan-note/siyuan/issues)
* [QQ 频道](https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=EGKPc&from=246610&biz=ka)
* [用户社群汇总](https://ld246.com/article/1640266171309)
2020-09-03 23:13:25 +08:00
2021-11-29 19:36:27 +08:00
## ❓ 常见问题和解答
### 思源是如何存储数据的?
数据保存在工作空间文件夹下(默认位于用户家目录 Documents/SiYuan可在 <kbd>设置</kbd> - <kbd>关于</kbd> 中进行修改),在工作空间 data 文件夹下:
* `assets` 用于保存所有插入的资源文件
* `templates` 用于保存模板片段
* `widgets` 用于保存挂件
* `emojis` 用于保存 Emoji 图片
* 其余文件夹就是用户自己创建的笔记本文件夹,笔记本文件夹下 `.sy` 后缀的文件用于保存文档数据,数据格式为 JSON
### 思源是开源的吗?
2022-02-08 22:37:48 +08:00
目前并没有完全开源,但已开源部分组件和应用端,欢迎参与贡献。
2022-02-06 22:17:00 +08:00
2022-02-08 22:37:48 +08:00
* [用户指南](https://github.com/siyuan-note/user-guide-zh_CN)
* [外观](https://github.com/siyuan-note/appearance)
2022-02-06 22:17:00 +08:00
* [数据解析器](https://github.com/88250/protyle)
* [编辑器引擎](https://github.com/88250/lute)
* [端到端加密](https://github.com/siyuan-note/encryption)
* [Chrome 剪藏扩展](https://github.com/siyuan-note/siyuan-chrome)
* [Android 端](https://github.com/siyuan-note/siyuan-android)
2022-02-08 22:37:48 +08:00
* [iOS 端](https://github.com/siyuan-note/siyuan-ios)
2021-11-29 19:36:27 +08:00
2021-11-29 19:39:33 +08:00
### 删除文档有什么注意事项吗?
2021-11-29 19:36:27 +08:00
文档被删除后不会出现在操作系统回收站中,而是直接删除,删除时思源会生成编辑历史。
### 如何才能只换行不新起段落?
请使用 <kbd>Shift+Enter</kbd>
### 移动标题时如何带下方块一起移动?
将标题折叠以后再移动。
### 如何跨页多选内容块?
在开始的地方单击,滚动页面以后在结束的地方按住 <kbd>Shift</kbd> 单击。
### 如何调整表格行列?
表格块的块标菜单中有操作入口。
### 如何使用第三方同步盘进行数据同步?
* 请仅同步 `工作空间/data/`,切勿同步整个工作空间
* 思源运行期间请暂停第三方同步,否则可能会出现数据损坏,细节请参考[这里](https://ld246.com/article/1626537583158)
* Android 端数据文件夹路径为 `内部存储设备/Android/data/org.b3log.siyuan/files/siyuan/data/`,该路径是应用私有路径,其他程序无法读取,只能手动复制
* 第三方同步和思源同步存在冲突,切勿同时使用
### 计划支持插件吗?
2021-11-29 19:42:13 +08:00
思源支持在浏览器上使用,可以通过浏览器插件来扩展功能。我们很期待其他开发者为思源编写浏览器插件。随着内核 API 的逐步提供,后续我们会引入插件机制。
2021-11-29 19:36:27 +08:00
### 使用需要付费吗?
本地功能完全免费使用,[云端服务](https://b3log.org/siyuan/pricing.html)需要年付订阅。
非中国大陆地区的用户请勿付费订阅,因为思源云端服务器无法保证非中国大陆地区可用。
2021-09-01 19:44:49 +08:00
## 💌 参与贡献
2020-12-12 23:48:56 +08:00
2021-09-01 19:44:49 +08:00
目前思源笔记的一些组件是开源的,欢迎参与贡献。
2020-12-12 23:48:56 +08:00
2021-09-01 19:44:49 +08:00
* [用户指南](https://github.com/siyuan-note/user-guide-zh_CN)
* [外观](https://github.com/siyuan-note/appearance)
2022-02-08 22:37:48 +08:00
* [数据解析器](https://github.com/88250/protyle)
2021-11-29 19:46:35 +08:00
* [编辑器引擎](https://github.com/88250/lute)
2022-02-08 22:37:48 +08:00
* [端到端加密](https://github.com/siyuan-note/encryption)
* [Chrome 剪藏扩展](https://github.com/siyuan-note/siyuan-chrome)
* [Android 端](https://github.com/siyuan-note/siyuan-android)
* [iOS 端](https://github.com/siyuan-note/siyuan-ios)
2021-01-12 23:08:31 +08:00
2021-09-01 19:44:49 +08:00
## 🙏 鸣谢
2021-01-12 23:08:31 +08:00
2021-09-17 10:05:42 +08:00
思源的诞生离不开下列开源项目。
2021-01-12 23:08:31 +08:00
* [https://github.com/golang/go](https://github.com/golang/go) `BSD-3-Clause License`
2021-09-27 11:47:03 +08:00
* [https://github.com/atotto/clipboard](https://github.com/atotto/clipboard) `BSD-3-Clause License`
2021-01-12 23:08:31 +08:00
* [https://github.com/vanng822/css](https://github.com/vanng822/css) `MIT License`
2021-09-17 10:05:42 +08:00
* [https://github.com/gofrs/flock](https://github.com/gofrs/flock) `BSD-3-Clause License`
2021-01-12 23:08:31 +08:00
* [https://github.com/88250/gulu](https://github.com/88250/gulu) `Mulan PSL v2`
2021-09-17 10:05:42 +08:00
* [https://github.com/88250/lute](https://github.com/88250/lute) `Mulan PSL v2`
2021-01-12 23:08:31 +08:00
* [https://github.com/olahol/melody](https://github.com/olahol/melody) `BSD-2-Clause License`
2021-09-17 10:05:42 +08:00
* [https://github.com/pdfcpu/pdfcpu](https://github.com/pdfcpu/pdfcpu) `Apache-2.0 License`
* [https://github.com/88250/protyle](https://github.com/88250/protyle) `Mulan PSL v2`
2021-09-24 16:31:41 +08:00
* [https://github.com/blastrain/vitess-sqlparser](https://github.com/blastrain/vitess-sqlparser) `Apache-2.0 License`
* [https://github.com/ConradIrwin/font](https://github.com/ConradIrwin/font) `MIT License`
2021-01-12 23:08:31 +08:00
* [https://github.com/Masterminds/sprig](https://github.com/Masterminds/sprig) `MIT License`
* [https://github.com/Xuanwo/go-locale](https://github.com/Xuanwo/go-locale) `Apache-2.0 License`
2021-12-13 12:01:07 +08:00
* [https://github.com/araddon/dateparse](https://github.com/araddon/dateparse) `MIT License`
2021-01-12 23:08:31 +08:00
* [https://github.com/common-nighthawk/go-figure](https://github.com/common-nighthawk/go-figure) `MIT License`
* [https://github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) `MIT License`
* [https://github.com/emirpasic/gods](https://github.com/emirpasic/gods) `BSD-2-Clause License`
* [https://github.com/facette/natsort](https://github.com/facette/natsort) `BSD-3-Clause License`
2021-09-17 10:05:42 +08:00
* [https://github.com/flopp/go-findfont](https://github.com/flopp/go-findfont) `MIT License`
2021-01-12 23:08:31 +08:00
* [https://github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) `BSD-3-Clause License`
2021-09-17 10:05:42 +08:00
* [https://github.com/gin-contrib/cors](https://github.com/gin-contrib/cors) `MIT License`
* [https://github.com/gin-contrib/gzip](https://github.com/gin-contrib/gzip) `MIT License`
* [https://github.com/gin-contrib/sessions](https://github.com/gin-contrib/sessions) `MIT License`
2021-01-12 23:08:31 +08:00
* [https://github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) `MIT License`
* [https://github.com/jackpal/gateway](https://github.com/jackpal/gateway) `BSD-3-Clause License`
2021-09-17 10:05:42 +08:00
* [https://github.com/jinzhu/copier](https://github.com/jinzhu/copier) `MIT License`
* [https://github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) `MIT License`
2021-09-28 10:16:52 +08:00
* [https://github.com/mattn/go-zglob](https://github.com/mattn/go-zglob) `MIT License`
2021-01-12 23:08:31 +08:00
* [https://github.com/mitchellh/go-ps](https://github.com/mitchellh/go-ps) `MIT License`
* [https://github.com/mssola/user_agent](https://github.com/mssola/user_agent) `MIT License`
* [https://github.com/panjf2000/ants](https://github.com/panjf2000/ants) `MIT License`
* [https://github.com/parnurzeal/gorequest](https://github.com/parnurzeal/gorequest) `MIT License`
2021-09-17 10:05:42 +08:00
* [https://github.com/patrickmn/go-cache](https://github.com/patrickmn/go-cache) `MIT License`
* [https://github.com/pkg/sftp](https://github.com/pkg/sftp) `BSD-2-Clause License`
* [https://github.com/siyuan-note/encryption](https://github.com/siyuan-note/encryption) `Mulan PSL v2`
* [https://github.com/xrash/smetrics](https://github.com/xrash/smetrics) `MIT License`
* [https://github.com/golang/crypto](https://github.com/golang/crypto) `BSD-3-Clause License`
2021-09-24 16:31:41 +08:00
* [https://github.com/golang/image](https://github.com/golang/image) `BSD-3-Clause License`
2021-09-17 10:05:42 +08:00
* [https://github.com/golang/mobile](https://github.com/golang/mobile) `BSD-3-Clause License`
* [https://github.com/golang/text](https://github.com/golang/text) `BSD-3-Clause License`
2021-01-12 23:08:31 +08:00
* [https://github.com/microsoft/TypeScript](https://github.com/microsoft/TypeScript) `Apache-2.0 License`
* [https://github.com/electron/electron](https://github.com/electron/electron) `MIT License`
2021-09-17 10:05:42 +08:00
* [https://github.com/Vanessa219/vditor](https://github.com/Vanessa219/vditor) `MIT License`
2021-04-28 23:34:10 +08:00
* [https://github.com/visjs/vis-network](https://github.com/visjs/vis-network) `Apache-2.0 License`
2021-09-17 10:05:42 +08:00
* [https://github.com/mozilla/pdf.js](https://github.com/mozilla/pdf.js) `Apache-2.0 License`
2021-01-12 23:08:31 +08:00
* [https://github.com/blueimp/JavaScript-MD5](https://github.com/blueimp/JavaScript-MD5) `MIT License`