mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-30 22:57:56 +00:00
Set cache path for open-uri
This commit is contained in:
parent
869181bafa
commit
0758726908
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user