Skip to content

Instantly share code, notes, and snippets.

@sukima
Created March 24, 2016 10:34
Show Gist options
  • Save sukima/72c7782dcc8dfb221833 to your computer and use it in GitHub Desktop.
Save sukima/72c7782dcc8dfb221833 to your computer and use it in GitHub Desktop.
Public/Private TiddlyWiki commands
title: $:/core/templates/allpublictiddlers.template.html
type: text/vnd.tiddlywiki-html
<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->
<$set name="exportFilter" value="[!is[system]!tag[private]sort[title]]">
{{$:/core/templates/exporters/StaticRiver}}
</$set>
{
"name": "my-site",
"private": true,
"version": "1.1.0",
"description": "A clever description",
"author": {
"name": "Sukima",
"email": "suki@tritarget.org",
"url": "http://tritarget.org"
},
"license": "LicenseRef-LICENSE",
"scripts": {
"deploy": "npm run build && rsync -rv --progress --delete wiki/output/* username@my-site.org:path/to/www",
"clean": "gulp clean",
"start": "gulp server",
"build": "gulp build"
},
"devDependencies": {
"bluebird": "^3.1.1",
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-rename": "^1.2.2",
"gulp-util": "^3.0.7",
"lodash": "^3.10.1",
"tiddlywiki": "^5.1.9"
},
"dependencies": {}
}
title: $:/core/save/public
\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[tag[private]] +[sort[title]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5.html}}
{
"description": "Wiket's Story Archive - for AB/DL and BDSM related stories",
"plugins": [
"tiddlywiki/highlight"
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
],
"build": {
"index": [
"--savetiddlers","[tag[external-image]]","images",
"--rendertiddlers","[tag[external-text]]","$:/core/templates/tid-tiddler","text","text/plain",".tid",
"--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
"--setfield","[tag[external-text]]","_canonical_uri","$:/core/templates/canonical-uri-external-text","text/plain",
"--setfield","[tag[external-image]] [tag[external-text]]","text","","text/plain",
"--rendertiddler","$:/core/save/public","index.html","text/plain"],
"favicon": [
"--savetiddler","$:/favicon.ico","favicon.ico",
"--savetiddler","$:/favicon.ico","static/favicon.ico"],
"static": [
"--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain",
"--rendertiddler","$:/core/templates/allpublictiddlers.template.html","alltiddlers.html","text/plain",
"--rendertiddlers","[!is[system]!tag[private]]","$:/core/templates/static.tiddler.html","static","text/plain",
"--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment