Skip to content

Commit

Permalink
refactor: use plugins format not subwiki
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 23, 2023
1 parent 836a021 commit 2fbd746
Show file tree
Hide file tree
Showing 183 changed files with 24 additions and 196 deletions.
5 changes: 0 additions & 5 deletions books/tiddlers/平凡的世界-toc.md.meta

This file was deleted.

168 changes: 0 additions & 168 deletions books/tiddlers/平凡的世界/平凡的世界-toc.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "tiddlywiki --listen",
"build": "tiddlywiki books --build"
"build": "tiddlywiki --build"
},
"keywords": [
"books",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"type": "text/markdown",
"tags": [
""
"平凡的世界"
]
}
}
Expand Down
6 changes: 6 additions & 0 deletions plugins/平凡的世界/plugin.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "平凡的世界",
"type": "plugin",
"version": "0.0.1",
"list": "readme"
}
5 changes: 5 additions & 0 deletions plugins/平凡的世界/readme.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: 平凡的世界/readme

> 平凡的世界

[[平凡的世界-toc]]
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
created: 20231023094420534
modified: 20231023094458647
title: $:/config/markdown/breaks
type: text/vnd.tiddlywiki

Expand Down
2 changes: 2 additions & 0 deletions plugins/平凡的世界/tiddlers/平凡的世界-toc.md.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: 平凡的世界-toc
type: text/markdown
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ divs.each((index, element) => {
});

// 将目录内容写入 toc.md 文件
fs.writeFileSync(`${bookOutputDir}/${bookname}-toc.md`, toc.join("\n"));
fs.writeFileSync(`${outputDir}/${bookname}-toc.md`, toc.join("\n"));
fs.copyFileSync(
path.join("templates/tiddlywiki.files"),
`${bookOutputDir}/tiddlywiki.files`
Expand Down
4 changes: 1 addition & 3 deletions templates/tiddlywiki.files
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"source": "basename"
},
"type": "text/markdown",
"tags": [
""
]
"tags": []
}
}
]
Expand Down
13 changes: 0 additions & 13 deletions templates/tiddlywiki.info

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
created: 20231023094539156
modified: 20231023094539156
created: 20231023102540336
modified: 20231023102540336
title: $:/DefaultTiddlers
type: text/vnd.tiddlywiki

Expand Down
5 changes: 5 additions & 0 deletions tiddlers/$__StoryList.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
created: 20231023102534186
list: 平凡的世界
modified: 20231023102543667
title: $:/StoryList
type: text/vnd.tiddlywiki
File renamed without changes.

0 comments on commit 2fbd746

Please sign in to comment.