New template and options for Service-Based-View #61

Merged
zuul merged 15 commits from template_sbv into main 2023-04-20 13:10:19 +00:00
3 changed files with 78 additions and 1 deletions
Showing only changes of commit 06a441314d - Show all commits

View File

@ -158,6 +158,7 @@ def process_repositories(args, service):
repo_to.index.add([doc["rst_location"]]) repo_to.index.add([doc["rst_location"]])
if args.update_sbv: if args.update_sbv:
"""Add or update service-based-view"""
copy_path = pathlib.Path(copy_to, 'doc', 'source') copy_path = pathlib.Path(copy_to, 'doc', 'source')
context = dict( context = dict(
repo_name=target_repo["repo"], repo_name=target_repo["repo"],
@ -210,6 +211,7 @@ def process_repositories(args, service):
repo_to.index.add(pathlib.Path(placeholder_path, "placeholder")) repo_to.index.add(pathlib.Path(placeholder_path, "placeholder"))
if args.update_tox: if args.update_tox:
"""Update tox.ini"""
context = dict(docs=[]) context = dict(docs=[])
for doc in service_docs: for doc in service_docs:
if doc["type"] == "dev": if doc["type"] == "dev":