message: Patch version file to support Docusaurus
  * Patch version file to support Docusaurus
  Move the `version.js` to `api` folder to match specification of the react component.
  * Fix file path for generated versions list
  * All Jeckyl related stuff removed.
diff: @@ -112,33 +112,12 @@ function getSortedApiVersions() {
  function writeVersions() {
  const apiVersions = getSortedApiVersions();
  fs.writeFileSync(
  - path.resolve('docs', '_data', 'versions.json'),
  - jsonStringify(apiVersions),
  + path.resolve('docs', 'api', 'versions.js'),
  + `export default ${jsonStringify(apiVersions)}`,
  'utf8'
  );
  }
  -function latestRedirectFrontMatter() {
  - return ['---', 'redirect_from: "/api/latest/"', '---'].join('\n');
  -}
  -
  -function addReferenceToLatest() {
  - transformFile(
  - path.resolve(path.resolve(apiDocPath, version), 'index.html'),
  - file => [latestRedirectFrontMatter(), file].join('\n')
  - );
  -}
  -
  -function removePreviousReferenceToLatest() {
  - const secondLastVersion = getSortedApiVersions()[1];
  - if (secondLastVersion) {
  - const filePath = path.resolve(apiDocPath, secondLastVersion, 'index.html');
  - transformFile(filePath, file =>
  - file.replace(latestRedirectFrontMatter(), '')
  - );
  - }
  -}
  -
  function validateLogs(generationLogs) {
  const invalidLinksMessage =
  'Found invalid symbol reference(s) in JSDocs, they will not render as links in the generated documentation.';
  @@ -156,8 +135,6 @@ function generateDocs() {
  validateLogs(generationLogs);
  adjustForGitHubPages();
  addCopyrightNotice();
  - addReferenceToLatest();
  - removePreviousReferenceToLatest();
  writeVersions();
  }
  