Skip to content

Commit

Permalink
404 redirects (#22166)
Browse files Browse the repository at this point in the history
* 404 redirects

* Apply suggestions from code review

Co-authored-by: Aishwarya Chakravarthy  <achakravarthy@yugabyte.com>

---------

Co-authored-by: Aishwarya Chakravarthy <achakravarthy@yugabyte.com>
  • Loading branch information
premkumr and aishwarya24 committed Apr 25, 2024
1 parent 352dad4 commit e0eea85
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ linkTitle: >
headerTitle: >
Case study: using aggregate functions to demonstrate the "68–95–99.7" rule
description: Case study to show the use of percentile_cont() to illustrate the well-known "68–95–99.7" rule about a normal distribution.
aliases:
- /preview/api/ysql/exprs/aggregate_functions/case-study-the-6895997-rule/
menu:
preview:
identifier: case-study-the-68–95–997-rule
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/architecture/query-layer/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: YQL - Query layer
description: Understand how a query is processed
image: fa-sharp fa-thin fa-language
aliases:
- /architecture/query-layer/overview/
- /preview/architecture/query-layer/overview/
menu:
preview:
identifier: architecture-query-layer
Expand Down
2 changes: 2 additions & 0 deletions docs/content/preview/deploy/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ headcontent: Deploy to the public cloud, a private data center, or Kubernetes
image: /images/section_icons/index/deploy.png
aliases:
- /deploy/
- /preview/architecture/layered-architecture/
- /preview/architecture/overview/
menu:
preview:
identifier: deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ headerTitle: Partition data by time
linkTitle: Partition data by time
description: Partition data for efficient data management
headcontent: Partition data for efficient data management
aliases:
- /preview/common-patterns/timeseries/partitioning-by-time/
menu:
preview:
identifier: timeseries-partition-by-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: Transaction retries in YSQL
headerTitle: Transaction retries in YSQL
linkTitle: Transaction retries
description: Learn how to retry transactions in YSQL.
aliases:
- /preview/develop/learn/transactions-retries-ysql/
menu:
preview:
identifier: transactions-retries-ysql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ headContent: xCluster unidirectional and bidirectional replication (2+ regions)
aliases:
- /preview/explore/two-data-centers-linux/
- /preview/explore/two-data-centers/macos/
- /preview/explore/multi-region-deployments/asynchronous-replication-ysql/
menu:
preview:
identifier: explore-multi-region-deployments-async-replication-1-ysql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ headcontent: Built-in server-side connection pooler for YSQL
techPreview: /preview/releases/versioning/#feature-availability
aliases:
- /preview/explore/connection-manager/connection-mgr-ysql/
- /preview/explore/connection-manager/
menu:
preview:
name: Built-in connection pooling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Enable users in YCQL
headerTitle: Enable users in YCQL
description: Enable users in YCQL.
aliases:
- /preview/secure/enable-authentication/ycql/
menu:
preview:
name: Enable users
Expand Down
2 changes: 2 additions & 0 deletions docs/content/preview/yedis/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ headerTitle: Yugabyte Dictionary Service (YEDIS)
description: (Deprecated) The YEDIS API allows YugabyteDB to function as a clustered, auto-sharded, globally distributed and persistent key-value database that is compatible with the Redis commands library.
headcontent:
image: /images/section_icons/api/yedis.png
aliases:
- /preview/secure/enable-authentication/yedis/
menu:
preview:
identifier: yedis
Expand Down
10 changes: 9 additions & 1 deletion docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
to = "https://docs-archive.yugabyte.com/v2.8/deploy/docker/docker-swarm/"
force = true

[[redirects]]
from = "/preview/admin/docker-compose/"
to = "/preview/quick-start/docker/"

##########################################################
# Move Hugo Aliases (that redirects using meta refresh tag)
##########################################################
Expand All @@ -92,6 +96,10 @@
from = "/architecture/core-functions/write-path/"
to = "/preview/architecture/core-functions/write-path/"

[[redirects]]
from = "/preview/architecture/core-functions/*"
to = "/preview/architecture/"

[[redirects]]
from = "/architecture/transactions/distributed-txns/"
to = "/preview/architecture/transactions/distributed-txns/"
Expand Down Expand Up @@ -630,7 +638,7 @@

[[redirects]]
from = "/latest/develop/*"
to = "/preview/develop/"
to = "/preview/develop/:splat"
force = true

[[redirects]]
Expand Down

0 comments on commit e0eea85

Please sign in to comment.