4 Commits

Author SHA1 Message Date
4c16e73eb3 change cloudconnect visibility to public (#89)
change cloudconnect visibility to public

Co-authored-by: lhajba <lacefhun@gmail.com>
Reviewed-on: #89
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
Co-committed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
2026-04-14 11:39:11 +00:00
12d16b7a2d added preprod branch script (#87)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 5s
Reviewed-on: #87
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2026-04-01 11:46:33 +00:00
1e4648067d DMS RocketMQ public (#84)
Reviewed-on: #84
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2026-03-31 14:15:08 +00:00
e2acf0c603 Add table suffix to cloud envs (#85)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 6s
1) Add table_suffix key to avoid EoD hardcoding

Co-authored-by: Yusenka <tangelapo@gmail.com>
Reviewed-on: #85
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2026-03-25 10:04:18 +00:00
10 changed files with 250 additions and 33 deletions

View File

@ -1,5 +1,6 @@
--- ---
name: eu_de name: eu_de
table_suffix: ""
internal_org: docs internal_org: docs
public_org: opentelekomcloud-docs public_org: opentelekomcloud-docs
regions: regions:

View File

@ -1,5 +1,6 @@
--- ---
name: swiss name: swiss
table_suffix: _swiss
internal_org: docs-swiss internal_org: docs-swiss
public_org: opentelekomcloud-docs-swiss public_org: opentelekomcloud-docs-swiss
regions: regions:

View File

@ -8,6 +8,6 @@ title: API Reference
type: api-ref type: api-ref
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -8,6 +8,6 @@ title: User Guide
type: umn type: umn
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -8,6 +8,6 @@ title: API Reference
type: api-ref type: api-ref
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -8,6 +8,6 @@ title: User Guide
type: umn type: umn
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -8,5 +8,5 @@ teams:
permission: write permission: write
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
is_global: false is_global: false

View File

@ -8,5 +8,5 @@ teams:
permission: write permission: write
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
is_global: false is_global: false

237
tools/create_preprod_branch.py Executable file

File diff suppressed because it is too large Load Diff

View File

@ -86,9 +86,8 @@ def generate_description_with_llm(text, service_title, llm_api_url, model_name,
"""Generate a meta description using the llama.cpp /completion endpoint with up to 3 retries.""" """Generate a meta description using the llama.cpp /completion endpoint with up to 3 retries."""
content_preview = text[:2000].replace("\n", " ") content_preview = text[:2000].replace("\n", " ")
prompt = ( prompt = (
f"Generate a meta description (40-160 chars) for the T Cloud Public service: {service_title}." f"Generate a meta description (40-160 chars) for: {service_title}."
f"This is a service from the cloud provider called 'T Cloud Public', do NOT mention other Cloud Providers or services from them." f"This is a service from the cloud provider called 'T Cloud Public', do not mention other Cloud Providers or services from them."
f"NEVER mention AWS, Azure, Huawei, Alibaba, GCP and similiar cloud providers."
f"Content preview: {content_preview}." f"Content preview: {content_preview}."
f"Output ONLY the description text, nothing else." f"Output ONLY the description text, nothing else."
) )
@ -161,9 +160,8 @@ def generate_keywords_with_llm(text, service_title, llm_api_url, model_name, api
"""Generate keywords using the llama.cpp /completion endpoint with up to 3 retries.""" """Generate keywords using the llama.cpp /completion endpoint with up to 3 retries."""
content_preview = text[:2000].replace("\n", " ") content_preview = text[:2000].replace("\n", " ")
prompt = ( prompt = (
f"Generate up to 5 keywords (comma-separated) for the T Cloud Public service: {service_title}. " f"Generate up to 5 keywords (comma-separated) for: {service_title}. "
f"This is a service from the cloud provider called 'T Cloud Public', do NOT mention other Cloud Providers or services from them." f"This is a service from the cloud provider called 'T Cloud Public', do not mention other Cloud Providers or services from them."
f"NEVER mention AWS, Azure, Huawei, Alibaba, GCP and similiar cloud providers."
f"Content preview: {content_preview}. " f"Content preview: {content_preview}. "
f"Output ONLY comma-separated keywords, nothing else." f"Output ONLY comma-separated keywords, nothing else."
) )
@ -258,7 +256,6 @@ def process_service(args, service):
repo_dir = None repo_dir = None
git_repo = None git_repo = None
error_list = [] error_list = []
files_updated = 0
repo = None repo = None
for r in service["repositories"]: for r in service["repositories"]:
@ -355,7 +352,6 @@ def process_service(args, service):
if add_sphinx_metadata(rst_file, description, keywords): if add_sphinx_metadata(rst_file, description, keywords):
updated_count += 1 updated_count += 1
files_updated += 1
logging.info(f"Added meta description and keywords to {rst_file}") logging.info(f"Added meta description and keywords to {rst_file}")
else: else:
processed_count += 1 processed_count += 1
@ -390,8 +386,6 @@ def process_service(args, service):
logging.error(error_list) logging.error(error_list)
logging.info(f"Processed {processed_count} files, updated {updated_count} files") logging.info(f"Processed {processed_count} files, updated {updated_count} files")
return files_updated
def main(): def main():
@ -459,24 +453,8 @@ def main():
else: else:
services = data.services_with_repos() services = data.services_with_repos()
total_files_updated = 0
services_with_updates = []
for service in services: for service in services:
files_updated = process_service(args, service) process_service(args, service)
if files_updated > 0:
total_files_updated += files_updated
services_with_updates.append((service['service_title'], files_updated))
print("\n" + "=" * 60)
print("SUMMARY")
print("=" * 60)
print(f"Total files with metadata added: {total_files_updated}")
print(f"Services with updates: {len(services_with_updates)}")
print("\nServices with metadata added:")
for service_title, count in services_with_updates:
print(f" - {service_title}: {count} file(s)")
print("=" * 60)
if __name__ == "__main__": if __name__ == "__main__":