mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +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:
parent
f3b2788ed1
commit
07dd524016
5
bld.cmd
5
bld.cmd
@ -26,10 +26,6 @@ rem Delete any existing content
|
|||||||
|
|
||||||
del /q /s %TW5_BUILD_OUTPUT%\static
|
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 The tw5.com wiki
|
||||||
rem index.html: the main file, including content
|
rem index.html: the main file, including content
|
||||||
rem empty.html: the main file, excluding content
|
rem empty.html: the main file, excluding content
|
||||||
@ -39,6 +35,7 @@ node .\tiddlywiki.js ^
|
|||||||
.\editions\tw5.com ^
|
.\editions\tw5.com ^
|
||||||
--verbose ^
|
--verbose ^
|
||||||
--rendertiddler $:/core/save/all %TW5_BUILD_OUTPUT%\index.html text/plain ^
|
--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 ReadMe .\readme.md text/html ^
|
||||||
--rendertiddler ContributingTemplate .\contributing.md text/html ^
|
--rendertiddler ContributingTemplate .\contributing.md text/html ^
|
||||||
--rendertiddler $:/editions/tw5.com/download-empty %TW5_BUILD_OUTPUT%\empty.html text/plain ^
|
--rendertiddler $:/editions/tw5.com/download-empty %TW5_BUILD_OUTPUT%\empty.html text/plain ^
|
||||||
|
5
bld.sh
5
bld.sh
@ -27,10 +27,6 @@ mkdir -p $TW5_BUILD_OUTPUT/static
|
|||||||
|
|
||||||
rm $TW5_BUILD_OUTPUT/static/*
|
rm $TW5_BUILD_OUTPUT/static/*
|
||||||
|
|
||||||
# Copy the favicon
|
|
||||||
|
|
||||||
cp favicon.ico $TW5_BUILD_OUTPUT/favicon.ico
|
|
||||||
|
|
||||||
# The tw5.com wiki
|
# The tw5.com wiki
|
||||||
# index.html: the main file, including content
|
# index.html: the main file, including content
|
||||||
# empty.html: the main file, excluding content
|
# empty.html: the main file, excluding content
|
||||||
@ -40,6 +36,7 @@ node ./tiddlywiki.js \
|
|||||||
./editions/tw5.com \
|
./editions/tw5.com \
|
||||||
--verbose \
|
--verbose \
|
||||||
--rendertiddler $:/core/save/all $TW5_BUILD_OUTPUT/index.html text/plain \
|
--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 ReadMe ./readme.md text/html \
|
||||||
--rendertiddler ContributingTemplate ./contributing.md text/html \
|
--rendertiddler ContributingTemplate ./contributing.md text/html \
|
||||||
--rendertiddler $:/editions/tw5.com/download-empty $TW5_BUILD_OUTPUT/empty.html text/plain \
|
--rendertiddler $:/editions/tw5.com/download-empty $TW5_BUILD_OUTPUT/empty.html text/plain \
|
||||||
|
@ -1420,6 +1420,7 @@ $tw.boot.startup = function() {
|
|||||||
$tw.utils.registerFileType("image/png","base64",".png");
|
$tw.utils.registerFileType("image/png","base64",".png");
|
||||||
$tw.utils.registerFileType("image/gif","base64",".gif");
|
$tw.utils.registerFileType("image/gif","base64",".gif");
|
||||||
$tw.utils.registerFileType("image/svg+xml","utf8",".svg");
|
$tw.utils.registerFileType("image/svg+xml","utf8",".svg");
|
||||||
|
$tw.utils.registerFileType("image/x-icon","base64",".ico");
|
||||||
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
||||||
// Create the wiki store for the app
|
// Create the wiki store for the app
|
||||||
$tw.wiki = new $tw.Wiki();
|
$tw.wiki = new $tw.Wiki();
|
||||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
2
editions/tw5.com/tiddlers/images/favicon.ico.meta
Normal file
2
editions/tw5.com/tiddlers/images/favicon.ico.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
title: $:/favicon.ico
|
||||||
|
type: image/x-icon
|
Loading…
Reference in New Issue
Block a user