diff --git a/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx b/advocacy_docs/kubernetes/cloud_native_postgresql/monitoring.mdx index 79a5321fc14..47340c1ac55 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' @@ -120,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 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)