# File lib/nanoc/base/compilation/compiler.rb, line 141
    def unload
      return if @unloading
      @unloading = true

      stores.each { |s| s.unload }

      @stack = []

      items.each { |item| item.reps.clear }
      site.teardown_child_parent_links
      rules_collection.unload

      site.unload

      @loaded = false
      @unloading = false
    end