LoginSignup
2
2

More than 5 years have passed since last update.

pandoc で Redmine の textile と平和に戦う

Posted at

Redmine の Textile 勢と平和に暮らすために、
Wiki用のリポジトリを建てて全て Markdown で記述したのち、
下記のコマンドを利用すれば良い。

Makefile
# markdown files
MARKDOWNS = $(wildcard *.md)
# converted textiles
TEXTILES = $(patsubst %.md,%.textile,$(MARKDOWNS))

all: $(TEXTILES)

README.textile: README.md
    @echo 'skipping README.textile conversion'

%.textile: %.md
    pandoc -s ./$< -o ./textile/$@

これで make コマンドを実行すれば自動的に /textile ディレクトリに変換済みのファイルが出力される。
ファイルの更新などを監視して自動実行するスクリプトと組み合わせるのも良いかもしれない。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2