From 4fd2d0dea5274d3e8758555d3d81dc4770fa5606 Mon Sep 17 00:00:00 2001 From: Josh Heyer <63653723+josh-heyer@users.noreply.github.com> Date: Thu, 20 May 2021 17:59:49 +0000 Subject: [PATCH 1/2] Fix conversion error on md file with leading whitespace Former-commit-id: 9e5624748c040c38559f311ec9a6970c23aa1b5b --- .../kubernetes/cloud_native_postgresql/monitoring.mdx | 1 - scripts/source/source_cloud_native_operator.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx b/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx index 79a5321fc14..0248ed1f4b2 100644 --- a/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx +++ b/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx @@ -1,4 +1,3 @@ - --- title: 'Monitoring Instances' originalFilePath: 'src/monitoring.md' diff --git a/scripts/source/source_cloud_native_operator.py b/scripts/source/source_cloud_native_operator.py index 63c7c0ada85..f1c58c8449e 100644 --- a/scripts/source/source_cloud_native_operator.py +++ b/scripts/source/source_cloud_native_operator.py @@ -79,6 +79,10 @@ def process_md(file_path): if new_file_path.name == "index.mdx" else "", ) + elif not line.strip(): + line = "" + else: + print("File does not begin with title - frontmatter will not be valid: " + file_path) new_file.write(line) From fe356044387a105433aa5f1ad0ea48908ea2be49 Mon Sep 17 00:00:00 2001 From: Josh Heyer <63653723+josh-heyer@users.noreply.github.com> Date: Thu, 20 May 2021 18:53:03 +0000 Subject: [PATCH 2/2] link spans two lines and wasn't rewritten Former-commit-id: 3f76c3eeebde525f848fe6502477a387fc42e0ef --- .../kubernetes/cloud_native_postgresql/monitoring.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx b/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx index 0248ed1f4b2..47340c1ac55 100644 --- a/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx +++ b/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx @@ -119,8 +119,7 @@ data: description: "Replication lag behind primary in seconds" ``` -A list of basic monitoring queries can be found in the [`cnp-basic-monitoring.yaml` file]( -./samples/cnp-basic-monitoring.yaml). +A list of basic monitoring queries can be found in the [`cnp-basic-monitoring.yaml` file](../samples/cnp-basic-monitoring.yaml). ### Structure of a user defined metric