mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Set cache path for open-uri
This commit is contained in:
parent
f4ffa5e821
commit
5ade8dd120
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: open-uri-content-cache
|
key: open-uri-content-cache
|
||||||
path: |
|
path: |
|
||||||
/tmp/open-uri-*
|
/tmp/open-uri-cache-foodogsquared-website
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
require 'asciidoctor'
|
require 'asciidoctor'
|
||||||
require 'asciidoctor/extensions'
|
require 'asciidoctor/extensions'
|
||||||
|
require 'open-uri/cached'
|
||||||
|
|
||||||
require_relative 'helpers'
|
require_relative 'helpers'
|
||||||
|
|
||||||
@ -21,6 +22,8 @@ require_relative 'musicbrainz-link-inline-macro/extension'
|
|||||||
require_relative 'flathub-link-inline-macro/extension'
|
require_relative 'flathub-link-inline-macro/extension'
|
||||||
require_relative 'repology-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
|
Asciidoctor::Extensions.register do
|
||||||
inline_macro ManInlineMacro
|
inline_macro ManInlineMacro
|
||||||
block ChatBlock if @document.basebackend? 'html'
|
block ChatBlock if @document.basebackend? 'html'
|
||||||
|
Loading…
Reference in New Issue
Block a user