Build a structure for documentation