Set cache path for open-uri

This commit is contained in:
Gabriel Arazas 2023-06-18 18:12:59 +08:00
parent 869181bafa
commit 0758726908

View File

@ -2,6 +2,7 @@
require 'asciidoctor'
require 'asciidoctor/extensions'
require 'open-uri/cached'
require_relative 'helpers'
@ -21,6 +22,8 @@ require_relative 'musicbrainz-link-inline-macro/extension'
require_relative 'flathub-link-inline-macro/extension'
require_relative 'repology-link-inline-macro/extension'
OpenURI::Cache.cache_path = '/tmp/open-uri-cache-foodogsquared-website'
Asciidoctor::Extensions.register do
inline_macro ManInlineMacro
block ChatBlock if @document.basebackend? 'html'