Skip to content

Commit

Permalink
✨ 适配思源2.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed May 9, 2023
1 parent 8a4a758 commit b88858f
Show file tree
Hide file tree
Showing 9 changed files with 265 additions and 223 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
name: Release
name: CI

on:
push:
tags:
- 'v*'
tags:
- 'v*'

jobs:
release:
name: Create Release
build:

runs-on: ubuntu-latest
steps:

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
permissions:
contents: write

steps:
- uses: actions/checkout@v3

- name : jq theme.json
run: |
cat theme.json | jq .version
- name: package
run: |
find . -not -path '*/\.*' -type f -print | zip package.zip -@
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "package.zip"
token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions CHANGE_LOGS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.6.7 适配思源2.8.7 / 2023.05.09

- ✨ 适配思源2.8.7,更改theme.json, 新增icon.png(使用文心一格AI生成)


## v1.6.6 扩展菜单修复 / 2023.04.18

- 🐛 siyuan v2.8.4 菜单 DOM 结构变更, 新增 .b3-menu__items 层, 修复扩展菜单样式
Expand Down
142 changes: 47 additions & 95 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,144 +14,96 @@

![](preview.png)

> 前排提示:复旦大学脑转化院研究生在读ing,研究生的生活比我想象的忙碌的多得多,现在更新主题很多时候只是为了放松下(摸鱼),所以主题今后只会以完善和修复缺陷适配新版本为主,思源社区目前也出现了很多优秀的主题,也欢迎大家使用其他主题。
> ——Achuan-2于2022.12.10
> Tip in the front row: Postgraduates in Brain Transformation Institute of Fudan University are studying ing, and their life is much busier than I expected. Now, updating the theme is often just to relax (fishing), so the theme will only focus on perfecting and fixing defects and adapting to the new version in the future. There are also many excellent themes in Siyuan Community, and you are welcome to use other themes.
> ——Achuan-2 was released on December 10, 2022.

