Skip to content

Commit

Permalink
Merge pull request #4565 from EnterpriseDB/docs/josh/missing-redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer authored Aug 14, 2023
2 parents 528c775 + 1a8333d commit 1c89038
Show file tree
Hide file tree
Showing 1,133 changed files with 1,763 additions and 1,071 deletions.
2 changes: 2 additions & 0 deletions advocacy_docs/migrating/oracle/migration_journey.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: The database migration “journey”
redirects:
- /migration_toolkit/latest/03_migration_methodology/
---

Migrating your database consists of a nine-step “journey.”
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Configuring Commvault Backup & Recovery'
description: 'Walkthrough on configuring Commvault Backup & Recovery'
redirects:
- /partner_docs/CommVaultGuide/04-ConfiguringCommvaultBackupandRecovery/
---

Implementing Commvault Backup & Recovery with an EDB database requires the following components:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Using Commvault Backup & Recovery'
description: 'Walkthroughs of multiple Commvault Backup & Recovery usage scenarios'
redirects:
- /partner_docs/CommVaultGuide/05-UsingCommvaultBackupandRecovery/
---

How to backup and restore an EDB Database using Commvault Backup & Recovery.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Commvault Backup & Recovery Implementation Guide'
indexCards: simple
directoryDefaults:
iconName: handshake
iconName: handshake
---

<p align="center">
Expand Down
2 changes: 2 additions & 0 deletions advocacy_docs/partner_docs/DBeaverPRO/03-SolutionSummary.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Solution Summary'
description: 'Explanation of the solution and its purpose'
redirects:
- /partner_docs/DBeaverGuide/03-SolutionSummary/
---

DBeaver PRO is a SQL client software application and universal database management tool for EDB Postgres Advanced Server, EDB Postgres Extended Server and PostgreSQL. With DBeaver PRO you can manipulate your data like you would in a regular spreadsheet. You have the ability to view, create, modify, save, and delete all Postgres data types. The features resemble those of a regular spreadsheet, as you can create analytical reports based on records from different data storages and export information in an appropriate format. DBeaver PRO also provides you with a powerful editor for SQL, data and schema migration, monitoring of database connection sessions, and other administration features.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Solution Summary'
description: 'Brief explanation of the solution and its purpose'
redirects:
- /partner_docs/LiquibaseGuide/03-SolutionSummary/
---
Easily track, version, and deploy EDB Postgres Advanced Server schema changes with Liquibase. Liquibase enables your team to deploy safer, faster, automated database releases across all your environments. Liquibase integrates with most application build and deployment tools to help track, version, and deploy EDB Postgres Advanced Server database changes.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Solution Summary'
description: 'Brief explanation of the solution and its purpose'
redirects:
- /partner_docs/ToadEdgeGuide/03-SolutionSummary/
---

Quest Toad Edge is a lightweight and reliable desktop database toolset that streamlines development and management tasks for EDB Postgres Advanced Server and EDB Postgres Extended Server. Its flexibility lies in it being built on Java and its ability to work with both Windows and Mac operating systems. Toad Edge supports coding, editing, schema compare and sync and DevOps CI processes, so you can manage EDB Postgres Advanced Server and EDB Postgres Extended Server.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Certification Environment'
description: 'Overview of the certification environment used in the certification of Quest Toad Edge'
redirects:
- /partner_docs/ToadEdgeGuide/06-CertificationEnvironment/
---

| &nbsp; | &nbsp; |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: 'Partner Information'
description: 'Details for Repostor Data Protector for PostgreSQL'

redirects:
- /partner_docs/RepostorGuide/02-PartnerInformation/
---

| &nbsp; | &nbsp; |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Certification Environment'
description: 'Overview of the certification environment used in the certification of Repostor Data Protector for PostgreSQL'
redirects:
- /partner_docs/RepostorGuide/06-CertificationEnvironment/
---

| &nbsp; | &nbsp; |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: 'Repostor Data Protector for PostgresSQL Implementation Guide'
indexCards: simple
directoryDefaults:
iconName: handshake
redirects:
- /partner_docs/RepostorGuide/
---

