Skip to content

n個のmdファイルをn個のhtmlファイルに変換する実験

License

Notifications You must be signed in to change notification settings

stakiran/test-pandoc-build-N-markdowns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-pandoc-build-N-markdowns

n個のmdファイルをn個のhtmlファイルに変換する実験 from レンダリングエンジンをPandocに変える - stakiran研究所

info

  • files/
    • 250個くらい
$ pandoc --version
pandoc 2.13
Compiled with pandoc-types 1.22, texmath 0.12.2, skylighting 0.10.5,
citeproc 0.3.0.9, ipynb 0.1.0.1

1

@echo off

setlocal
set selfdir=%~dp0
set targetdir=%selfdir%files

pushd %targetdir%
for %%f in (*.md) do (
	pandoc -f markdown+emoji -t html4 %%f -o %%f.html
)
popd
  • ❌ 駄目なところ
    • 遅い?
      • ssd + windows10 で 15 秒くらいかかった
      • 2500ファイルだと150秒
      • 5000ファイルだと300秒
      • 5分
      • jekyll よりは早いか
    • リンクが .md のまま
    • .md.html じゃなくて .html にしたいんだが、バッチファイルどう書く?
      • %%~nf.html

Q: Pandoc は multiple input files できないの?

無理そう。

ので、N-file あったら pandoc も N 回呼ぶことになる……

pandoc じゃないけどついでに mkdocs も試す

 not found in the documentation files.
WARNING -  Documentation file 'scrapboxで創作.md' contains a link to '知的生産者間のコミュニケ
ーション.md' which is not found in the documentation files.
INFO    -  Documentation built in 3.51 seconds

え、早い、良い。

About

n個のmdファイルをn個のhtmlファイルに変換する実験

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published