带有 netlify 的 Asciidoc hugo 站点
Asciidoc hugo site with netlify
我想构建一个包含 asciidoc 内容的 hugo 站点并将其托管在 netlify 中。在我的 windows 机器上安装 ascii 和 asciidoctor 后,我能够 运行 在本地访问该站点。
gem install asciidoc
gem install asciidoc
在此之前,我的控制台出现以下错误,浏览器中没有任何内容。
ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
8:35:09 AM: ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
8:35:09 AM: ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
现在 我在 netlify 站点构建中遇到同样的错误,并且在部署过程中失败。
有人可以建议任何遗漏的额外设置或配置吗?
确保将 /Gemfile
和 /Gemfile.lock
添加到 asciidoc
的项目根目录中。 Netlify 使用它们来确定构建需要包含 Ruby。
Gemfile
(例子)
source 'https://rubygems.org'
gem 'asciidoc'
您可以在本地使用 bundle install
从 Gemfile
创建 Gemfile.lock
$ gem install bundler
$ bundle install
您还可以通过 /.ruby-version
文件设置 Ruby 版本。 See docs for supported Ruby versions on Netlify.
我想构建一个包含 asciidoc 内容的 hugo 站点并将其托管在 netlify 中。在我的 windows 机器上安装 ascii 和 asciidoctor 后,我能够 运行 在本地访问该站点。
gem install asciidoc
gem install asciidoc
在此之前,我的控制台出现以下错误,浏览器中没有任何内容。
ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
8:35:09 AM: ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
8:35:09 AM: ERROR 2018/11/11 03:05:08 asciidoctor / asciidoc not found in $PATH: Please install.
8:35:09 AM: Leaving AsciiDoc content unrendered.
现在 我在 netlify 站点构建中遇到同样的错误,并且在部署过程中失败。
有人可以建议任何遗漏的额外设置或配置吗?
确保将 /Gemfile
和 /Gemfile.lock
添加到 asciidoc
的项目根目录中。 Netlify 使用它们来确定构建需要包含 Ruby。
Gemfile
(例子)
source 'https://rubygems.org'
gem 'asciidoc'
您可以在本地使用 bundle install
从 Gemfile
Gemfile.lock
$ gem install bundler
$ bundle install
您还可以通过 /.ruby-version
文件设置 Ruby 版本。 See docs for supported Ruby versions on Netlify.