Phase 0-2: Schema cleanup, typed relations, event-driven automation
- Phase 0: AGENTS.md cleanup (dedup quotes, renumber sections, merge qmd) - Phase 1: typed relations (manage-relations.py, graph-search.py, check-staleness.py, detect-conflicts.py) - Phase 2: frontmatter validator, weekly lint, knowledge promotion, git hooks - Fix .gitignore to track tools/ and .githooks/ - Fix git remote URL (remove plaintext token) - New wiki pages: 504 pages, 34 raw sources
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"schemaVersion": "0.1.0",
|
||||
"name": "Douban Books",
|
||||
"behavior": "create",
|
||||
"noteNameFormat": "{{title}}",
|
||||
"path": "References",
|
||||
"noteContentFormat": "{{ content | split: \"内容简介\" | last | split: \"原文摘录\" | first | slice: 1, 1000 }}",
|
||||
"properties": [
|
||||
{
|
||||
"name": "categories",
|
||||
"value": "[[Books]]",
|
||||
"type": "multitext"
|
||||
},
|
||||
{
|
||||
"name": "author",
|
||||
"value": "{{author}}",
|
||||
"type": "multitext"
|
||||
},
|
||||
{
|
||||
"name": "cover",
|
||||
"value": "",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"name": "isbn",
|
||||
"value": "{{schema:@Book:isbn}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"name": "scoreGr",
|
||||
"value": "{{selector:.rating_num[property=\"v:average\"]|trim|number}}",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "rating_people",
|
||||
"value": "{{selector:span[property=\"v:votes\"]|trim}}",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "pages",
|
||||
"value": "{{ content | split: \"页数: \" | last | split: \" \" | first }}",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "year",
|
||||
"value": "{{ content | split: \"出版年: \" | last | split: \" \" | first }}",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "publisher",
|
||||
"value": "{{selector:#info a[href*=\"press\"]|trim}}",
|
||||
"type": "multitext"
|
||||
},
|
||||
{
|
||||
"name": "created",
|
||||
"value": "{{date}}",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "tags",
|
||||
"value": "books",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"triggers": [
|
||||
"https://book.douban.com/subject/"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user