Function to create a config.yml from the html and same to file