From 6392ee3a404520e4335af8111cffa5853bfe3cbb Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Mon, 28 Feb 2022 11:15:38 -0500 Subject: [PATCH] [DOCS] Add redirects for authentication and migration guide (#1634) (#1640) * [DOCS] Add redirects for authentication and migration guide * Update auth refs (cherry picked from commit 6d2774d2a055f361254b966ff6da39d56340e410) --- docs/basic-config.asciidoc | 3 +-- docs/connecting.asciidoc | 4 ++-- docs/index.asciidoc | 1 + docs/redirects.asciidoc | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 docs/redirects.asciidoc diff --git a/docs/basic-config.asciidoc b/docs/basic-config.asciidoc index 363326f20..536dfead4 100644 --- a/docs/basic-config.asciidoc +++ b/docs/basic-config.asciidoc @@ -48,8 +48,7 @@ node: { |`auth` a|Your authentication data. You can use both basic authentication and {ref}/security-api-create-api-key.html[ApiKey]. + -See https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/auth-reference.html[Authentication] -for more details. + +See <> for more details. + _Default:_ `null` Basic authentication: diff --git a/docs/connecting.asciidoc b/docs/connecting.asciidoc index 57510ae12..282e12512 100644 --- a/docs/connecting.asciidoc +++ b/docs/connecting.asciidoc @@ -6,14 +6,14 @@ This page contains the information you need to connect and use the Client with **On this page** -* <> +* <> * <> * <> * <> * <> * <> -[[auth-reference]] +[[authentication]] [discrete] === Authentication diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 9997b4ab9..f57b2f8d5 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -19,3 +19,4 @@ include::typescript.asciidoc[] include::reference.asciidoc[] include::examples/index.asciidoc[] include::helpers.asciidoc[] +include::redirects.asciidoc[] diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc new file mode 100644 index 000000000..f2d0aecbb --- /dev/null +++ b/docs/redirects.asciidoc @@ -0,0 +1,17 @@ +["appendix",role="exclude",id="redirects"] += Deleted pages + +The following pages have moved or been deleted. + +[role="exclude",id="auth-reference"] +== Authentication + +This page has moved. See <>. + +[role="exclude",id="breaking-changes"] +== Breaking changes + +For information about migrating from the legacy elasticsearch.js client to the +new Elasticsearch JavaScript client, refer to the +https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/7.17/breaking-changes.html[7.17 +JavaScript client migration guide].