<p align="center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Solution Summary'
description: 'Brief explanation of the solution and its purpose'
redirects:
- /partner_docs/SIBVisionsVisionXGuide/03-SolutionSummary/
---
SIB Visions VisionX is a flexible and independent low-code platform, enabling both business users and professional developers to visually develop web, desktop and native mobile applications quickly. These can be very simple applications that replace paper processes or Excel sheets, easy-to-use forms on ERP systems, dashboards, mobile apps, and even highly complex billing applications, customer portals or trading systems.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: 'Partner Information'
description: 'Details for Veritas NetBackup for PostgreSQL'

redirects:
- /partner_docs/VeritasGuide/02-PartnerInformation/
---
| &nbsp; | &nbsp; |
| ----------- | ----------- |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 'Solution Summary'
description: 'Brief explanation of the solution and its purpose'
redirects:
- /partner_docs/VeritasGuide/03-SolutionSummary/
---
NetBackup provides a non-distruptive way of validating your resiliency plan for assurance and compliance through automated recovery and rehearsal of business-critical applications. Moving data and spinning up applications when and where you need to without risking data loss requires business-level resiliency. Veritas NetBackup for PostgreSQL Agent extends the capabilities of NetBackup to include backup and restore of PostgreSQL databases. If a NetBackup environment is operational within an organization, then users can backup and restore EDB Postgres Advanced Server and EDB Postgres Extended Server with the help of Veritas NetBackup for PostgreSQL Agent.

Expand Down
52 changes: 35 additions & 17 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const {
treeToNavigation,
treeNodeToNavNode,
findPrevNextNavNodes,
preprocessPathsAndRedirects,
configureRedirects,
configureLegacyRedirects,
readFile,
Expand Down Expand Up @@ -223,6 +224,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {

const { nodes } = result.data.allMdx;
const productVersions = buildProductVersions(nodes);
const validPaths = preprocessPathsAndRedirects(nodes, productVersions);

processFileNodes(result.data.allPublicFile.nodes, productVersions, actions);

Expand Down Expand Up @@ -296,33 +298,53 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
docType === "doc"
? productVersions[node.fields.product][0] === node.fields.version
: false;

// all versions for this path.
// Null entries for versions that don't exist. Will try to match redirects to avoid this, but won't follow redirect chains
// Canonical version is the first non-null in the list, e.g. pathVersions.filter((p) => !!p)[0]
const allPaths = [node.fields.path, ...(node.frontmatter?.redirects || [])];
const pathVersions = (productVersions[node.fields.product] || []).map(
(v, i) => {
const versionPaths = allPaths.map((p) => replacePathVersion(p, v));
const match = versionPaths.find((vp) => validPaths.has(vp));
if (!match) return null;
return i === 0 ? replacePathVersion(match) : match;
},
);

configureRedirects(
node.fields.path,
isLatest,
node.frontmatter.redirects,
actions,
isLatest,
pathVersions,
);

if (docType === "doc") {
createDoc(navTree, prevNext, node, productVersions, actions);
createDoc(
navTree,
prevNext,
node,
productVersions,
pathVersions,
actions,
);
} else if (docType === "advocacy") {
createAdvocacy(navTree, prevNext, node, learn, actions);
}
}
};

const createDoc = (navTree, prevNext, doc, productVersions, actions) => {
const createDoc = (
navTree,
prevNext,
doc,
productVersions,
pathVersions,
actions,
) => {
const isLatest =
productVersions[doc.fields.product][0] === doc.fields.version;
if (isLatest) {
actions.createRedirect({
fromPath: doc.fields.path,
toPath: replacePathVersion(doc.fields.path),
redirectInBrowser: true,
isPermanent: false,
force: true,
});
}

// configure legacy redirects
if (!doc.frontmatter.productStub) {
Expand Down Expand Up @@ -369,11 +391,7 @@ const createDoc = (navTree, prevNext, doc, productVersions, actions) => {
githubEditLink: githubEditLink,
githubIssuesLink: githubIssuesLink,
isIndexPage: isIndexPage,
potentialLatestPath: replacePathVersion(doc.fields.path), // the latest url for this path (may not exist!)
potentialLatestNodePath: replacePathVersion(
doc.fields.path,
productVersions[doc.fields.product][0],
), // the latest version number path (may not exist!), needed for query
pathVersions,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ deployPath: jdbc_connector/{{ product.version }}/installing/index.mdx
redirects:
- /jdbc_connector/latest/04_installing_and_configuring_the_jdbc_connector/
- /jdbc_connector/latest/04_installing_and_configuring_the_jdbc_connector/01_installing_the_connector_with_an_rpm_package/
- /jdbc_connector/latest/04_installing_and_configuring_the_jdbc_connector/01_installing_the_connector_with_an_rpm_package/x86_amd64/04_jdbc42_centos7_x86/
- /jdbc_connector/latest/04_installing_and_configuring_the_jdbc_connector/01_installing_the_connector_with_an_rpm_package/x86_amd64/08_jdbc42_ubuntu18_deb9_x86/
legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/jdbc-connector/user-guides/jdbc-guide/42.2.12.3/installing_and_configuring_the_jdbc_connector.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ title: Installing {{ product.name }}
{% block frontmatter %}
deployPath: ocl_connector/{{ product.version }}/installing/index.mdx
redirects:
- /ocl_connector/latest/04_open_client_library/01_installing_and_configuring_the_ocl_connector/
- /ocl_connector/latest/04_open_client_library/01_installing_and_configuring_the_ocl_connector/install_on_linux_using_edb_repo/
- /ocl_connector/{{ product.version }}/04_open_client_library/01_installing_and_configuring_the_ocl_connector/
- /ocl_connector/{{ product.version }}/04_open_client_library/01_installing_and_configuring_the_ocl_connector/install_on_linux_using_edb_repo/
- /ocl_connector/{{ product.version }}/04_open_client_library/01_installing_and_configuring_the_ocl_connector/install_on_linux_using_edb_repo/11_updating_rpm_install/
- /ocl_connector/{{ product.version }}/04_open_client_library/01_installing_and_configuring_the_ocl_connector/install_on_linux_using_edb_repo/ibm_power_ppc64le/07_ocl_connector14_rhel8_ppcle/
- /ocl_connector/{{ product.version }}/04_open_client_library/01_installing_and_configuring_the_ocl_connector/install_on_linux_using_edb_repo/x86_amd64/06_ocl_connector14_ubuntu18_deb9_x86/

{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ title: Installing {{ product.name }}
deployPath: odbc_connector/{{ product.version }}/installing/index.mdx
redirects:
- ../03_edb-odbc_overview/01_installing_edb-odbc
- /odbc_connector/latest/03_installing_edb_odbc/
- /odbc_connector/latest/03_installing_edb_odbc/01_installing_linux/
- /odbc_connector/{{ product.version }}/03_installing_edb_odbc/
- /odbc_connector/{{ product.version }}/03_installing_edb_odbc/01_installing_linux/
- /odbc_connector/{{ product.version }}/03_installing_edb_odbc/14_installing_windows/
- /odbc_connector/{{ product.version }}/03_installing_edb_odbc/01_installing_linux/07_odbc13_ubuntu20_deb10_x86/
- /odbc_connector/{{ product.version }}/03_installing_edb_odbc/01_installing_linux/ibm_power_ppc64le/12_odbc13_sles12_ppcle/
{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
5 changes: 4 additions & 1 deletion install_template/templates/products/edb-pgbouncer/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#}
deployPath: pgbouncer/{{ product.version }}/installing/linux_{{platform.arch}}/pgbouncer_{{deploy.map_platform[platform.name]}}.mdx
redirects:
- pgbouncer/{{ product.version }}/01_installation/install_on_linux/{{deploy.expand_arch[platform.arch]}}/pgbouncer_{{deploy.map_platform_old[platform.name]}}_{{platform.arch | replace(r/_?64/g, "")}}.mdx
- /pgbouncer/{{ product.version }}/01_installation/install_on_linux/{{deploy.expand_arch[platform.arch]}}/pgbouncer_{{deploy.map_platform_old[platform.name]}}_{{platform.arch | replace(r/_?64/g, "")}}.mdx
- /pgbouncer/{{ product.version }}/01_installation/02_installing_pgbouncer_on_a_debian_or_ubuntu_host/
- /pgbouncer/{{ product.version }}/01_installation/install_on_linux/ibm_power_ppc64le/09_pgbouncer_rhel8_ppcle/

{% endblock frontmatter %}

{% block product_prerequisites %}{% include "platformBase/_epasinstallsameserver.njk" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: Installing {{ product.name }} on Linux
deployPath: pgpool/{{ product.version }}/installing_extensions/index.mdx
redirects:
- /pgpool/latest/02_extensions/
- /pgpool/latest/02_extensions/ibm_power_ppc64le/12_pgpoolext_sles12_ppcle/
legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/pgpool-ii/user-guides/pgpool-ii-guide/1.0/extensions.html"
Expand Down
3 changes: 3 additions & 0 deletions install_template/templates/products/edb-pgpool-ii/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{{super()}}
redirects:
- /pgpool/latest/01_installing_and_configuring_the_pgpool-II/
- /pgpool/latest/01_installing_and_configuring_the_pgpool-II/ibm_power_ppc64le/12_pgpool_sles12_ppcle/
- /pgpool/latest/01_installing_and_configuring_the_pgpool-II/x86_amd64/03_pgpool_rhel7_x86/
- /pgpool/latest/01_installing_and_configuring_the_pgpool-II/x86_amd64/08_pgpool_ubuntu18_deb9_x86/
legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/pgpool-ii/user-guides/pgpool-ii-guide/1.0/installing_and_configuring_the_pgpool-II.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
deployPath: epas/{{ product.version }}/installing/linux_{{platform.arch}}/epas_{{deploy.map_platform[platform.name]}}.mdx
redirects:
- epas/{{ product.version }}/epas_inst_linux/installing_epas_using_edb_repository/{{deploy.expand_arch[platform.arch]}}/epas_{{deploy.map_platform_old[platform.name]}}_{{platform.arch | replace(r/_?64/g, "")}}.mdx
- epas/{{ product.version }}/epas_inst_linux/installing_epas_using_edb_repository/{{platform.arch | replace(r/_?64/g, "")}}/epas_{{deploy.map_platform_old[platform.name]}}_{{platform.arch | replace(r/_?64/g, "")}}.mdx
{% endblock frontmatter %}
{% block postgresqlalternative %}{% endblock postgresqlalternative %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ title: Installing {{ product.name }}
redirects:
- /epas/{{product.version}}/epas_inst_linux/
- /epas/{{product.version}}/epas_inst_linux/installing_epas_using_edb_repository/
- /epas/{{product.version}}/epas_inst_linux/03_using_a_package_manager_to_install_advanced_server/
{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
17 changes: 14 additions & 3 deletions install_template/templates/products/failover-manager/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@
{% block frontmatter %}
{{ super() }}
redirects:
- ../efm_user/03_installing_efm
- 13_initial_config
- /efm/latest/03_installing_efm/
- ../efm_user/03_installing_efm
- 13_initial_config
- /efm/4/03_installing_efm/
- /efm/4.0/efm_user/02_failover_manager_overview/01_prerequisites/
- /efm/4/03_installing_efm/x86_amd64/08_efm4_deb9_x86/
- /efm/4/03_installing_efm/02_efm4_other_linux8_x86/
- /efm/4/03_installing_efm/04_efm4_centos7_x86/
- /efm/4/03_installing_efm/13_initial_config/
- /efm/4/03_installing_efm/ibm_power_pcc64le/12_efm4_sles12_ppcle/
- /efm/4/03_installing_efm/ibm_power_ppc64le/09_efm4_rhel8_ppcle/
- /efm/4/03_installing_efm/ibm_power_ppc64le/11_efm4_sles15_ppcle/
- /efm/4/03_installing_efm/x86_amd64/04_efm4_centos7_x86/
- /efm/4/03_installing_efm/x86_amd64/efm4_deb10_x86/

legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/edb-postgres-failover-manager/user-guides/user-guide/4.0/installing_efm.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
{% block frontmatter %}
deployPath: hadoop_data_adapter/{{ product.version }}/installing/index.mdx
redirects:
- /hadoop_data_adapter/latest/05_installing_the_hadoop_data_adapter/
- /hadoop_data_adapter/{{ product.version }}/05_installing_the_hadoop_data_adapter/
- /hadoop_data_adapter/{{ product.version }}/05_installing_the_hadoop_data_adapter/04_hadoop_centos7_x86/
- /hadoop_data_adapter/{{ product.version }}/05_installing_the_hadoop_data_adapter/19_hadoop_sles12_ppcle/
- /hadoop_data_adapter/{{ product.version }}/05_installing_the_hadoop_data_adapter/x86_amd64/01_hadoop_rhel8_x86/
- /hadoop_data_adapter/{{ product.version }}/05_installing_the_hadoop_data_adapter/x86_amd64/02_hadoop_other_linux8_x86/
{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ title: Installing {{ product.name }}
{% block frontmatter %}
deployPath: migration_toolkit/{{ product.version }}/installing/index.mdx
redirects:
- /migration_toolkit/latest/05_installing_mtk/install_on_linux
- /migration_toolkit/latest/05_installing_mtk
- /migration_toolkit/{{ product.version }}/05_installing_mtk/install_on_linux
- /migration_toolkit/{{ product.version }}/05_installing_mtk
- /migration_toolkit/{{ product.version }}/05_installing_mtk/install_on_linux_using_edb_repo/03_mtk55_rhel7_x86/
- /migration_toolkit/{{ product.version }}/05_installing_mtk/install_on_linux/ibm_power_ppc64le/11_mtk55_sles15_ppcle/

legacyRedirects:
- "/edb-docs/d/edb-postgres-migration-toolkit/user-guides/user-guide/55.0.0/installing_on_mac.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
{% block frontmatter %}
deployPath: mongo_data_adapter/{{ product.version }}/installing/index.mdx
redirects:
- /mongo_data_adapter/latest/04_installing_the_mongo_data_adapter/
- /mongo_data_adapter/{{ product.version }}/04_installing_the_mongo_data_adapter/
- /mongo_data_adapter/{{ product.version }}/04_installing_the_mongo_data_adapter/04_mongo_centos7_x86/
- /mongo_data_adapter/{{ product.version }}/04_installing_the_mongo_data_adapter/09_mongo_ubuntu20_deb10_x86/
- /mongo_data_adapter/{{ product.version }}/04_installing_the_mongo_data_adapter/ibm_power_ppc64le/17_mongo_sles15_ppcle/
- /mongo_data_adapter/{{ product.version }}/04_installing_the_mongo_data_adapter/x86_amd64/07_mongo_sles12_x86/

{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
{% block frontmatter %}
deployPath: mysql_data_adapter/{{ product.version }}/installing/index.mdx
redirects:
- /mysql_data_adapter/latest/04_installing_the_mysql_data_adapter/
- /mysql_data_adapter/{{ product.version }}/04_installing_the_mysql_data_adapter/
- /mysql_data_adapter/{{ product.version }}/04_installing_the_mysql_data_adapter/02_mysql_other_linux8_x86/
- /mysql_data_adapter/{{ product.version }}/04_installing_the_mysql_data_adapter/07_mysql_sles12_x86/
- /mysql_data_adapter/{{ product.version }}/04_installing_the_mysql_data_adapter/x86_amd64/09b_mysql_deb10_x86/
{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
2 changes: 2 additions & 0 deletions install_template/templates/products/postgis/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ title: Installing {{ product.name }}
{% block frontmatter %}
{{super()}}
redirects:
- /postgis/latest/01_installing_postgis/
- /postgis/latest/01a_installing_postgis/
- /postgis/latest/01a_installing_postgis/installing_on_linux/
- /postgis/latest/01a_installing_postgis/installing_on_linux/x86_amd64/01_postgis_rhel8_x86/
{% endblock frontmatter %}
{% block navigation %}
- linux_x86_64
Expand Down
Loading

1 comment on commit 1c89038

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.