Sha256: fef751f8d54301dd934258b326e285c7181be6be29ffa05a0baf6145f058ce41

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 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",
      }
    }.freeze
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graphql-docs-0.2.2 lib/graphql-docs/configuration.rb
graphql-docs-0.2.1 lib/graphql-docs/configuration.rb
graphql-docs-0.2.0 lib/graphql-docs/configuration.rb