Sha256: f2ae1dfa6394844838fb3bb3cd4aabc6f4846050b656e55d470b3c17434fb41e

Contents?: true

Size: 1.63 KB

Versions: 10

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 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

10 entries across 10 versions & 1 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/jazzy.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/jazzy.rb