1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

Adjust build scripts to save favicon.ico from wiki

And add file type information for `image/x-icon`
This commit is contained in:
Jermolene 2013-12-18 17:27:10 +00:00
parent f3b2788ed1
commit 07dd524016
5 changed files with 5 additions and 8 deletions

View File

@ -26,10 +26,6 @@ rem Delete any existing content
del /q /s %TW5_BUILD_OUTPUT%\static
rem Copy the favicon
copy favicon.ico %TW5_BUILD_OUTPUT%\favicon.ico
rem The tw5.com wiki
rem index.html: the main file, including content
rem empty.html: the main file, excluding content
@ -39,6 +35,7 @@ node .\tiddlywiki.js ^
.\editions\tw5.com ^
--verbose ^
--rendertiddler $:/core/save/all %TW5_BUILD_OUTPUT%\index.html text/plain ^
--savetiddler $:/favicon.ico %TW5_BUILD_OUTPUT%\favicon.ico ^
--rendertiddler ReadMe .\readme.md text/html ^
--rendertiddler ContributingTemplate .\contributing.md text/html ^
--rendertiddler $:/editions/tw5.com/download-empty %TW5_BUILD_OUTPUT%\empty.html text/plain ^

5
bld.sh
View File

@ -27,10 +27,6 @@ mkdir -p $TW5_BUILD_OUTPUT/static
rm $TW5_BUILD_OUTPUT/static/*
# Copy the favicon
cp favicon.ico $TW5_BUILD_OUTPUT/favicon.ico
# The tw5.com wiki
# index.html: the main file, including content
# empty.html: the main file, excluding content
@ -40,6 +36,7 @@ node ./tiddlywiki.js \
./editions/tw5.com \
--verbose \
--rendertiddler $:/core/save/all $TW5_BUILD_OUTPUT/index.html text/plain \
--savetiddler $:/favicon.ico $TW5_BUILD_OUTPUT/favicon.ico \
--rendertiddler ReadMe ./readme.md text/html \
--rendertiddler ContributingTemplate ./contributing.md text/html \
--rendertiddler $:/editions/tw5.com/download-empty $TW5_BUILD_OUTPUT/empty.html text/plain \

View File

@ -1420,6 +1420,7 @@ $tw.boot.startup = function() {
$tw.utils.registerFileType("image/png","base64",".png");
$tw.utils.registerFileType("image/gif","base64",".gif");
$tw.utils.registerFileType("image/svg+xml","utf8",".svg");
$tw.utils.registerFileType("image/x-icon","base64",".ico");
$tw.utils.registerFileType("application/font-woff","base64",".woff");
// Create the wiki store for the app
$tw.wiki = new $tw.Wiki();

View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -0,0 +1,2 @@
title: $:/favicon.ico
type: image/x-icon