Skip to content

Commit

Permalink
Move CNP from cloud_native_operator to cloud_native_postgresql
Browse files Browse the repository at this point in the history
Former-commit-id: c1ff419
  • Loading branch information
epbarger committed Mar 22, 2021
1 parent 9df00db commit 116fc40
Show file tree
Hide file tree
Showing 56 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions scripts/source/source_cloud_native_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def process_md(file_path):

os.remove(file_path)

def source_cloud_native_operator_docs():
def source_cloud_native_postgresql_docs():
os.system('rm -r temp_kubernetes/build')
os.system('cp -r temp_kubernetes/original/src temp_kubernetes/build')

print('Processing cloud_native_operator...')
print('Processing cloud_native_postgresql...')
files = glob.glob('temp_kubernetes/build/**/*.md', recursive=True)
for file_path in files:
process_md(file_path)

if __name__ == '__main__':
source_cloud_native_operator_docs()
source_cloud_native_postgresql_docs()
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Page = () => (
environments.
</p>
<p className="pb-3">
<Link to="/kubernetes/cloud_native_operator">
<Link to="/kubernetes/cloud_native_postgresql/">
Read More &rarr;
</Link>
</p>
Expand Down Expand Up @@ -173,7 +173,7 @@ const Page = () => (
</IndexCard>

<IndexCard iconName={iconNames.KUBERNETES} headingText="Kubernetes">
<IndexCardLink to="/kubernetes/cloud_native_operator">
<IndexCardLink to="/kubernetes/cloud_native_postgresql/">
Cloud Native PostgreSQL Operator
</IndexCardLink>
</IndexCard>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/learn-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const TileModes = {
Simple: 'simple',
Full: 'full',
};
const Tiles = ({ mode, mdx, navLinks, cardNavNodes }) => {
const Tiles = ({ mode, mdx, navLinks }) => {
if (mode === TileModes.None) return null;

if (!mode) {
Expand Down Expand Up @@ -126,7 +126,7 @@ const LearnDocTemplate = ({ data, pageContext }) => {

// CNO isn't editable
// TODO unify docs/advo to share one smart component that knows what to show
const editOrFeedbackButton = path.includes('/cloud_native_operator/') ? (
const editOrFeedbackButton = path.includes('/cloud_native_postgresql/') ? (
<FeedbackButton githubIssuesLink={githubIssuesLink} />
) : (
<EditButton githubEditLink={githubEditLink} />
Expand Down
7 changes: 2 additions & 5 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# see https://docs.netlify.com/routing/redirects/redirect-options/

# Sample redirects
/docs/latest-epas-version-temp /docs/epas/latest
/docs/latest-epas-version-perm /docs/epas/latest 302
/docs/epas/3.1 /docs/epas/latest 302
/docs/epas/3.1/* /docs/epas/latest 302
# Docs 2.0 Redirects
/docs/kubernetes/cloud_native_operator/* /docs/kubernetes/cloud_native_postgresql/:splat 302

# Super legacy redirects (Docs 0.5 -> 1.0)
/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
Expand Down

0 comments on commit 116fc40

Please sign in to comment.