繁体   English   中英

GitLab Pages CI hugo with asciidoctor(低维护)

[英]GitLab Pages CI hugo with asciidoctor (low maintenance)

使用 GitLab 页面构建带有 asciidoc 页面的 Hugo 站点(使用 asciidoctor)的最佳低维护/面向未来的方法是什么。

DockerHub上有一些镜像,但是它们没有可靠的维护。

理想情况下,我认为最好将 GitLab Pages 图像用于 hugo(扩展)并安装 asciidoctor gem。

好的,步骤如下:

  1. 安装 ruby
  2. 宝石安装 asciidoctor
  3. 白名单 asciidoctor

前两个在 gitlab-ci.yml 中执行,最后一步在 config.toml 中执行。

演示: https://gitlab.com/bquast1/bquast1.gitlab.io

对白名单 asciidoctor 的安全策略更改位于 config.toml 文件的末尾。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM