Skip to content

Commit

Permalink
Update serverless link targets (#199396)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1391019)
  • Loading branch information
lcawl committed Nov 8, 2024
1 parent 02d2022 commit 4cc8d30
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
const WORKPLACE_SEARCH_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/workplace-search/${DOC_LINK_VERSION}/`;
const SEARCH_UI_DOCS = `${DOCS_WEBSITE_URL}search-ui/`;
const MACHINE_LEARNING_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/`;
const SERVERLESS_DOCS = `${DOCS_WEBSITE_URL}serverless/`;
const SERVERLESS_ELASTICSEARCH_DOCS = `${SERVERLESS_DOCS}elasticsearch/`;
const SERVERLESS_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/serverless/current/`;
const SEARCH_LABS_REPO = `${ELASTIC_GITHUB}elasticsearch-labs/`;

return deepFreeze({
Expand Down Expand Up @@ -72,7 +71,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
},
console: {
guide: `${KIBANA_DOCS}console-kibana.html`,
serverlessGuide: `${SERVERLESS_ELASTICSEARCH_DOCS}dev-tools-console`,
serverlessGuide: `${SERVERLESS_DOCS}devtools-run-api-requests-in-the-console.html`,
},
dashboard: {
guide: `${KIBANA_DOCS}dashboard.html`,
Expand Down Expand Up @@ -847,32 +846,32 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
elasticsearch: `${SEARCH_UI_DOCS}tutorials/elasticsearch`,
},
serverlessClients: {
clientLib: `${SERVERLESS_ELASTICSEARCH_DOCS}clients`,
goApiReference: `${SERVERLESS_ELASTICSEARCH_DOCS}go-client-getting-started`,
goGettingStarted: `${SERVERLESS_ELASTICSEARCH_DOCS}go-client-getting-started`,
httpApis: `${SERVERLESS_ELASTICSEARCH_DOCS}http-apis`,
httpApiReferences: `${SERVERLESS_ELASTICSEARCH_DOCS}http-apis`,
jsApiReference: `${SERVERLESS_ELASTICSEARCH_DOCS}nodejs-client-getting-started`,
jsGettingStarted: `${SERVERLESS_ELASTICSEARCH_DOCS}nodejs-client-getting-started`,
phpApiReference: `${SERVERLESS_ELASTICSEARCH_DOCS}php-client-getting-started`,
phpGettingStarted: `${SERVERLESS_ELASTICSEARCH_DOCS}php-client-getting-started`,
pythonApiReference: `${SERVERLESS_ELASTICSEARCH_DOCS}python-client-getting-started`,
pythonGettingStarted: `${SERVERLESS_ELASTICSEARCH_DOCS}python-client-getting-started`,
pythonReferences: `${SERVERLESS_ELASTICSEARCH_DOCS}python-client-getting-started`,
rubyApiReference: `${SERVERLESS_ELASTICSEARCH_DOCS}ruby-client-getting-started`,
rubyGettingStarted: `${SERVERLESS_ELASTICSEARCH_DOCS}ruby-client-getting-started`,
clientLib: `${SERVERLESS_DOCS}elasticsearch-clients.html`,
goApiReference: `${SERVERLESS_DOCS}elasticsearch-go-client-getting-started.html`,
goGettingStarted: `${SERVERLESS_DOCS}elasticsearch-go-client-getting-started.html`,
httpApis: `${SERVERLESS_DOCS}elasticsearch-http-apis.html`,
httpApiReferences: `${SERVERLESS_DOCS}elasticsearch-http-apis.html`,
jsApiReference: `${SERVERLESS_DOCS}elasticsearch-nodejs-client-getting-started.html`,
jsGettingStarted: `${SERVERLESS_DOCS}elasticsearch-nodejs-client-getting-started.html`,
phpApiReference: `${SERVERLESS_DOCS}elasticsearch-php-client-getting-started.html`,
phpGettingStarted: `${SERVERLESS_DOCS}elasticsearch-php-client-getting-started.html`,
pythonApiReference: `${SERVERLESS_DOCS}elasticsearch-python-client-getting-started.html`,
pythonGettingStarted: `${SERVERLESS_DOCS}elasticsearch-python-client-getting-started.html`,
pythonReferences: `${SERVERLESS_DOCS}elasticsearch-python-client-getting-started.html`,
rubyApiReference: `${SERVERLESS_DOCS}elasticsearch-ruby-client-getting-started.html`,
rubyGettingStarted: `${SERVERLESS_DOCS}elasticsearch-ruby-client-getting-started.html`,
},
serverlessSearch: {
integrations: `${SERVERLESS_ELASTICSEARCH_DOCS}ingest-your-data`,
integrationsLogstash: `${SERVERLESS_ELASTICSEARCH_DOCS}ingest-data-through-logstash`,
integrationsBeats: `${SERVERLESS_ELASTICSEARCH_DOCS}ingest-data-through-beats`,
integrationsConnectorClient: `${SERVERLESS_ELASTICSEARCH_DOCS}ingest-your-data`,
gettingStartedExplore: `${SERVERLESS_ELASTICSEARCH_DOCS}get-started`,
gettingStartedIngest: `${SERVERLESS_ELASTICSEARCH_DOCS}get-started`,
gettingStartedSearch: `${SERVERLESS_ELASTICSEARCH_DOCS}get-started`,
integrations: `${SERVERLESS_DOCS}elasticsearch-ingest-your-data.html`,
integrationsLogstash: `${SERVERLESS_DOCS}elasticsearch-ingest-data-through-logstash.html`,
integrationsBeats: `${SERVERLESS_DOCS}elasticsearch-ingest-data-through-beats.html`,
integrationsConnectorClient: `${SERVERLESS_DOCS}elasticsearch-ingest-data-through-integrations-connector-client.html`,
gettingStartedExplore: `${SERVERLESS_DOCS}elasticsearch-get-started.html`,
gettingStartedIngest: `${SERVERLESS_DOCS}elasticsearch-get-started.html`,
gettingStartedSearch: `${SERVERLESS_DOCS}elasticsearch-get-started.html`,
},
serverlessSecurity: {
apiKeyPrivileges: `${SERVERLESS_DOCS}api-keys#restrict-privileges`,
apiKeyPrivileges: `${SERVERLESS_DOCS}api-keys.html#api-keys-restrict-privileges`,
},
synthetics: {
featureRoles: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-feature-roles.html`,
Expand Down

0 comments on commit 4cc8d30

Please sign in to comment.