Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Site from TiddlyWiki #168

Closed
ir-g opened this issue Sep 28, 2013 · 2 comments
Closed

Generate Site from TiddlyWiki #168

ir-g opened this issue Sep 28, 2013 · 2 comments

Comments

@ir-g
Copy link

ir-g commented Sep 28, 2013

How could I convert a TiddlyWiki5 site into a collection of html files via command line?

E.G.:

tiddlywiki.js --build wiki.html

@Jermolene
Copy link
Owner

If your TiddlyWiki5 site is in the form of a wiki folder then this should work:

node ./tiddlywiki.js \
    ./path/to/wiki/folder \
    --verbose \
    --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./output/static text/plain \
    --rendertiddler $:/core/templates/static.template.html ./output/static.html text/plain \
    --rendertiddler $:/core/templates/static.template.css ./output/static/static.css text/plain \
    || exit 1

If your TW5 wiki is in the form of a TiddlyWiki HTML file then you can do this:

node ./tiddlywiki.js \
    --load ./path/to/wiki/file.html \
    --verbose \
    --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./output/static text/plain \
    --rendertiddler $:/core/templates/static.template.html ./output/static.html text/plain \
    --rendertiddler $:/core/templates/static.template.css ./output/static/static.css text/plain \
    || exit 1

@ir-g
Copy link
Author

ir-g commented Sep 28, 2013

Thank you, especially for this very quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants