Move yaml require from generator to document