source/readers/read-components.js
function readComponents(
  componentPath,
  referenceFile, localeFile, layoutSegment, contentSegment,
  filingCabinet, renderer
) {
  logger.showInfo( '*** Reading components...' );

  // Initialize the store.
  getComponents(
    componentPath, 0, '',
    referenceFile, localeFile, layoutSegment, contentSegment,
    filingCabinet.references,
    filingCabinet.documents,
    filingCabinet.layouts,
    filingCabinet.segments,
    filingCabinet.locales,
    renderer, ''
  );
}
function readComponents(
  componentPath,
  referenceFile, localeFile, layoutSegment, contentSegment,
  filingCabinet, renderer
) {
  logger.showInfo( '*** Reading components...' );

  // Initialize the store.
  getComponents(
    componentPath, 0, '',
    referenceFile, localeFile, layoutSegment, contentSegment,
    filingCabinet.references,
    filingCabinet.documents,
    filingCabinet.layouts,
    filingCabinet.segments,
    filingCabinet.locales,
    renderer, ''
  );
}
function readComponents ( componentPath , referenceFile , localeFile , layoutSegment , contentSegment , filingCabinet , renderer ) { logger . showInfo ( '*** Reading components...' ) ; // Initialize the store. getComponents ( componentPath , 0 , '' , referenceFile , localeFile , layoutSegment , contentSegment , filingCabinet . references , filingCabinet . documents , filingCabinet . layouts , filingCabinet . segments , filingCabinet . locales , renderer , '' ) ; }
Reads all components.
@param {string} componentPath - The path of the components directory.
@param {string} referenceFile - The name of the reference files.
@param {string} localeFile - The name of the default locale file.
@param {string} layoutSegment - The name of the layout segment.
@param {string} contentSegment - The name of the layout segment.
@param {FilingCabinet} filingCabinet - The file manager object.
@param {marked.Renderer} renderer - The custom markdown renderer.
Reads all components .