**简介**[思源笔记(Siyuan)](https://github.com/siyuan-note/siyuan)是一款本地优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。融合块、大纲和双向链接,构建你永恒的数字花园。本主题为个人原创主题,专为思源笔记设计。
**Introduction**: [Siyuan] (https://github.com/Siyuan-Note/Siyuan) is a local priority personal knowledge management system, which supports completely offline use and end-to-end encryption synchronization. Combine blocks, outlines and two-way links to build your eternal digital garden. This theme is a personal original theme, specially designed for Siyuan notes.

## 🚀更新情况
## 🚀 CHANGLOGS

[📃Tsundoku 主题更新日志](https://www.yuque.com/achuan-2/siyuan/bkq4s2)
See [📃Tsundoku 主题更新日志](https://www.yuque.com/achuan-2/siyuan/bkq4s2)


## 💌 缘起
## 💌 Origin

🎉 主题最早诞生于2021.02.22
🎉 The theme was first born on February 22, 2021.


Tsundoku “積 ん 読” is a word in Japanese. Wikipedia explains it like this: "tsundoku is acquiring reading materials but letting them pile up in one's home without reading them. It is also used to refer to books ready. For reading later when they are on a bookshelf. "Simply put, it is the behavior of buying books but not reading.

Tsundoku “積 ん 読”是日语里的一个词,维基百科是这样解释的“Tsundoku is acquiring reading materials but letting them pile up in one's home without reading them. It is also used to refer to books ready for reading later when they are on a bookshelf.” 简单说就是买书成瘾却不读的行为。
> Any PKM approach that doesn't tie into execution tools is destined to languish on the back burner forever.
使用一个工具的最大障碍是「需求不清」,如果不清楚自己的记录需求是什么,那功能越多,可能造成的障碍越大,很容易就使人陷进去对功能的各种研究中去了。用完一堆笔记软件之后你会明白:最需要提升的并不是你所用的工具,**而是你自己**

我借此名来警醒自己,希望能利用好思源笔记,帮助我养成每日记录、定期回顾复盘的习惯,更好地掌握知识和技能,争取做有意义的项目,变成更优秀的人,而不是为了记笔记而笔记,让笔记软件成为一个个缓解知识焦虑的积灰箱,满足变态的数字化囤积症。
The biggest obstacle to using a tool is "unclear requirements". If you don't know what your recording requirements are, the more functions there are, the greater the possible obstacles, and it is easy for people to get caught up in various research on functions. After using a pile of notebook software, you will understand that the most important thing to improve is not the tools you use, but yourself.

I use this name to wake myself up, hoping to make good use of Siyuan notes, help me form the habit of daily recording and reviewing the answers regularly, better master knowledge and skills, strive to do meaningful projects and become a better person, instead of taking notes for the sake of taking notes, so that the note-taking software can become a dust box to relieve knowledge anxiety and satisfy abnormal digital hoarding.


## 🐯 主题特色功能

-**主题三合一,同时支持明亮模式和暗黑模式**(Tsundoku Light、Tsundoku Green、Tsundoku Dark)【参考自[Savor](https://github.com/royc01/notion-theme)
- 思源笔记明亮模式只支持选择light和green,暗黑模式只支持选择dark主题
- **如果明亮模式和暗黑模式都设置为使用Tsundoku主题**:从暗黑模式切换为明亮模式,根据之前的明亮模式选择自动更改为green主题/light主题;从明亮模式切换为暗黑模式,自动更改为dark主题

- 📎**为超链接添加了icon**:区别不同的本地链接和网络链接,详见[超链接图标介绍](https://www.yuque.com/achuan-2/siyuan/gar358)
-**The theme is three-in-one, which supports both bright mode and dark mode.**(Tsundoku Light、Tsundoku Green、Tsundoku Dark)【Ref:[Savor](https://github.com/royc01/notion-theme)
- Siyuan note bright mode only supports the selection of light and green, while dark mode only supports the selection of dark theme.
- **If both bright mode and dark mode are set to use Tsundoku theme**:Switch from dark mode to bright mode, and automatically change to green theme /light theme according to the previous bright mode selection; Switch from bright mode to dark mode and automatically change to dark theme.
- 📎**Added icon to hyperlink.**:See [Introduction to Hyperlink Icons](https://www.yuque.com/Achuan-2/siyuan/gar358) for the difference between different local links and network links.
![20220131165215_2022-01-31](https://cdn.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/README/20220131165215_2022-01-31.png)
- 🧊 **引入语雀提示区块**给引述块blockquote添加块背景颜色,就会自动应用样式,详见[语雀提示区块样式](https://www.yuque.com/achuan-2/siyuan/obxpvr)
- 🧊 **Introduction of finch cue block**Add a block background color to the reference block blockquote, and the style will be automatically applied. See [Que Hint Block Style](https://www.yuque.com/achuan-2/siyuan/obxpvr) for details.
![20220131165233_2022-01-31](https://cdn.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/README/20220131165233_2022-01-31.png)

## 😺 借鉴功能

- [Dark+主题](https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus)
- [Dark+](https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus)主题的功能(copy)
- 打开一个新窗口并置顶
- 复制当前文档大纲为无序列表
- 复制文档内容
- 剪切文档内容
- 按alt+中键可以打开用monaco-editor以markdown样式打开当前块或文档
- 打开文档需要在文档题头图那块点击
- Ctrl+S才能从manaco编辑器保存内容
- [HBuilderX-Light主题](https://github.com/UFDXD/HBuilderX-Light)
- [HBuilderX-Light](https://github.com/UFDXD/HBuilderX-Light)的功能(copy)
- 左右面板收起
- 高亮文本隐藏按钮:将Ctrl+E,设置为文本遮挡效果:默认显示文字,当点击顶栏【开启隐藏高亮文本按钮】时,隐藏高亮文本
- 列表转脑图、表格
- 表格设置是否显示表头和表宽度调整
- [Savor主题](https://github.com/royc01/notion-theme)
- 高亮文本隐藏按钮:将Ctrl+E,设置为文本遮挡效果:默认显示文字,当点击顶栏【开启隐藏高亮文本按钮】时,隐藏高亮文本。
主题的功能(copy)
- 主题切换按钮
- Ctrl+滚轮单独调整页面大小(使用开发者工具清除缓存可以复位)
- [日历面板](https://github.com/HowcanoeWang/calendar)
- [日历面板](https://github.com/HowcanoeWang/calendar)(copy)
- 支持根据笔记本日记路径模板智能识别“2006.01.02”或“2006-01-02”格式(不支持更复杂的格式)
- 支持点击查看已有日记以及提前新建未来日记


## 🐭自定义属性
- 使用方式:单击块标选择打开属性列表或Shift+Click打开,点击添加,输入属性名(e.g. f),并输入相应的属性值(e.g. hide)
- 自定义块属性列表

| 属性key<br /> | 属性值value | 功能 | 备注 |
| ----------- | ------------- | ---------------------------- | ----------------- |
| f | hide/挖空 | 挖空块 | |
| code | output | 专门用来放输出结果的代码块 | |
| f | kb | 列表转看板 | Ref:notion主题 |
| f | dt | 列表转脑图 | Ref:notion主题 |
| f | dg | 列表转表格 | Ref:notion主题 |
| f | full | 表格宽度为页面宽度 | Ref:notion主题 |
| f | biaotou | 表格表头不加粗 | Ref:notion主题 |

- 自定义文档属性
| 属性key | 属性值value | 功能 |
| ---------- | ------------- | ------------------ |
| img | center | 文档全部图片居中 |
| linkicon | no | 超链接取消icon |
| title-num | true | 标题自动编号 |

## ❤ 致谢

- https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus
- https://github.com/UFDXD/HBuilderX-Light
- https://github.com/royc01/notion-theme
- https://github.com/HowcanoeWang/calendar


## ☎️意见交流

若主题存在样式的问题,欢迎在Github提issue或是通过邮箱联系我(achuan-2@outlook.com)。在提issue之前建议先切换为默认主题,确定是本主题特有的问题。
- Usage: Click on the block tag to open the attribute list, or Shift + Click to open it. Click "Add", enter the attribute name "f" or "function", and enter the corresponding attribute value (hide or hollow).
- Custom block attribute list

| Attribute Key | Attribute Value | Function | Remarks |
| ------------- | --------------- | ---------------------------------------------------- | ----------------- |
| f | hide / 挖空 | Hollow block | |
| code | output | Code block specifically used to place output results | |
| f | kb | Convert list to kanban board | Ref: Notion theme |
| f | dt | Convert list to mind map | Ref: Notion theme |
| f | dg | Convert list to table | Ref: Notion theme |
| f | full | Set table width to page width | Ref: Notion theme |
| f | biaotou | Remove bold formatting from table headers | Ref: Notion theme |

## ❓FAQ

### 导出pdf时,高亮文本是隐藏的,如何设置不隐藏?
- Custom document attributes
| Attribute Key | Attribute Value | Function |
| ------------- | --------------- | ----------------------------------------------- |
| img | center | Center all images in the document |
| linkicon | no | Remove icon from hyperlinks |
| title-num | true | Automatically number the titles in the document |

主题theme.css,搜索“导出的高亮样式”
```css
/* 导出的高亮样式:高亮隐藏 */
#preview.protyle-wysiwyg span[data-type~='mark']{
color: transparent;
transition: color 0.2s ease-in-out;
background-color: transparent;
border-bottom: 2px solid var(--b3-font-color4);
}
## ❤ Acknowledge

/* 导出的高亮样式:高亮不隐藏 */
/* #preview.protyle-wysiwyg span[data-type~='mark']{
color: var(--b3-protyle-inline-mark-color);
transition: color 0.2s ease-in-out;
background-color: var(--b3-card-success-background);
border-bottom: 2px solid var(--b3-font-color4);
} */

```
改为
```css
/* 导出的高亮样式:高亮隐藏 */
/* #preview.protyle-wysiwyg span[data-type~='mark']{
color: transparent;
transition: color 0.2s ease-in-out;
background-color: transparent;
border-bottom: 2px solid var(--b3-font-color4);
} */
- https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus
- https://github.com/UFDXD/HBuilderX-Light
- https://github.com/royc01/notion-theme
- https://github.com/HowcanoeWang/calendar

/* 导出的高亮样式:高亮不隐藏 */
#preview.protyle-wysiwyg span[data-type~='mark']{
color: var(--b3-protyle-inline-mark-color);
transition: color 0.2s ease-in-out;
background-color: var(--b3-card-success-background);
border-bottom: 2px solid var(--b3-font-color4);
}

```
> 建议开启【外观-自定义主题】,生成cutsom.css,将这段代码粘贴到custom.css中,这样可以避免每次更新主题时,这段代码被覆盖。
## ☎️ Contact


### 明明更新了主题,但是界面和功能都是原来的
If the theme has style problems, please mention the issue in Github or contact me by email (achuan-2@outlook.com). Before raising issue, it is suggested to switch to the default theme, and make sure it is a unique problem of this theme.

1. 缓存问题:Ctrl+Shift+i 打开开发者工具,在Network面板勾选Disable cache,在Console面板按f5刷新看看
2. 自定义主题问题:检测主题是否开启了自定义外观,自定义外观中是否直接就是旧版theme.css的拷贝。
Loading

0 comments on commit b88858f

Please sign in to comment.