Compare commits
1 Commits
3a84eaeec0
...
cab8a437aa
Author | SHA1 | Date | |
---|---|---|---|
cab8a437aa |
@ -373,7 +373,8 @@ documents:
|
|||||||
service_type: dis
|
service_type: dis
|
||||||
title: User Guide
|
title: User Guide
|
||||||
type: umn
|
type: umn
|
||||||
- hc_location: api/dli
|
- environment: internal
|
||||||
|
hc_location: api/dli
|
||||||
html_location: docs/dli/api-ref
|
html_location: docs/dli/api-ref
|
||||||
link: /data-lake-insight/api-ref/
|
link: /data-lake-insight/api-ref/
|
||||||
pdf_name: dli-api-ref
|
pdf_name: dli-api-ref
|
||||||
@ -381,7 +382,8 @@ documents:
|
|||||||
service_type: dli
|
service_type: dli
|
||||||
title: API Reference
|
title: API Reference
|
||||||
type: api-ref
|
type: api-ref
|
||||||
- hc_location: usermanual/dli
|
- environment: internal
|
||||||
|
hc_location: usermanual/dli
|
||||||
html_location: docs/dli/umn
|
html_location: docs/dli/umn
|
||||||
link: /data-lake-insight/umn/
|
link: /data-lake-insight/umn/
|
||||||
pdf_name: dli-umn
|
pdf_name: dli-umn
|
||||||
@ -654,7 +656,7 @@ documents:
|
|||||||
service_type: ims
|
service_type: ims
|
||||||
title: Developer Guide
|
title: Developer Guide
|
||||||
type: dev
|
type: dev
|
||||||
- environment: public
|
- html_location: docs/ims/public-images
|
||||||
link: /image-management-service/public-images/
|
link: /image-management-service/public-images/
|
||||||
pdf_name: ims-public-images
|
pdf_name: ims-public-images
|
||||||
rst_location: doc/public-images/source
|
rst_location: doc/public-images/source
|
||||||
@ -810,7 +812,7 @@ documents:
|
|||||||
pdf_name: obs-swiftapi
|
pdf_name: obs-swiftapi
|
||||||
rst_location: doc/swiftapi/source
|
rst_location: doc/swiftapi/source
|
||||||
service_type: obs
|
service_type: obs
|
||||||
title: API Reference (Swift) - Deprecated
|
title: API Reference (Swift)
|
||||||
type: swiftapi
|
type: swiftapi
|
||||||
- hc_location: api_obs/obs
|
- hc_location: api_obs/obs
|
||||||
html_location: docs/obs/s3api
|
html_location: docs/obs/s3api
|
||||||
@ -1085,7 +1087,8 @@ documents:
|
|||||||
service_type: waf
|
service_type: waf
|
||||||
title: User Guide
|
title: User Guide
|
||||||
type: umn
|
type: umn
|
||||||
- hc_location: api/dwaf
|
- environment: internal
|
||||||
|
hc_location: api/dwaf
|
||||||
html_location: docs/wafd/api-ref
|
html_location: docs/wafd/api-ref
|
||||||
link: /web-application-firewall-dedicated/api-ref/
|
link: /web-application-firewall-dedicated/api-ref/
|
||||||
pdf_name: wafd-api-ref
|
pdf_name: wafd-api-ref
|
||||||
@ -1093,7 +1096,8 @@ documents:
|
|||||||
service_type: wafd
|
service_type: wafd
|
||||||
title: API Reference
|
title: API Reference
|
||||||
type: api-ref
|
type: api-ref
|
||||||
- hc_location: usermanual/dwaf
|
- environment: internal
|
||||||
|
hc_location: usermanual/dwaf
|
||||||
html_location: docs/wafd/umn
|
html_location: docs/wafd/umn
|
||||||
link: /web-application-firewall-dedicated/umn/
|
link: /web-application-firewall-dedicated/umn/
|
||||||
pdf_name: wafd-umn
|
pdf_name: wafd-umn
|
||||||
@ -1328,7 +1332,7 @@ services:
|
|||||||
service_category: big_data
|
service_category: big_data
|
||||||
service_title: DataArts Studio
|
service_title: DataArts Studio
|
||||||
service_type: dataarts_studio
|
service_type: dataarts_studio
|
||||||
service_uri: data-arts-studio
|
service_uri: dataarts-studio
|
||||||
environment: internal
|
environment: internal
|
||||||
teams:
|
teams:
|
||||||
- name: docs-bigdata-ai-rw
|
- name: docs-bigdata-ai-rw
|
||||||
@ -1376,7 +1380,7 @@ services:
|
|||||||
service_uri: distributed-cache-service
|
service_uri: distributed-cache-service
|
||||||
environment: public
|
environment: public
|
||||||
teams:
|
teams:
|
||||||
- name: docs-orchestration-rw
|
- name: docs-database-rw
|
||||||
permission: write
|
permission: write
|
||||||
- repositories:
|
- repositories:
|
||||||
- environment: internal
|
- environment: internal
|
||||||
@ -1479,7 +1483,7 @@ services:
|
|||||||
service_title: Data Lake Insight
|
service_title: Data Lake Insight
|
||||||
service_type: dli
|
service_type: dli
|
||||||
service_uri: data-lake-insight
|
service_uri: data-lake-insight
|
||||||
environment: public
|
environment: internal
|
||||||
teams:
|
teams:
|
||||||
- name: docs-bigdata-ai-rw
|
- name: docs-bigdata-ai-rw
|
||||||
permission: write
|
permission: write
|
||||||
@ -1995,7 +1999,7 @@ services:
|
|||||||
service_category: network
|
service_category: network
|
||||||
service_title: Virtual Private Network
|
service_title: Virtual Private Network
|
||||||
service_type: vpn
|
service_type: vpn
|
||||||
service_uri: virtual-private-network
|
service_uri: virtual-private-network/umn/
|
||||||
environment: public
|
environment: public
|
||||||
teams:
|
teams:
|
||||||
- name: docs-network-rw
|
- name: docs-network-rw
|
||||||
|
@ -113,55 +113,6 @@ class Services(object):
|
|||||||
res[cat]["docs"].append(res_doc)
|
res[cat]["docs"].append(res_doc)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def service_types_with_doc_types(self, environment=None):
|
|
||||||
"""Retrieve type and title from services and corresponding docs.
|
|
||||||
As well as a list of all available doc types with title.
|
|
||||||
|
|
||||||
:param str environment: Optional service environment.
|
|
||||||
"""
|
|
||||||
service_list = []
|
|
||||||
docs = []
|
|
||||||
|
|
||||||
for service in self.all_services:
|
|
||||||
if not service["service_title"]:
|
|
||||||
continue
|
|
||||||
if not service["service_type"]:
|
|
||||||
continue
|
|
||||||
|
|
||||||
doc_list = []
|
|
||||||
for doc in self.all_docs:
|
|
||||||
if "environment" in doc:
|
|
||||||
if doc["environment"] != environment:
|
|
||||||
continue
|
|
||||||
if doc["service_type"] == service["service_type"]:
|
|
||||||
doc_list.append({
|
|
||||||
"title": doc["title"],
|
|
||||||
"type": doc["type"]
|
|
||||||
})
|
|
||||||
|
|
||||||
new_doc = {
|
|
||||||
"type": doc["type"],
|
|
||||||
"title": doc["title"]
|
|
||||||
}
|
|
||||||
type_exists = any(
|
|
||||||
doc_dict["type"] == new_doc["type"] for doc_dict in docs
|
|
||||||
)
|
|
||||||
if not type_exists:
|
|
||||||
docs.append(new_doc)
|
|
||||||
|
|
||||||
service_list.append({
|
|
||||||
"service_title": service["service_title"],
|
|
||||||
"service_type": service["service_type"],
|
|
||||||
"docs": doc_list
|
|
||||||
})
|
|
||||||
|
|
||||||
res = {
|
|
||||||
"services": service_list,
|
|
||||||
"docs": docs
|
|
||||||
}
|
|
||||||
|
|
||||||
return res
|
|
||||||
|
|
||||||
def docs_by_service_category(self, category, environment=None):
|
def docs_by_service_category(self, category, environment=None):
|
||||||
"""List services matching category
|
"""List services matching category
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ otcdocs_doc_type = '{{ doc_type }}'
|
|||||||
otcdocs_service_category = '{{ service_category }}'
|
otcdocs_service_category = '{{ service_category }}'
|
||||||
otcdocs_service_title = '{{ service_title }}'
|
otcdocs_service_title = '{{ service_title }}'
|
||||||
otcdocs_service_type = '{{ service_type }}'
|
otcdocs_service_type = '{{ service_type }}'
|
||||||
otcdocs_search_environment = 'hc_de'
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
@ -4,4 +4,3 @@ requests
|
|||||||
jinja2
|
jinja2
|
||||||
dirsync
|
dirsync
|
||||||
cookiecutter
|
cookiecutter
|
||||||
opensearch-py
|
|
||||||
|
@ -32,11 +32,9 @@ def process_services(args, services):
|
|||||||
block_on_rejected_reviews=True,
|
block_on_rejected_reviews=True,
|
||||||
dismiss_stale_approvals=True,
|
dismiss_stale_approvals=True,
|
||||||
enable_push=False,
|
enable_push=False,
|
||||||
enable_status_check=True,
|
|
||||||
status_check_contexts=["gl/check"],
|
status_check_contexts=["gl/check"],
|
||||||
enable_merge_whitelist=True,
|
enable_merge_whitelist=True,
|
||||||
merge_whitelist_usernames=["zuul"],
|
merge_whitelist_usernames=["zuul"],
|
||||||
required_approvals=1,
|
|
||||||
)
|
)
|
||||||
gitea_repo_template = dict(
|
gitea_repo_template = dict(
|
||||||
default_branch="main",
|
default_branch="main",
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user