2021-07-20 21:11:49 +00:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
set theme themes/medium.css
|
2021-07-20 21:11:49 +00:00
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
# get title
|
|
|
|
set title (readable $argv --properties "title")
|
2021-07-20 21:11:49 +00:00
|
|
|
|
|
|
|
echo "title: " $title
|
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
# pulldown html page
|
|
|
|
readable $argv --output originals/$title.html
|
2021-07-20 21:11:49 +00:00
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
pandoc --self-contained -f html -t html -c $theme -o reader/$title.html originals/$title.html
|
2021-07-20 21:11:49 +00:00
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
pandoc -f html -t markdown_github-raw_html -o markdown/$title.md originals/$title.html
|
2021-07-20 21:11:49 +00:00
|
|
|
|
2021-07-20 23:04:39 +00:00
|
|
|
pandoc -f html -t epub -o epubs/$title.epub originals/$title.html
|