
本Docker镜像基于Asciidoctor工具链,专注于将Asciidoc格式文件转换为开放文档格式(如ODT)。通过容器化方式提供独立运行环境,避免本地依赖配置,简化文档格式转换流程,适用于需要快速、标准化处理Asciidoc文档的场景。
通过挂载本地目录并执行转换命令:
bashdocker run --rm -v $(pwd):/documents courseorchestra/asciidoctor-open-document \ asciidoctor -r asciidoctor-open-document -b odt input.adoc -o output.odt
参数说明:
-v $(pwd):/documents:将当前目录挂载到容器内的/documents目录--rm:容器运行结束后自动删除asciidoctor:Asciidoctor主命令-r asciidoctor-open-document:加载Open Document转换插件-b odt:指定输出格式为ODTinput.adoc:输入的Asciidoc文件路径(相对于挂载目录)-o output.odt:指定输出文件路径(相对于挂载目录)转换当前目录下所有.adoc文件:
bashdocker run --rm -v $(pwd):/documents courseorchestra/asciidoctor-open-document \ sh -c "for file in *.adoc; do asciidoctor -r asciidoctor-open-document -b odt \$file -o \${file%.adoc}.odt; done"
可通过Asciidoctor命令行参数调整转换行为,常用参数包括:
-a toc:生成目录-a numbered:对章节进行编号-a icons=font:使用字体图标--attribute=stylesheet=custom.css:应用自定义样式表详细参数可参考Asciidoctor官方文档
项目源代码及详细文档:https://github.com/CourseOrchestra/asciidoctor-open-document


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务