Skip to content

Commit a8c73ae

Browse files
Refactor URLs in includes (#9867)
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> (cherry picked from commit e45b796) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ee94f15 commit a8c73ae

File tree

7 files changed

+49
-248
lines changed

7 files changed

+49
-248
lines changed

_config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
title: OpenSearch Documentation
22
description: >- # this means to ignore newlines until "baseurl:"
33
Documentation for OpenSearch, the Apache 2.0 search, analytics, and visualization suite with advanced security, alerting, SQL support, automated index management, deep performance analysis, and more.
4-
baseurl: "/docs/latest" # the subpath of your site, e.g. /blog
4+
baseurl: "/docs/latest" # The subpath of the current version. This is version-specific. For example, for 2.19, the base URL is /docs/2.19.
5+
latesturl: "/docs/latest" # The subpath of the latest version. Used for non-version-specific documentation, like Data Prepper, etc.
56
url: "https://docs.opensearch.org" # the base hostname & protocol for your site, e.g. http://example.com
67
permalink: /:path/
78

_data/migration-assistant/breaking-changes.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ breaking_changes:
2222
introducedIn: "OpenSearch 1.3"
2323
comp: []
2424
- title: "OpenSearch 2.0: Remove mapping types parameter"
25-
url: "/docs/latest/breaking-changes/#remove-mapping-types-parameter"
25+
url: "https://docs.opensearch.org/docs/latest/breaking-changes/#remove-mapping-types-parameter"
2626
introducedIn: "OpenSearch 2.19"
2727
comp: []
2828
transformation:
2929
title: "Type Mapping Deprecation"
30-
url: "/docs/latest/migration-assistant/migration-phases/planning-your-migration/handling-type-mapping-deprecation/"
30+
url: "https://docs.opensearch.org/docs/latest/migration-assistant/migration-phases/planning-your-migration/handling-type-mapping-deprecation/"
3131
- title: "OpenSearch 3.0: Breaking Changes"
3232
url: "/docs/latest/breaking-changes/#300"
3333
introducedIn: "OpenSearch 3.0"
3434
comp: []
3535
- title: "OpenSearch Notifications Plugins"
36-
url: "/breaking-changes/#add-opensearch-notifications-plugins"
36+
url: "https://docs.opensearch.org/docs/latest/breaking-changes/#add-opensearch-notifications-plugins"
3737
introducedIn: "OpenSearch 2.19"
3838
comp: []
3939
- title: "OpenSearch 2.0: Client JDK 8 Support Dropped"
40-
url: "/docs/latest/breaking-changes/#drop-support-for-jdk-8"
40+
url: "https://docs.opensearch.org/docs/latest/breaking-changes/#drop-support-for-jdk-8"
4141
introducedIn: "OpenSearch 2.19"
4242
comp: []
4343
- title: "Removal of Types in Elasticsearch 7.x"
@@ -46,7 +46,7 @@ breaking_changes:
4646
comp: []
4747
transformation:
4848
title: "Type Mapping Deprecation"
49-
url: "/docs/latest/migration-assistant/migration-phases/planning-your-migration/handling-type-mapping-deprecation/"
49+
url: "https://docs.opensearch.org/docs/latest/migration-assistant/migration-phases/planning-your-migration/handling-type-mapping-deprecation/"
5050
- title: "Elasticsearch 6.0 - 6.6 Breaking Changes"
5151
url: "https://www.elastic.co/guide/en/elasticsearch/reference/6.8/breaking-changes.html"
5252
introducedIn: "Elasticsearch 6.8"

_data/top_nav.yml

+35-59
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,58 @@
11
items:
2-
- label: OpenSearchCon
3-
children:
4-
- label: 2024 Europe
5-
url: /events/opensearchcon/2024/europe/index.html
6-
- label: 2024 North America
7-
url: /events/opensearchcon/2024/north-america/index.html
8-
# children:
9-
# - label: Speakers
10-
# url: /events/opensearchcon/2024/north-america/speakers/index.html
11-
# - label: Sessions
12-
# url: /events/opensearchcon/2024/north-america/sessions/index.html
13-
# - label: Exhibitors
14-
# url: /events/opensearchcon/2024/north-america/exhibitors/index.html
15-
# - label: Workshops
16-
# url: /events/opensearchcon/2024/north-america/workshops/index.html
17-
# - label: Unconference
18-
# url: /events/opensearchcon/2024/north-america/unconference/index.html
19-
- label: 2024 India
20-
url: /events/opensearchcon/2024/india/index.html
21-
- label: Archive
22-
children:
23-
- label: 2023 North America
24-
url: /events/opensearchcon/2023/north-america/index.html
25-
- label: 2022 North America
26-
url: /events/opensearchcon/2022/north-america/index.html
27-
- label: Download
28-
url: /downloads.html
292
- label: About
30-
url: /about.html
3+
url: https://opensearch.org/about.html
314
children:
325
- label: Releases
33-
url: /releases.html
6+
url: https://opensearch.org/releases.html
347
- label: Roadmap
358
url: https://github.com/orgs/opensearch-project/projects/1
369
- label: FAQ
37-
url: /faq/
10+
url: https://opensearch.org/faq/
11+
- label: Platform
12+
url: https://opensearch.org/platform/index.html
13+
children:
14+
- label: Search
15+
url: https://opensearch.org/platform/search/index.html
16+
- label: Observability
17+
url: https://opensearch.org/platform/observability/index.html
18+
- label: Security Analytics
19+
url: https://opensearch.org/platform/security-analytics/index.html
20+
- label: Vector Database
21+
url: https://opensearch.org/platform/search/vector-database.html
22+
- label: Playground Demo
23+
url: https://playground.opensearch.org/
24+
- label: Performance Benchmarks
25+
url: https://opensearch.org/benchmarks/
3826
- label: Community
27+
url: https://opensearch.org/community/
3928
children:
40-
- label: Blog
41-
url: /blog/
4229
- label: Forum
4330
url: https://forum.opensearch.org/
4431
- label: Slack
45-
url: /slack.html
32+
url: https://opensearch.org/slack.html
4633
- label: Events
47-
url: /events
34+
url: https://opensearch.org/events/
4835
class_name: events-page-menu-link__device-based
49-
- label: Partners
50-
url: /partners/
36+
- label: Solutions Providers
37+
url: https://opensearch.org/solutions-providers/
5138
- label: Projects
52-
url: /community_projects/
39+
url: https://opensearch.org/community_projects/
5340
- label: Members
54-
url: /community/members/index.html
41+
url: https://opensearch.org/authors-list/
5542
- label: Documentation
56-
url: /docs/latest/
43+
url: https://docs.opensearch.org/docs/latest/
5744
children:
5845
- label: OpenSearch and Dashboards
59-
url: /docs/latest/about/
46+
url: https://docs.opensearch.org/docs/latest/about/
6047
- label: Data Prepper
61-
url: /docs/latest/data-prepper/
48+
url: https://docs.opensearch.org/docs/latest/data-prepper/
6249
- label: Clients
63-
url: /docs/latest/clients/
50+
url: https://docs.opensearch.org/docs/latest/clients/
6451
- label: Benchmark
65-
url: /docs/latest/benchmark/
52+
url: https://docs.opensearch.org/docs/latest/benchmark/
6653
- label: Migration Assistant
67-
url: /docs/latest/migration-assistant/
68-
- label: Platform
69-
url: /platform/index.html
70-
children:
71-
- label: Search
72-
url: /platform/search/index.html
73-
- label: Observability
74-
url: /platform/observability/index.html
75-
- label: Security Analytics
76-
url: /platform/security-analytics/index.html
77-
- label: Vector Database
78-
url: /platform/search/vector-database.html
79-
- label: Playground Demo
80-
url: https://playground.opensearch.org/
81-
- label: Performance Benchmarks
82-
url: /benchmarks/
54+
url: https://docs.opensearch.org/docs/latest/migration-assistant/
55+
- label: Blog
56+
url: https://opensearch.org/blog/
57+
- label: Download
58+
url: https://opensearch.org/downloads.html

_includes/head_custom.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% if jekyll.environment == "development" %}
1010
<script src="{{ '/assets/js/version-selector.js' | relative_url }}"></script>
1111
{% else %}
12-
<script src="{{ '/docs/latest/assets/js/version-selector.js' }}"></script>
12+
<script src="{{site.baseurl}}/assets/js/version-selector.js"></script>
1313
{% endif %}
1414

