Compare commits
1 Commits
constraint
...
big_data_r
Author | SHA1 | Date | |
---|---|---|---|
c3a61b6047 |
@ -1,8 +0,0 @@
|
||||
---
|
||||
html_location: docs/iam/permissions
|
||||
link: /identity-access-management/permissions/
|
||||
pdf_name: iam-permissions
|
||||
rst_location: doc/permissions/source
|
||||
service_type: iam
|
||||
title: Permissions
|
||||
type: permissions
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
hc_location: usermanual/sd
|
||||
html_location: docs/sd/umn
|
||||
link: /status-dashboard/umn/
|
||||
pdf_name: sd-umn
|
||||
rst_location: umn/source
|
||||
service_type: sd
|
||||
title: User Guide
|
||||
type: umn
|
@ -1,16 +0,0 @@
|
||||
---
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs-swiss/status-dashboard
|
||||
type: gitea
|
||||
- environment: public
|
||||
repo: opentelekomcloud-docs-swiss/status-dashboard
|
||||
type: github
|
||||
service_category: other
|
||||
service_title: Status Dashboard
|
||||
service_type: sd
|
||||
service_uri: status-dashboard/umn
|
||||
environment: hidden
|
||||
teams:
|
||||
- name: docs-eco-rw
|
||||
permission: write
|
@ -48,15 +48,6 @@ class Services(object):
|
||||
self._service_data["services"],
|
||||
key=lambda x: f"{x.get('service_type')}{x.get('service_title')}",
|
||||
)
|
||||
# sort service categories by <name>_<title>
|
||||
self._service_data["service_categories"] = sorted(
|
||||
self._service_data["service_categories"],
|
||||
key=lambda x: f"{x.get('name')}{x.get('title')}",
|
||||
)
|
||||
other = {'name': 'other', 'title': 'Other'}
|
||||
if other in self._service_data["service_categories"]:
|
||||
self._service_data["service_categories"].remove(other)
|
||||
self._service_data["service_categories"].append(other)
|
||||
|
||||
def _rewrite_data(self):
|
||||
otc_metadata.data.rewrite_data("services.yaml", self._service_data)
|
||||
|
@ -26,7 +26,6 @@ extensions = [
|
||||
|
||||
otcdocs_auto_name = False
|
||||
otcdocs_auto_version = False
|
||||
otcdocs_search_environment = 'hc_swiss'
|
||||
|
||||
project = '{{ project }}'
|
||||
otcdocs_repo_name = '{{ repo_name }}'
|
||||
|
@ -24,9 +24,7 @@ commands = {posargs}
|
||||
# This env is invoked in the periodic pipeline and is therefore responsible to
|
||||
# build all relevant docs at once.
|
||||
[testenv:docs]
|
||||
deps =
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
-c https://raw.githubusercontent.com/opentelekomcloud-docs-swiss/docs-constraints/main/constraints.txt
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
mkdir
|
||||
cp
|
||||
@ -42,7 +40,7 @@ commands =
|
||||
{%- endfor %}
|
||||
|
||||
[testenv:docs-pdf]
|
||||
deps = {[testenv:docs]deps}
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
rm
|
||||
mkdir
|
||||
@ -61,7 +59,7 @@ commands =
|
||||
{% set loc = doc.rst_location | replace('/source', '') %}
|
||||
# HTML version
|
||||
[testenv:{{ doc.type }}]
|
||||
deps = {[testenv:docs]deps}
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
@ -80,7 +78,7 @@ commands =
|
||||
|
||||
# Json version (for search)
|
||||
[testenv:json-{{ doc.type }}]
|
||||
deps = {[testenv:docs]deps}
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
@ -104,7 +102,7 @@ commands =
|
||||
{% if doc.pdf_name -%}
|
||||
# PDF version
|
||||
[testenv:{{ doc.type }}-pdf-docs]
|
||||
deps = {[testenv:docs]deps}
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
rm
|
||||
mkdir
|
||||
|
@ -10,7 +10,6 @@ import otc_metadata.services
|
||||
|
||||
def main():
|
||||
data = otc_metadata.services.Services()
|
||||
data._sort_data()
|
||||
|
||||
_yaml = YAML()
|
||||
_yaml.indent(mapping=2, sequence=4, offset=2)
|
||||
|
Reference in New Issue
Block a user