Compare commits
1 Commits
confpy-git
...
increase-o
Author | SHA1 | Date | |
---|---|---|---|
e32c8e2df4 |
@ -1,10 +0,0 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: api/lts
|
||||
html_location: docs/lts/api-ref
|
||||
link: /log-tank-service/api-ref/
|
||||
pdf_name: lts-api-ref
|
||||
rst_location: api-ref/source
|
||||
service_type: lts
|
||||
title: API Reference
|
||||
type: api-ref
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: usermanual/lts
|
||||
html_location: docs/lts/umn
|
||||
link: /log-tank-service/umn/
|
||||
pdf_name: lts-umn
|
||||
rst_location: umn/source
|
||||
service_type: lts
|
||||
title: User Guide
|
||||
type: umn
|
@ -1,16 +0,0 @@
|
||||
---
|
||||
environment: internal
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs-swiss/log-tank-service
|
||||
type: gitea
|
||||
- environment: public
|
||||
repo: opentelekomcloud-docs-swiss/log-tank-service
|
||||
type: github
|
||||
service_category: md
|
||||
service_title: Log Tank Service
|
||||
service_type: lts
|
||||
service_uri: log-tank-service
|
||||
teams:
|
||||
- name: docs-orchestration-rw
|
||||
permission: write
|
@ -87,13 +87,10 @@ class Services(object):
|
||||
res.append(copy.deepcopy(cat))
|
||||
return res
|
||||
|
||||
def services_by_category(self, category, environment=None):
|
||||
def services_by_category(self, category):
|
||||
"""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
|
||||
|
@ -16,8 +16,6 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
from git import Repo
|
||||
from datetime import datetime
|
||||
|
||||
extensions = [
|
||||
'otcdocstheme',
|
||||
@ -134,8 +132,3 @@ latex_documents = [
|
||||
{% endif -%}
|
||||
]
|
||||
|
||||
# Get the Git commit values for timestamp on each page
|
||||
repo = Repo(search_parent_directories=True)
|
||||
commit = repo.head.commit
|
||||
current_commit_hash = commit.hexsha
|
||||
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
||||
|
@ -13,4 +13,3 @@ otc-sphinx-directives>=0.1.0
|
||||
sphinx-minify>=0.0.1 # Apache-2.0
|
||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata
|
||||
setuptools
|
||||
gitpython
|
||||
|
Reference in New Issue
Block a user