code: func (s *Site) reset() *Site {
  	return &Site{Deps: s.Deps,
  		layoutHandler:          output.NewLayoutHandler(),
  		disabledKinds:          s.disabledKinds,
  		titleFunc:              s.titleFunc,
  		relatedDocsHandler:     s.relatedDocsHandler.Clone(),
  		siteRefLinker:          s.siteRefLinker,
  		outputFormats:          s.outputFormats,
  		rc:                     s.rc,
  		outputFormatsConfig:    s.outputFormatsConfig,
  		frontmatterHandler:     s.frontmatterHandler,
  		mediaTypesConfig:       s.mediaTypesConfig,
  		language:               s.language,
  		h:                      s.h,
  		publisher:              s.publisher,
  		siteConfigConfig:       s.siteConfigConfig,
  		enableInlineShortcodes: s.enableInlineShortcodes,
  		buildStats:             &buildStats{},
  		init:                   s.init,
  		PageCollections:        newPageCollections(),
  		siteCfg:                s.siteCfg,
  	}
  
  }
docs: // reset returns a new Site prepared for rebuild.