Sha256: aa68ff7f966207d117abbbc95beac4fef4a222f9dd1ba41f8b98848719fe0572

Contents?: true

Size: 1.57 KB

Versions: 15

Compression:

Stored size: 1.57 KB

Contents

module Fastlane
  module Actions
    class JazzyAction < Action
      def self.run(params)
        Actions.verify_gem!('jazzy')
        command = "jazzy"
        command << " --config #{params[:config]}" if params[:config]
        command << " --module-version #{params[:module_version]}" if params[:module_version]
        Actions.sh(command)
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Generate docs using Jazzy"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(
            key: :config,
            env_name: 'FL_JAZZY_CONFIG',
            description: 'Path to jazzy config file',
            is_string: true,
            optional: true
          ),
          FastlaneCore::ConfigItem.new(
            key: :module_version,
            env_name: 'FL_JAZZY_MODULE_VERSION',
            description: 'Version string to use as part of the the default docs title and inside the docset',
            is_string: true,
            optional: true
          )
        ]
      end

      def self.output
      end

      def self.return_value
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'jazzy',
          'jazzy(config: ".jazzy.yaml", module_version: "2.1.37")'
        ]
      end

      def self.category
        :documentation
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fastlane-2.185.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.185.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.184.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.184.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.183.2 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.183.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.183.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.182.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.181.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.180.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.180.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.179.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.178.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.177.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.176.0 fastlane/lib/fastlane/actions/jazzy.rb