Skip to content

Commit

Permalink
Updates documentation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Mar 24, 2021
1 parent 45d437e commit fc38322
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions x-pack/plugins/runtime_fields/public/lib/documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
import { DocLinksStart } from 'src/core/public';

export const getLinks = (docLinks: DocLinksStart) => {
const { DOC_LINK_VERSION, ELASTIC_WEBSITE_URL } = docLinks;
const docsBase = `${ELASTIC_WEBSITE_URL}guide/en`;
const esDocsBase = `${docsBase}/elasticsearch/reference/${DOC_LINK_VERSION}`;
const painlessDocsBase = `${docsBase}/elasticsearch/painless/${DOC_LINK_VERSION}`;

return {
runtimePainless: `${esDocsBase}/runtime.html#runtime-mapping-fields`,
painlessSyntax: `${painlessDocsBase}/painless-lang-spec.html`,
runtimePainless: docLinks.links.runtimeFields.mapping,
painlessSyntax: docLinks.links.scriptedFields.painlessLangSpec,
};
};

0 comments on commit fc38322

Please sign in to comment.