配置方法
使用gem镜像源, 安装工具
asciidoctor-pdf
配置gem镜像源
- 查找默认源
gem sources
- 移除默认源
gem sources --remove https://rubygems.org/
- 添加新镜像源
gem sources -a https://mirrors.aliyun.com/rubygems/
安装工具 asciidoctor-pdf
- 使用gem命令安装asciidoctor pdf工具。
gem install asciidoctor-pdf
将adoc转换成pdf
- 转换成pdf
asciidoctor-pdf riscv-cc.adoc -o riscv-cc.pdf
- 使用evince 打开生成的pdf文件
evince riscv-cc.pdf
<