Skip to content

Automated export of single file TiddlyWiki as static site with sitemap creation.

Notifications You must be signed in to change notification settings

yamato3010/TiddlyWikiBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TiddlyWiki Builder

概要

完全個人用なのでいろいろと適当。単一ファイル版のTiddlyWikiでの,静的サイト作成,及びサイトマップ作成までの手順を自動化します。TiddlyWiki Builderとかそれらしい名前がついているが,ただ作業を自動化しただけ・・・

要件

  • python3,Node,npm,tiddlywikiがインストール済みであること
  • macOSでの動作を想定
    • 他のOSで動作するかは未確認

動作確認済みの環境

  • Python v3.9.6
  • Node v18.13.0
  • npm v8.19.3
  • tiddlywiki v5.3.0

使用法

TW5-sitemapの用意・設定

dullroar氏作成のTW5-sitemapをダウンロードし,sitemapディレクトリをbuild.shinit.shがと同じディレクトリにコピーする。サイトマップの設定は,TW5-sitemapのREADMEを確認していただきたい。

tiddlywikiを初期化

sh init.sh

単一html版のTiddlyWikiをインポート

コンソールに表示されたアドレスにアクセスし,サイドバーの「Tools」タブの「import」ボタンを押下し,静的サイト化したいhtmlファイルを選択する。インポート後,コンソールに戻り,control+cでサーバを終了する。

ビルド

sh build.sh

2つのshファイルを実行後,新たに作成されたmyfirstwiki/output/ディレクトリ内に,サイトマップとHTMLファイルが生成されているはず。

About

Automated export of single file TiddlyWiki as static site with sitemap creation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published