Skip to content

Commit

Permalink
Merge pull request #1403 from EnterpriseDB/content/josh/fix-bad-CNP-m…
Browse files Browse the repository at this point in the history
…onitoring-conversion

Fix conversion error on md file with leading whitespace

Former-commit-id: 5096c24
  • Loading branch information
jericson-edb authored May 20, 2021
2 parents 3468b4a + fe35604 commit 334a7de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
title: 'Monitoring Instances'
originalFilePath: 'src/monitoring.md'
Expand Down Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions scripts/source/source_cloud_native_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 334a7de

Please sign in to comment.