Sha256: 2d1c7a6c0e53184ec0a460684d437fe15caef4322149d939a992046479933f79

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

module GraphQLDocs
  module Configuration
    GRAPHQLDOCS_DEFAULTS = {
      # Client
      access_token: nil,
      login: nil,
      password: nil,
      path: nil,
      url: nil,

      # Generating
      delete_output: false,
      output_dir: './output/',
      pipeline_config: {
        pipeline:
          %i(ExtendedMarkdownFilter
           EmojiFilter
           TableOfContentsFilter),
        context: {
          gfm: false,
          asset_root: 'https://a248.e.akamai.net/assets.github.com/images/icons'
        }
      },
      renderer: GraphQLDocs::Renderer,
      use_default_styles: true,
      base_url: '',

      templates: {
        default: "#{File.dirname(__FILE__)}/layouts/default.html",

        includes: "#{File.dirname(__FILE__)}/layouts/includes",
        objects: "#{File.dirname(__FILE__)}/layouts/graphql_objects.html",
        mutations: "#{File.dirname(__FILE__)}/layouts/graphql_mutations.html",
        interfaces: "#{File.dirname(__FILE__)}/layouts/graphql_interfaces.html",
        enums: "#{File.dirname(__FILE__)}/layouts/graphql_enums.html",
        unions: "#{File.dirname(__FILE__)}/layouts/graphql_unions.html",
        input_objects: "#{File.dirname(__FILE__)}/layouts/graphql_input_objects.html",
        scalars: "#{File.dirname(__FILE__)}/layouts/graphql_scalars.html",

        index: "#{File.dirname(__FILE__)}/layouts/index.md",
      },

      classes: {
        field_entry: '',
        deprecation_notice: ''
      }
    }.freeze
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graphql-docs-0.4.1 lib/graphql-docs/configuration.rb
graphql-docs-0.4.0 lib/graphql-docs/configuration.rb
graphql-docs-0.3.0 lib/graphql-docs/configuration.rb