Skip to content

Commit

Permalink
Fix copy-paste errors for ODBC
Browse files Browse the repository at this point in the history
Differentiate nav titles for PEM, pgPool subsections
Add leaf template info to generated index files
  • Loading branch information
josh-heyer committed Mar 29, 2023
1 parent 97e6f04 commit 4fcc17f
Show file tree
Hide file tree
Showing 17 changed files with 71 additions and 5 deletions.
1 change: 1 addition & 0 deletions install_template/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ const generateContext = (product, platform, version) => {
* @param context An object passed into the nunjucks template which will be used to render some variable content.
*/
const writeDoc = (template, context) => {
context.leafTemplatePath = template;
const render = prettier.format(nunjucks.render(template, context), {
parser: "mdx",
});
Expand Down
3 changes: 3 additions & 0 deletions install_template/templates/platformBase/index.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
{% block title %}
navTitle: Installing
title: Installing {{ product.name }} on Linux
{% endblock title %}
# This topic is generated from templates. If you have feedback on it, instead of
# editing the page and creating a pull request, please enter a GitHub issue and
# the documentation team will update the templates accordingly.
# Leaf template: {{ leafTemplatePath }}
{% block frontmatter %}
deployPath: {{productShortname}}/{{ product.version }}/installing/index.mdx
{% endblock frontmatter %}
Expand Down
3 changes: 2 additions & 1 deletion install_template/templates/platformBase/ppc64le_index.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Installing {{ product.name }} on IBM Power (ppc64le)"
title: "Installing {{ product.name }} on Linux IBM Power (ppc64le)"
navTitle: "On Linux ppc64le"
# This topic is generated from templates. If you have feedback on it, instead of
# editing the page and creating a pull request, please enter a GitHub issue and
# the documentation team will update the templates accordingly.
# Leaf template: {{ leafTemplatePath }}
{% block frontmatter %}
deployPath: {{productShortname}}/{{ product.version }}/installing/linux_ppc64le/index.mdx
{% endblock frontmatter %}
Expand Down
3 changes: 2 additions & 1 deletion install_template/templates/platformBase/x86_64_index.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Installing {{ product.name }} on x86 (amd64)"
title: "Installing {{ product.name }} on Linux x86 (amd64)"
navTitle: "On Linux x86"
# This topic is generated from templates. If you have feedback on it, instead of
# editing the page and creating a pull request, please enter a GitHub issue and
# the documentation team will update the templates accordingly.
# Leaf template: {{ leafTemplatePath }}
{% block frontmatter %}
deployPath: {{productShortname}}/{{ product.version }}/installing/linux_x86_64/index.mdx
{% endblock frontmatter %}
Expand Down
5 changes: 5 additions & 0 deletions install_template/templates/products/edb*plus/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="edbplus" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: edb_plus/{{ product.version }}/installing/index.mdx
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="jdbc" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: jdbc_connector/{{ product.version }}/installing/index.mdx
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="ocl" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: ocl_connector/{{ product.version }}/installing/index.mdx
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="odbc" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: odbc_connector/{{ product.version }}/installing/index.mdx
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

{% extends "platformBase/x86_64_index.njk" %}
{% set productShortname="hadoop" %}
{% set productShortname="odbc" %}

{% block frontmatter %}
deployPath: odbc_connector/{{ product.version }}/installing/linux_x86_64/index.mdx
redirects:
- /hadoop_data_adapter/latest/05_installing_the_hadoop_data_adapter/x86_amd64/
{% endblock frontmatter %}
- /odbc_connector/latest/03_installing_edb_odbc/01_installing_linux/x86_amd64/
{% endblock frontmatter %}
5 changes: 5 additions & 0 deletions install_template/templates/products/edb-pgbouncer/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="pgbouncer" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
{{super()}}
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="pgpoolext" %}

{% block title %}
navTitle: Installing extensions
title: Installing {{ product.name }} on Linux
{% endblock title %}

{% block frontmatter %}
deployPath: pgpool/{{ product.version }}/installing_extensions/index.mdx
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="epas" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
{{super()}}
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="mtk" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: migration_toolkit/{{ product.version }}/installing/index.mdx
redirects:
Expand Down
5 changes: 5 additions & 0 deletions install_template/templates/products/postgis/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="postgis" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
{{super()}}
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="pem_agent" %}

{% block title %}
navTitle: Installing the PEM agent
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
deployPath: pem/{{ product.version }}/installing_pem_agent/index.mdx
{% endblock frontmatter %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="pem" %}

{% block title %}
navTitle: Installing the PEM server
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
{{super()}}
redirects:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "platformBase/index.njk" %}
{% set productShortname="eprs" %}

{% block title %}
navTitle: Installing
title: Installing {{ product.name }}
{% endblock title %}

{% block frontmatter %}
{{super()}}
redirects:
Expand Down

1 comment on commit 4fcc17f

@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.