s_ota on Nostr: 今日の勉強会で紹介された Mastering the Lightning Network ...
今日の勉強会で紹介された Mastering the Lightning Network のオンライン版はこんな感じで HTML/PDF/EPUB が作れました。
git clone
https://github.com/lnbook/lnbook.gitcd lnbook
docker pull asciidoctor/docker-asciidoctor:latest
docker run -it --rm -v $(PWD):/documents/ asciidoctor/docker-asciidoctor
apk add jq perl
cat atlas.json | jq -r .files[] | perl -nle 'print "= Mastering the Lightning Network\n" if $. eq 1; print "include::$_\[\]\n"' > book.asciidoc
asciidoctor book.asciidoc
asciidoctor-pdf book.asciidoc
asciidoctor-epub3 book.asciidoc
exit
open book.pdf
Published at
2023-04-12 16:30:06Event JSON
{
"id": "3bf03d109daa1693f6e57589358fdff80c3a4d8fe9489b439b54f581dcb320ce",
"pubkey": "8721cdf007e798f80549a4bf174b973dc388e01952f0a952f5473c2cf84a7f60",
"created_at": 1681317006,
"kind": 1,
"tags": [],
"content": "今日の勉強会で紹介された Mastering the Lightning Network のオンライン版はこんな感じで HTML/PDF/EPUB が作れました。\n\ngit clone https://github.com/lnbook/lnbook.git\ncd lnbook\ndocker pull asciidoctor/docker-asciidoctor:latest\ndocker run -it --rm -v $(PWD):/documents/ asciidoctor/docker-asciidoctor\napk add jq perl\ncat atlas.json | jq -r .files[] | perl -nle 'print \"= Mastering the Lightning Network\\n\" if $. eq 1; print \"include::$_\\[\\]\\n\"' \u003e book.asciidoc\nasciidoctor book.asciidoc\nasciidoctor-pdf book.asciidoc\nasciidoctor-epub3 book.asciidoc\nexit\nopen book.pdf\n",
"sig": "d277ce92fc6ee34b44fd251b656bbe69e9359fb7a0107c10c7eb31189a645cae02817dd3903dbf2a48b053c147fd29608da806756be4892e559d811c447e615f"
}