1515
<!-- Last-Modified: {% last_modified_at %} -->

_includes/home_cards.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@
3939
<div class="home-card-container">
4040

4141
<div class="home-card">
42-
<a href="{{site.url}}/docs/latest/data-prepper/" class='card-link'></a>
42+
<a href="{{site.url}}{{site.latesturl}}/data-prepper/" class='card-link'></a>
4343
<p class="heading">Data Prepper</p>
4444
<p class="description">Filter, mutate, and sample your data for ingestion into OpenSearch.</p>
4545
<p class="last-link" >Documentation &#x2192;</p>
4646
</div>
4747

4848
<div class="home-card">
49-
<a href="{{site.url}}/docs/latest/clients/" class='card-link'></a>
49+
<a href="{{site.url}}{{site.latesturl}}/clients/" class='card-link'></a>
5050
<p class="heading">Clients</p>
5151
<p class="description">Interact with OpenSearch from your application using language APIs.</p>
5252
<p class="last-link">Documentation &#x2192;</p>
5353
</div>
5454

5555

5656
<div class="home-card">
57-
<a href="{{site.url}}/docs/latest/benchmark/" class='card-link'></a>
57+
<a href="{{site.url}}{{site.latesturl}}/benchmark/" class='card-link'></a>
5858
<p class="heading">OpenSearch Benchmark</p>
5959
<p class="description">Measure OpenSearch cluster performance metrics.</p>
6060
<p class="last-link">Documentation &#x2192;</p>
6161
</div>
6262

6363
<div class="home-card">
64-
<a href="{{site.url}}/docs/latest/migration-assistant/" class='card-link'></a>
64+
<a href="{{site.url}}{{site.latesturl}}/migration-assistant/" class='card-link'></a>
6565
<p class="heading">Migration Assistant</p>
6666
<p class="description">Migrate to OpenSearch.</p>
6767
<p class="last-link">Documentation &#x2192;</p>

_includes/redesign_buttons.html

-176
This file was deleted.

0 commit comments

Comments
 (0)