From fa03a86784781ebc5eda796e40251490d3916776 Mon Sep 17 00:00:00 2001 From: AshwinSriram11 Date: Fri, 23 May 2025 18:03:19 +0530 Subject: [PATCH 1/2] Preview for Elastic-API-Reference --- config/_default/config.toml | 2 +- synchronize.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 376609e..d9d8ff9 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -5,7 +5,7 @@ enableEmoji = true enableGitInfo = true enableRobotsTXT = true languageCode = "en-US" -paginate = 7 +pagination.pagerSize = 7 rssLimit = 10 ## add redirects/headers diff --git a/synchronize.sh b/synchronize.sh index 44487c5..54f52ef 100755 --- a/synchronize.sh +++ b/synchronize.sh @@ -6,10 +6,10 @@ rm -rf repos/ mkdir repos/ if [[ -z "$USE_LOCAL_REPOSITORIES" ]]; then - git clone https://github.com/prometheus-operator/prometheus-operator -b main --depth 1 repos/prometheus-operator + # git clone https://github.com/prometheus-operator/prometheus-operator -b main --depth 1 repos/prometheus-operator + ln -s ../../prometheus-operator repos/prometheus-operator git clone https://github.com/prometheus-operator/kube-prometheus -b main --depth 1 repos/kube-prometheus else - ln -s ../../prometheus-operator repos/prometheus-operator ln -s ../../kube-prometheus repos/kube-prometheus fi @@ -29,6 +29,7 @@ cp repos/prometheus-operator/Documentation/getting-started/design.md content/doc # api section cp repos/prometheus-operator/Documentation/api-reference/api.md content/docs/api-reference/api.md +cp repos/prometheus-operator/Documentation/api-reference/elastic-api.md content/docs/api-reference/elastic-api.md # platform guide cp repos/prometheus-operator/Documentation/platform/platform-guide.md content/docs/platform/platform-guide.md From 6c7d1167a3c55b6f41c509cf47dcc60720b1ba57 Mon Sep 17 00:00:00 2001 From: AshwinSriram11 Date: Fri, 23 May 2025 18:08:54 +0530 Subject: [PATCH 2/2] Change repo path --- synchronize.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synchronize.sh b/synchronize.sh index 54f52ef..799843f 100755 --- a/synchronize.sh +++ b/synchronize.sh @@ -7,9 +7,10 @@ mkdir repos/ if [[ -z "$USE_LOCAL_REPOSITORIES" ]]; then # git clone https://github.com/prometheus-operator/prometheus-operator -b main --depth 1 repos/prometheus-operator - ln -s ../../prometheus-operator repos/prometheus-operator + git clone https://github.com/AshwinSriram11/prometheus-operator -b elastic-ref --depth 1 repos/prometheus-operator git clone https://github.com/prometheus-operator/kube-prometheus -b main --depth 1 repos/kube-prometheus else + ln -s ../../prometheus-operator repos/prometheus-operator ln -s ../../kube-prometheus repos/kube-prometheus fi