Skip to content

Commit

Permalink
Include default-monitoring.yaml directly
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed Sep 14, 2023
1 parent 3efed95 commit 2dc5801
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/fileProcessor/processors/cnp/replace-github-urls.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Replace URLs beginning with the following patterns...
// - https://raw.githubusercontent.com/EnterpriseDB/cloud-native-postgres/main/config/manager/default-monitoring.yaml
// - https://github.com/EnterpriseDB/cloud-native-postgres/tree/main/docs/
// - https://raw.githubusercontent.com/EnterpriseDB/cloud-native-postgres/main/docs/src/
// ...with equivalent URLs referencing postgres for kubernetes in the public EDB Docs repo

const replacements = [
{pattern: /https:\/\/raw\.githubusercontent\.com\/EnterpriseDB\/cloud-native-postgres\/main\/config\/manager\/default-monitoring\.yaml/g, replacement: "default-monitoring.yaml"},
{pattern: /https:\/\/github\.com\/EnterpriseDB\/cloud-native-postgres\/tree\/main\/docs\//g, replacement: "https://github.com/EnterpriseDB/docs/tree/main/product_docs/docs/postgres-for-kubernetes/latest/"},
{pattern: /https:\/\/github\.com\/EnterpriseDB\/cloud-native-postgres\/blob\/main\/docs\//g, replacement: "https://github.com/EnterpriseDB/docs/blob/main/product_docs/docs/postgres-for-kubernetes/latest/"},
{pattern: /https:\/\/raw\.githubusercontent\.com\/EnterpriseDB\/cloud-native-postgres\/main\/docs\/src\//g, replacement: "https://raw.githubusercontent.com/EnterpriseDB/docs/main/product_docs/docs/postgres-for-kubernetes/latest/"},
Expand Down
3 changes: 3 additions & 0 deletions scripts/source/process-cnp-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ node $DESTINATION_CHECKOUT/scripts/source/files-to-ignore.mjs \

cd $SOURCE_CHECKOUT/docs

# grab key bit of source for use in docs
cp $SOURCE_CHECKOUT/config/manager/default-monitoring.yaml $SOURCE_CHECKOUT/docs/src/

node $DESTINATION_CHECKOUT/scripts/fileProcessor/main.mjs \
-f "src/**/quickstart.md" \
-p cnp/add-quickstart-content
Expand Down

0 comments on commit 2dc5801

Please sign in to comment.