import * as fs from 'fs' ; import * as path from 'path' ; import moment from 'moment' ; const getHeaderString = ( ) => `---
id: uiMlApi
slug: /ml-team/docs/ui/rest-api/ml-api
title: ML API reference
description: Reference documentation for the ML API.
date: ${ moment ( ) . format ( 'YYYY-MM-DD' ) }
tags: ['machine learning','internal docs', 'UI']
---` ; fs . writeFileSync ( path . resolve ( __dirname , '..' , 'header.md' ) , getHeaderString ( ) ) ;