def METHOD_NAME(self, models: Sequence[Union[ASTNeuron, ASTSynapse]]) -> None:
    """
    Generate model documentation and index page for each neuron and synapse that is provided.
    """
    if not os.path.isdir(FrontendConfiguration.get_target_path()):
        os.makedirs(FrontendConfiguration.get_target_path())
    neurons = [model for model in models if isinstance(model, ASTNeuron)]
    synapses = [model for model in models if isinstance(model, ASTSynapse)]
    self.generate_index(neurons, synapses)
    self.generate_neurons(neurons)
    self.generate_synapses(synapses)
    for astnode in neurons + synapses:
        if Logger.has_errors(astnode):
            raise Exception("Error(s) occurred during code generation")