Sha256: 92e99c0198566b954118ddf92d6462ab731034860566a85f1519c6a62c2fcce4

Contents?: true

Size: 1.63 KB

Versions: 54

Compression:

Stored size: 1.63 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',
                                       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',
                                       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

54 entries across 54 versions & 4 rubygems

Version Path
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/jazzy.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.212.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.212.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.211.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.210.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.210.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.209.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.209.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.208.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.207.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.206.2 fastlane/lib/fastlane/actions/jazzy.rb