mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 02:50:27 +00:00
Added a template for building a static HTML version of the wiki
This commit is contained in:
parent
b81fdd9ced
commit
3b80d7e9c1
26
rabbithole/core/static.template.html.tid
Normal file
26
rabbithole/core/static.template.html.tid
Normal file
@ -0,0 +1,26 @@
|
||||
title: $:/core/static.template.html
|
||||
type: text/x-tiddlywiki-html
|
||||
|
||||
<!doctype html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="application-name" content="TiddlyWiki" />
|
||||
<meta name="generator" content="TiddlyWiki" />
|
||||
<meta name="tiddlywiki-version" content="<<^"$:/core/version.txt" text/plain>>" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="copyright" content="
|
||||
<<^"$:/core/copyright.txt" text/plain>>
|
||||
" />
|
||||
<title><<tiddler target:$:/shadows/title>></title>
|
||||
<!----------- This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ----------->
|
||||
<style id="styleArea" type="text/css">
|
||||
<<^"[is[shadowStyle]]" text/plain>>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<<^"PageTemplate" text/html>>
|
||||
</body>
|
||||
</html>
|
@ -7,4 +7,6 @@ mkdir -p tmp
|
||||
mkdir -p tmp/tw5
|
||||
|
||||
# cook TiddlyWiki5
|
||||
node ../core/boot.js --verbose --savetiddler $:/core/tiddlywiki5.template.html tmp/tw5/index.html text/plain || exit 1
|
||||
node ../core/boot.js --verbose \
|
||||
--savetiddler $:/core/tiddlywiki5.template.html tmp/tw5/index.html text/plain \
|
||||
--savetiddler $:/core/static.template.html tmp/tw5/static.html text/plain || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user