Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pre_process_pipeline.rb « pipeline « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50dc978b452be25ff29e5178aa153a2e31e7ae76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Banzai
  module Pipeline
    class PreProcessPipeline < BasePipeline
      def self.filters
        FilterArray[
          Filter::YamlFrontMatterFilter
        ]
      end

      def self.transform_context(context)
        context.merge(
          pre_process: true
        )
      end
    end
  end
end