Compare commits
3 Commits
fix_swiss
...
environmen
Author | SHA1 | Date | |
---|---|---|---|
1f24ffc75b | |||
c5736b6886 | |||
c6be426256 |
@ -87,10 +87,13 @@ class Services(object):
|
||||
res.append(copy.deepcopy(cat))
|
||||
return res
|
||||
|
||||
def services_by_category(self, category):
|
||||
def services_by_category(self, category, environment=None):
|
||||
"""List services matching category"""
|
||||
res = []
|
||||
for srv in self.all_services:
|
||||
if environment:
|
||||
if "environment" in srv and srv["environment"] != environment:
|
||||
continue
|
||||
if srv["service_category"] == category:
|
||||
res.append(copy.deepcopy(srv))
|
||||
return res
|
||||
|
@ -1,6 +1,6 @@
|
||||
sphinx>=2.0.0,!=2.1.0 # BSD
|
||||
{% if target_environment == 'public' %}
|
||||
otcdocstheme<1.0.0 # Apache-2.0
|
||||
otcdocstheme<2.0.0 # Apache-2.0
|
||||
{% elif target_environment == 'internal' %}
|
||||
otcdocstheme # Apache-2.0
|
||||
{% else %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
merge-mode: squash-merge
|
||||
default-branch: main
|
||||
templates:
|
||||
- helpcenter-base-jobs
|
||||
- helpcenter-swiss-base-jobs
|
||||
check:
|
||||
jobs:
|
||||
- noop
|
||||
|
Reference in New Issue
Block a user