asciidoctor-foodogsquared-e.../lib/asciidoctor/foodogsquared-extensions.rb

42 lines
1.3 KiB
Ruby
Raw Normal View History

2023-03-06 17:04:21 +00:00
# frozen_string_literal: true
require 'asciidoctor'
require 'asciidoctor/extensions'
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'
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
inline_macro CtanLinkInlineMacro
inline_macro PypiLinkInlineMacro
inline_macro CratesIOLinkInlineMacro
end