Sha256: 827f539c61a581e41456f8ecce9b74c20514b8fd06f2fd60199981c663e21d8f

Contents?: true

Size: 818 Bytes

Versions: 1

Compression:

Stored size: 818 Bytes

Contents

# frozen_string_literal: true

require "bridgetown"
require "bridgetown_linkchecker/builder"

# @param config [Bridgetown::Configuration::ConfigurationDSL]
Bridgetown.initializer :bridgetown_linkchecker do |config|
  # Add code here which will run when a site includes
  # `init :bridgetown_linkchecker`
  # in its configuration

  # Add default configuration data:
  config.bridgetown_linkchecker ||= {}
  config.bridgetown_linkchecker.my_setting ||= 123

  # Register your builder:
  config.builder BridgetownLinkchecker::Builder

  # You can optionally supply a source manifest:
  config.source_manifest(
    origin: BridgetownLinkchecker,
    components: File.expand_path("../components", __dir__),
    layouts: File.expand_path("../layouts", __dir__),
    content: File.expand_path("../content", __dir__)
  )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bridgetown_linkchecker-0.1.0 lib/bridgetown_linkchecker.rb