我想转换这本书的掌握雷电网络,它是免费提供通过GitHub到一个pdf供个人使用。
不幸的是,我只知道如何使用asciidoc或asciidoctor-pdf来“翻译”单个文件。文件夹的选项似乎不适用于存储库的配置。
必须有一个简单的方法来翻译所有的东西,包括所有的文件和图片。如果有人能帮我的话我会很感激的。
发布于 2022-03-04 08:23:18
据我所知,不可能将包含AsciiDoc文件的文件夹转换为pdf,一个简单的脚本可以做到这一点,但问题是您希望您的文件被转换成什么顺序?
对于您来说,最简单的解决方案是创建您自己的content.adoc文件,并使用include宏来选择您想要转换的文件以及按什么顺序转换,它可能如下所示:
= Mastering the Lightning Network
include::01_introduction.asciidoc[]
include::02_getting_started.asciidoc[]
include::03_how_ln_works.asciidoc[]
include::04_node_client.asciidoc[]
include::05_node_operations.asciidoc[]
include::06_lightning_architecture.asciidoc[]
include::07_payment_channels.asciidoc[]
include::08_routing_htlcs.asciidoc[]
include::09_channel_operation.asciidoc[]
include::10_onion_routing.asciidoc[]
include::11_gossip_channel_graph.asciidoc[]
include::12_path_finding.asciidoc[]
include::13_wire_protocol.asciidoc[]
include::14_encrypted_transport.asciidoc[]
include::15_payment_requests.asciidoc[]
include::16_security_privacy_ln.asciidoc[]
include::17_conclusion.asciidoc[]使用asciidoctor-pdf content.adoc进行转换
发布于 2022-02-10 15:43:22
您可以尝试使用imagemagick: magick *.jpg out.pdf
https://stackoverflow.com/questions/71067819
复制相似问题