Compare commits

...

5 Commits

Author SHA1 Message Date
4b4cf3cdad Fix zuul.yaml 2025-04-15 10:06:22 +00:00
74097a7edd Fix sbv 2025-04-15 10:02:32 +00:00
177e5deddc Fix swiss confpy 2025-04-15 10:00:37 +00:00
9c9d7ed695 Added testservice 2025-04-15 09:37:52 +00:00
83ecc3ec19 Added testservice 2025-04-15 09:09:41 +00:00
8 changed files with 212 additions and 125 deletions

View File

@ -0,0 +1,13 @@
---
hc_location: usermanual/testservice
html_location: docs/testservice/api-ref
link: /testservice/api-ref/
rst_location: api-ref/source
service_type: testservice
title: User Guide
type: api-ref
cloud_environments:
- name: swiss
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
hc_location: usermanual/testservice
html_location: docs/testservice/umn
link: /testservice/umn/
rst_location: umn/source
service_type: testservice
title: User Guide
type: umn
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
service_type: testservice
repositories:
- environment: public
repo: opentelekomcloud-docs/testservice
type: github
cloud_environments:
- eu_de
- environment: internal
repo: docs/testservice
type: gitea
cloud_environments:
- eu_de

View File

@ -0,0 +1,12 @@
---
environment: public
is_global: false
service_category: security-services
service_title: Test Service
service_type: testservice
service_uri: testservice
cloud_environments:
- name: eu_de
teams:
- name: docs-security-services-rw
permission: write

View File

@ -47,7 +47,8 @@ otcdocs_doc_type = '{{ doc_type }}'
otcdocs_service_category = '{{ service_category }}'
otcdocs_service_title = '{{ service_title }}'
otcdocs_service_type = '{{ service_type }}'
otcdocs_search_environment = 'hc_de'
otcdocs_search_environment = '{{ otcdocs_search_environment }}'
otcdocs_search_index = '{{ otcdocs_search_index }}'
otcdocs_search_url = "https://opensearch.eco.tsi-dev.otc-service.com/"
# If extensions (or modules to document with autodoc) are in another directory,

View File

@ -3,7 +3,7 @@
merge-mode: squash-merge
default-branch: main
templates:
- helpcenter-base-jobs
- {{ template }}
vars:
sphinx_pdf_files:
{%- for doc in docs %}

View File

@ -103,6 +103,7 @@ def create_repo(repo, repo_dir, service):
git_repo = Repo(repo_dir)
git_repo.create_remote("origin", repo_url)
git_repo.remotes.origin.fetch()
git_repo.git.branch("-m", "main")
git_repo.git.push("--set-upstream", "origin", "main")
@ -149,7 +150,7 @@ def main():
args = parser.parse_args()
logging.basicConfig(level=logging.DEBUG)
services = []
if args.service_type:
services = [data.get_service_with_repo_by_service_type(service_type=args.service_type)]
else:

File diff suppressed because it is too large Load Diff