Method: Jazzy::SourceKitten.subdir_for_doc

Defined in:
lib/jazzy/sourcekitten.rb

.subdir_for_doc(doc) ⇒ Object

Determine the subdirectory in which a doc should be placed. Guides in the root for back-compatibility. Declarations under outer namespace type (Structures, Classes, etc.)



119
120
121
122
123
124
125
126
# File 'lib/jazzy/sourcekitten.rb', line 119

def self.subdir_for_doc(doc)
  if Config.instance.multiple_modules?
    subdir_for_doc_multi_module(doc)
  else
    # Back-compatibility layout version
    subdir_for_doc_single_module(doc)
  end
end