-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
161 changed files
with
12,124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.scss] | ||
indent_size = 2 | ||
|
||
[*.js] | ||
indent_size = 2 | ||
|
||
[*.jsx] | ||
indent_size = 2 | ||
|
||
[*.ts] | ||
indent_size = 2 | ||
|
||
[*.tsx] | ||
indent_size = 2 | ||
|
||
[*.vue] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Deploy Tiddlywiki To Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '16' | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} | ||
- name: Install Dependency | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public-dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.DS_Store | ||
node_modules | ||
output | ||
public-dist | ||
$__StoryList.tid | ||
settings/settings.json | ||
tiddlers/subwiki/ | ||
|
||
# ignore some change from plugin that will only change "modified" field | ||
$__keepstate_utility_toggle-view-fields.tid | ||
tiddlers/$__Import.tid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
printWidth: 160, | ||
arrowParens: 'always', | ||
jsxBracketSameLine: true, | ||
jsxSingleQuote: false, | ||
quoteProps: 'as-needed', | ||
bracketSpacing: true, | ||
useTabs: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Tiddlywiki-NodeJS-Github-Template | ||
|
||
Wiki template for [TiddlyGit-Desktop](https://github.com/tiddly-gittly/TiddlyGit-Desktop), an App that can generate template wiki on one-click. | ||
|
||
Knowledge base Template, with advanced filter search and faceted data aggregation. | ||
|
||
[onetwo.ren/wiki](https://onetwo.ren/wiki) is an example of this template. And [tiddly-gittly.github.io/Tiddlywiki-NodeJS-Github-Template/](https://tiddly-gittly.github.io/Tiddlywiki-NodeJS-Github-Template/) is deployed example of this repo. | ||
|
||
This repo used to contains the wiki backup data and script to start a local wiki server on MacOS on start up. It is now deprecated, and no money to maintain, now [TiddlyGit-Desktop](https://github.com/tiddly-gittly/TiddlyGit-Desktop) is preferred. Old version can be found at the [feat/auto-start branch](https://github.com/tiddly-gittly/Tiddlywiki-NodeJS-Github-Template/tree/feat/auto-start). Contribution to it is welcome. | ||
|
||
## Setup | ||
|
||
[用TiddlyWiki替代Notion和EverNote作为个人知识管理系统 (Chinese)](https://onetwo.ren/%E7%94%A8tiddlywiki%E6%9B%BF%E4%BB%A3notion%E5%92%8Cevernote%E7%AE%A1%E7%90%86%E7%9F%A5%E8%AF%86/) | ||
|
||
English translation comeout soon. (?) | ||
|
||
## Deployed to Github Pages | ||
|
||
Automatically. | ||
|
||
## NPM Scripts | ||
|
||
`npm build`: pack tiddlywiki data to a HTML file | ||
|
||
## Shell Scripts | ||
|
||
[scripts/build-wiki.js](scripts/build-wiki.js) will actually pack tiddlywiki data to a HTML file | ||
|
||
## Credit | ||
|
||
Scripts are inspired by [DiamondYuan/wiki](https://github.com/DiamondYuan/wiki) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"caseSensitive": false, | ||
"collapseBooleanAttributes": true, | ||
"collapseInlineTagWhitespace": false, | ||
"collapseWhitespace": true, | ||
"conservativeCollapse": false, | ||
"continueOnParseError": true, | ||
"customAttrCollapse": ".*", | ||
"decodeEntities": true, | ||
"html5": true, | ||
"ignoreCustomFragments": ["<#[\\s\\S]*?#>", "<%[\\s\\S]*?%>", "<\\?[\\s\\S]*?\\?>"], | ||
"includeAutoGeneratedTags": false, | ||
"keepClosingSlash": false, | ||
"maxLineLength": 0, | ||
"minifyCSS": true, | ||
"minifyJS": true, | ||
"preserveLineBreaks": false, | ||
"preventAttributesEscaping": false, | ||
"processConditionalComments": true, | ||
"processScripts": ["text/html"], | ||
"removeAttributeQuotes": true, | ||
"removeComments": false, | ||
"removeEmptyAttributes": true, | ||
"removeEmptyElements": false, | ||
"removeOptionalTags": true, | ||
"removeRedundantAttributes": true, | ||
"removeScriptTypeAttributes": true, | ||
"removeStyleLinkTypeAttributes": true, | ||
"removeTagWhitespace": true, | ||
"sortAttributes": true, | ||
"sortClassName": true, | ||
"trimCustomFragments": true, | ||
"useShortDoctype": true | ||
} |
Oops, something went wrong.