Skip to content

Commit f9e99f4

Browse files
authored
Merge pull request #1107 from EnterpriseDB/chore/evan/move-cno
Move Cloud Native Postgres from /cloud_native_operator to /cloud_native_postgresql Former-commit-id: d73fa09
2 parents 9df00db + 116fc40 commit f9e99f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+9
-12
lines changed

scripts/source/source_cloud_native_operator.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def process_md(file_path):
6262

6363
os.remove(file_path)
6464

65-
def source_cloud_native_operator_docs():
65+
def source_cloud_native_postgresql_docs():
6666
os.system('rm -r temp_kubernetes/build')
6767
os.system('cp -r temp_kubernetes/original/src temp_kubernetes/build')
6868

69-
print('Processing cloud_native_operator...')
69+
print('Processing cloud_native_postgresql...')
7070
files = glob.glob('temp_kubernetes/build/**/*.md', recursive=True)
7171
for file_path in files:
7272
process_md(file_path)
7373

7474
if __name__ == '__main__':
75-
source_cloud_native_operator_docs()
75+
source_cloud_native_postgresql_docs()

src/pages/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const Page = () => (
7676
environments.
7777
</p>
7878
<p className="pb-3">
79-
<Link to="/kubernetes/cloud_native_operator">
79+
<Link to="/kubernetes/cloud_native_postgresql/">
8080
Read More &rarr;
8181
</Link>
8282
</p>
@@ -173,7 +173,7 @@ const Page = () => (
173173
</IndexCard>
174174

175175
<IndexCard iconName={iconNames.KUBERNETES} headingText="Kubernetes">
176-
<IndexCardLink to="/kubernetes/cloud_native_operator">
176+
<IndexCardLink to="/kubernetes/cloud_native_postgresql/">
177177
Cloud Native PostgreSQL Operator
178178
</IndexCardLink>
179179
</IndexCard>

src/templates/learn-doc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const TileModes = {
5050
Simple: 'simple',
5151
Full: 'full',
5252
};
53-
const Tiles = ({ mode, mdx, navLinks, cardNavNodes }) => {
53+
const Tiles = ({ mode, mdx, navLinks }) => {
5454
if (mode === TileModes.None) return null;
5555

5656
if (!mode) {
@@ -126,7 +126,7 @@ const LearnDocTemplate = ({ data, pageContext }) => {
126126

127127
// CNO isn't editable
128128
// TODO unify docs/advo to share one smart component that knows what to show
129-
const editOrFeedbackButton = path.includes('/cloud_native_operator/') ? (
129+
const editOrFeedbackButton = path.includes('/cloud_native_postgresql/') ? (
130130
<FeedbackButton githubIssuesLink={githubIssuesLink} />
131131
) : (
132132
<EditButton githubEditLink={githubEditLink} />

static/_redirects

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# see https://docs.netlify.com/routing/redirects/redirect-options/
22

3-
# Sample redirects
4-
/docs/latest-epas-version-temp /docs/epas/latest
5-
/docs/latest-epas-version-perm /docs/epas/latest 302
6-
/docs/epas/3.1 /docs/epas/latest 302
7-
/docs/epas/3.1/* /docs/epas/latest 302
3+
# Docs 2.0 Redirects
4+
/docs/kubernetes/cloud_native_operator/* /docs/kubernetes/cloud_native_postgresql/:splat 302
85

96
# Super legacy redirects (Docs 0.5 -> 1.0)
107
/docs/en/1.0/EDB_HA_SCALABILITY/* https://www.enterprisedb.com/edb-docs/d/edb-postgres-failover-manager/user-guides/high-availability-scalability-guide/3.2/:splat 301

0 commit comments

Comments
 (0)