mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Fix TiddlyWiki Classic Build Process (#7933)
This commit is contained in:
parent
1015a1605d
commit
83dfec471d
@ -69,6 +69,15 @@ exports["text/vnd.tiddlywiki2-recipe"] = function(text,fields) {
|
|||||||
},
|
},
|
||||||
sourcePath = fields.title; // Bit of a hack to take advantage of the default title being the path to the tiddler file
|
sourcePath = fields.title; // Bit of a hack to take advantage of the default title being the path to the tiddler file
|
||||||
processRecipe(sourcePath,text);
|
processRecipe(sourcePath,text);
|
||||||
|
// Add a $:/RecipeTiddlers tiddler with the titles of the loaded tiddlers in order
|
||||||
|
var titles = [];
|
||||||
|
$tw.utils.each(tiddlers,function(tiddler) {
|
||||||
|
titles.push(tiddler.title);
|
||||||
|
});
|
||||||
|
tiddlers.push({
|
||||||
|
title: "$:/RecipeTiddlers",
|
||||||
|
list: $tw.utils.stringifyList(titles)
|
||||||
|
});
|
||||||
return tiddlers;
|
return tiddlers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/core/templates/tiddlywiki2.externaljs.template.html
|
title: $:/core/templates/tiddlywiki2.externaljs.template.html
|
||||||
|
|
||||||
{{{ [prefix[{prejs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{prejs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
{{{ [prefix[{js}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{js}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
{{{ [prefix[{postjs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{postjs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
{{{ [prefix[{jsext}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{jsext}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
|
|
||||||
|
@ -6,35 +6,35 @@ title: $:/core/templates/tiddlywiki2.template.html
|
|||||||
<head>
|
<head>
|
||||||
<script id="versionArea" type="text/javascript">
|
<script id="versionArea" type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
{{{ [prefix[{version}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{version}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="copyright" content="
|
<meta name="copyright" content="
|
||||||
{{{ [prefix[{copyright}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{copyright}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
" />
|
" />
|
||||||
<!--PRE-HEAD-START-->
|
<!--PRE-HEAD-START-->
|
||||||
{{{ [prefix[{prehead}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{prehead}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
<!--PRE-HEAD-END-->
|
<!--PRE-HEAD-END-->
|
||||||
<title>
|
<title>
|
||||||
{{{ [prefix[{title}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{title}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
</title>
|
</title>
|
||||||
<style id="styleArea" type="text/css">
|
<style id="styleArea" type="text/css">
|
||||||
{{{ [prefix[{style}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{style}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
</style>
|
</style>
|
||||||
<!--POST-HEAD-START-->
|
<!--POST-HEAD-START-->
|
||||||
{{{ [prefix[{posthead}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{posthead}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
<!--POST-HEAD-END-->
|
<!--POST-HEAD-END-->
|
||||||
</head>
|
</head>
|
||||||
<body onload="main();" onunload="if(window.unload) unload();">
|
<body onload="main();" onunload="if(window.unload) unload();">
|
||||||
<!--PRE-BODY-START-->
|
<!--PRE-BODY-START-->
|
||||||
{{{ [prefix[{prebody}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{prebody}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
<!--PRE-BODY-END-->
|
<!--PRE-BODY-END-->
|
||||||
<div id="copyright">
|
<div id="copyright">
|
||||||
Welcome to TiddlyWiki created by Jeremy Ruston; Copyright © 2004-2007 Jeremy Ruston, Copyright © 2007-2011 UnaMesa Association
|
Welcome to TiddlyWiki created by Jeremy Ruston; Copyright © 2004-2007 Jeremy Ruston, Copyright © 2007-2011 UnaMesa Association
|
||||||
</div>
|
</div>
|
||||||
<noscript>
|
<noscript>
|
||||||
{{{ [prefix[{noscript}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{noscript}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="saveTest"></div>
|
<div id="saveTest"></div>
|
||||||
<div id="backstageCloak"></div>
|
<div id="backstageCloak"></div>
|
||||||
@ -46,39 +46,39 @@ Welcome to TiddlyWiki created by Jeremy Ruston; Copyright © 2004-2007 Jerem
|
|||||||
<div id="contentWrapper"></div>
|
<div id="contentWrapper"></div>
|
||||||
<div id="contentStash"></div>
|
<div id="contentStash"></div>
|
||||||
<div id="shadowArea">
|
<div id="shadowArea">
|
||||||
{{{ [prefix[{shadow}]] +[sortcs[title]] ||$:/core/templates/html-div-tiddler-remove-prefix}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{shadow}]] +[sortcs[title]] ||$:/core/templates/html-div-tiddler-remove-prefix}}}
|
||||||
</div>
|
</div>
|
||||||
<!--POST-SHADOWAREA-->
|
<!--POST-SHADOWAREA-->
|
||||||
<div id="storeArea">
|
<div id="storeArea">
|
||||||
{{{ [prefix[{tiddler}]] +[sortcs[title]] ||$:/core/templates/html-div-tiddler-remove-prefix}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{tiddler}]] +[sortcs[title]] ||$:/core/templates/html-div-tiddler-remove-prefix}}}
|
||||||
{{{ [prefix[{plugin}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{plugin}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
{{{ [prefix[{posttiddlers}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{posttiddlers}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
</div>
|
</div>
|
||||||
<!--POST-STOREAREA-->
|
<!--POST-STOREAREA-->
|
||||||
<!--POST-BODY-START-->
|
<!--POST-BODY-START-->
|
||||||
{{{ [prefix[{postbody}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{postbody}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
<!--POST-BODY-END-->
|
<!--POST-BODY-END-->
|
||||||
<script id="jsArea" type="text/javascript">
|
<script id="jsArea" type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
{{{ [prefix[{prejs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{prejs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
{{{ [prefix[{js}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{js}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
{{{ [prefix[{postjs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{postjs}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
{{{ [prefix[{jsext}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{jsext}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
<script id="jsdeprecatedArea" type="text/javascript">
|
<script id="jsdeprecatedArea" type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
{{{ [prefix[{jsdeprecated}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{jsdeprecated}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
<script id="jslibArea" type="text/javascript">
|
<script id="jslibArea" type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
{{{ [prefix[{jslib}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{jslib}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
<script id="jqueryArea" type="text/javascript">
|
<script id="jqueryArea" type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
{{{ [prefix[{jquery}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{jquery}]] ||$:/core/templates/plain-text-tiddler-strip-comments}}}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -88,7 +88,7 @@ if(useJavaSaver)
|
|||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
<!--POST-SCRIPT-START-->
|
<!--POST-SCRIPT-START-->
|
||||||
{{{ [prefix[{postscript}]] ||$:/core/templates/plain-text-tiddler}}}
|
{{{ [list[$:/RecipeTiddlers]prefix[{postscript}]] ||$:/core/templates/plain-text-tiddler}}}
|
||||||
<!--POST-SCRIPT-END-->
|
<!--POST-SCRIPT-END-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user