website/gems/lib/asciidoctor/foodogsquared-extensions.rb

58 lines
1.8 KiB
Ruby
Raw Normal View History

2023-03-06 17:04:21 +00:00
# frozen_string_literal: true
require 'asciidoctor'
require 'asciidoctor/extensions'
2023-06-18 10:12:59 +00:00
require 'open-uri/cached'
require_relative 'helpers'
require_relative 'man-inline-macro/extension'
2023-03-05 01:47:44 +00:00
require_relative 'swhid-inline-macro/extension'
2023-03-11 08:34:12 +00:00
require_relative 'swhid-include-processor/extension'
2023-03-06 04:04:04 +00:00
require_relative 'github-link-inline-macro/extension'
require_relative 'github-raw-content-include-processor/extension'
2023-03-05 06:57:10 +00:00
require_relative 'gitlab-link-inline-macro/extension'
require_relative 'gitlab-raw-content-include-processor/extension'
2023-04-03 15:35:18 +00:00
require_relative 'chat-block-processor/extension'
require_relative 'git-blob-include-processor/extension'
2023-04-06 21:58:50 +00:00
require_relative 'wikipedia-inline-macro/extension'
require_relative 'package-indices-link-macro/extension'
2023-05-27 08:16:12 +00:00
require_relative 'fdroid-link-inline-macro/extension'
2023-05-27 08:24:10 +00:00
require_relative 'musicbrainz-link-inline-macro/extension'
2023-05-27 10:53:34 +00:00
require_relative 'flathub-link-inline-macro/extension'
2023-05-27 09:24:17 +00:00
require_relative 'repology-link-inline-macro/extension'
2023-06-18 10:12:59 +00:00
OpenURI::Cache.cache_path = '/tmp/open-uri-cache-foodogsquared-website'
Asciidoctor::Extensions.register do
inline_macro ManInlineMacro
2023-04-03 15:35:18 +00:00
block ChatBlock if @document.basebackend? 'html'
2023-03-05 01:47:44 +00:00
inline_macro SWHInlineMacro
2023-03-11 08:34:12 +00:00
include_processor SWHIDIncludeProcessor
2023-03-06 04:04:04 +00:00
inline_macro GitHubLinkInlineMacro
include_processor GitHubRawIncludeProcessor
2023-03-05 06:57:10 +00:00
inline_macro GitLabLinkInlineMacro
include_processor GitLabRawIncludeProcessor
2023-04-06 21:58:50 +00:00
include_processor GitBlobIncludeProcessor
preprocessor GitContentBranchAttributePreprocessor
2023-04-06 21:58:50 +00:00
inline_macro WikipediaInlineMacro
2023-05-27 10:53:34 +00:00
# Package indices
inline_macro CtanLinkInlineMacro
inline_macro PypiLinkInlineMacro
inline_macro CratesIOLinkInlineMacro
2023-05-27 10:53:34 +00:00
# App stores
2023-05-27 08:16:12 +00:00
inline_macro FDroidLinkInlineMacro
2023-05-27 10:53:34 +00:00
inline_macro FlathubLinkInlineMacro
2023-05-27 08:24:10 +00:00
2023-05-27 10:53:34 +00:00
# Databases
2023-05-27 08:24:10 +00:00
inline_macro MusicBrainzLinkInlineMacro
2023-05-27 09:24:17 +00:00
inline_macro RepologyLinkInlineMacro
end