切換搜尋
搜尋
切換選單
4
1
140
H.-H.'s Wiki
導覽
首頁
近期變更
隨機頁面
上傳檔案
維基相關
作者簡介
風格指南
關於本站
切換偏好設定選單
通知
切換個人選單
尚未登入
若您做出任何編輯,會公開您的 IP 位址。
user-interface-preferences
個人工具
登入
檢視 TiddlyWiki 的原始碼
出自H.-H.'s Wiki
分享此頁面
更多操作
←
TiddlyWiki
由於以下原因,您無權編輯此頁面:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
== 部署服務 == <syntaxhighlight lang="javascript"> const tw = require('tiddlywiki').TiddlyWiki(); tw.boot.argv = ["wiki", "--listen", "credentials=../users.csv", "readers=(anon)", "writers=(authenticated)", "admin=H.-H."]; tw.boot.boot(); </syntaxhighlight> == 使用技巧 == === 建立日誌條目時,自動設定類型 === 在安裝完 <code>Markdown</code> 插件後,可以將 Tiddler 的類型設置為 <code>text/markdown</code> 來使用 Markdown 語法進行編輯,然而 TiddlyWiki 核心組件 <code>Core</code> 中所提供的 "建立一個新的日誌條目(Create a new journal tiddler)" 按鈕,並不會預設類型為 <code>text/markdown</code> 而需要手動設定。 如果要變更建立日誌條目時的行為,可以編輯 <code>$:/core/ui/Actions/new-journal</code> 條目:<syntaxhighlight lang="tid"> \whitespace trim \function get-tags() [<textFieldTags>] [<tagsFieldTags>] +[join[ ]] <$let journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}> <$wikify name="journalTitle" text="<$transclude $variable='now' format=<<journalTitleTemplate>>/>"> <$reveal type="nomatch" state=<<journalTitle>> text=""> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text={{{ [<journalTitle>get[]] }}} type="text/markdown"/> </$reveal> <$reveal type="match" state=<<journalTitle>> text=""> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>> type="text/markdown"/> </$reveal> </$wikify> </$let> </syntaxhighlight>亦即在原有的基礎上,在 <code><$action-sendmessage></code> 中添加 <code>type="text/markdown"</code> 設定。
返回到「
TiddlyWiki
」。
檢視 TiddlyWiki 的原始碼
出自H.-H.'s Wiki