2023-03-06 17:04:21 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-02-25 04:11:54 +00:00
|
|
|
require 'asciidoctor'
|
|
|
|
require 'asciidoctor/extensions'
|
2023-04-03 15:34:59 +00:00
|
|
|
|
|
|
|
require_relative 'helpers'
|
|
|
|
|
2023-02-25 04:11:54 +00:00
|
|
|
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'
|
2023-03-05 01:48:11 +00:00
|
|
|
require_relative 'github-raw-content-include-processor/extension'
|
2023-03-05 06:57:10 +00:00
|
|
|
require_relative 'gitlab-link-inline-macro/extension'
|
2023-03-06 15:51:56 +00:00
|
|
|
require_relative 'gitlab-raw-content-include-processor/extension'
|
2023-04-03 15:35:18 +00:00
|
|
|
require_relative 'chat-block-processor/extension'
|
2023-04-06 22:20:00 +00:00
|
|
|
require_relative 'git-blob-include-processor/extension'
|
2023-04-06 21:58:50 +00:00
|
|
|
require_relative 'wikipedia-inline-macro/extension'
|
2023-05-10 16:07:45 +00:00
|
|
|
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 09:24:17 +00:00
|
|
|
require_relative 'repology-link-inline-macro/extension'
|
2023-02-25 04:11:54 +00:00
|
|
|
|
|
|
|
Asciidoctor::Extensions.register do
|
|
|
|
inline_macro ManInlineMacro
|
2023-04-03 15:35:18 +00:00
|
|
|
block ChatBlock if @document.basebackend? 'html'
|
2023-03-06 15:51:56 +00:00
|
|
|
|
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 15:51:56 +00:00
|
|
|
|
2023-03-06 04:04:04 +00:00
|
|
|
inline_macro GitHubLinkInlineMacro
|
2023-03-05 01:48:11 +00:00
|
|
|
include_processor GitHubRawIncludeProcessor
|
2023-03-06 15:51:56 +00:00
|
|
|
|
2023-03-05 06:57:10 +00:00
|
|
|
inline_macro GitLabLinkInlineMacro
|
2023-03-06 15:51:56 +00:00
|
|
|
include_processor GitLabRawIncludeProcessor
|
2023-04-06 21:58:50 +00:00
|
|
|
|
2023-04-06 22:20:00 +00:00
|
|
|
include_processor GitBlobIncludeProcessor
|
|
|
|
preprocessor GitContentBranchAttributePreprocessor
|
|
|
|
|
2023-04-06 21:58:50 +00:00
|
|
|
inline_macro WikipediaInlineMacro
|
2023-05-10 16:07:45 +00:00
|
|
|
|
|
|
|
inline_macro CtanLinkInlineMacro
|
|
|
|
inline_macro PypiLinkInlineMacro
|
|
|
|
inline_macro CratesIOLinkInlineMacro
|
2023-05-27 08:16:12 +00:00
|
|
|
inline_macro FDroidLinkInlineMacro
|
2023-05-27 08:24:10 +00:00
|
|
|
|
|
|
|
inline_macro MusicBrainzLinkInlineMacro
|
2023-05-27 09:24:17 +00:00
|
|
|
|
|
|
|
inline_macro RepologyLinkInlineMacro
|
2023-02-25 04:11:54 +00:00
|
|
|
end
|