Compare commits

...

2 Commits

Author SHA1 Message Date
135c8a9bc8 fix pep8
All checks were successful
gl/check check status: success (135c8a9bc871391ad718266577c75c2ddc9af25c)
gl/gate gate status: success (135c8a9bc871391ad718266577c75c2ddc9af25c)
2023-11-15 13:43:51 +00:00
dd5e48a0cd Differentiate between public and internal otcdocstheme
Some checks failed
gl/check check status: failure (dd5e48a0cdcb83844607b27bc6c10836a2ab4466)
2023-11-15 13:38:02 +00:00
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,11 @@
sphinx>=2.0.0,!=2.1.0 # BSD
{% if target_environment == 'public' %}
otcdocstheme<1.0.0 # Apache-2.0
{% elif target_environment == 'internal' %}
otcdocstheme # Apache-2.0
{% else %}
otcdocstheme # Apache-2.0
{% endif %}
# releasenotes
reno>=3.1.0 # Apache-2.0

View File

@ -247,6 +247,8 @@ def process_repositories(args, service):
doc["type"] = "dev-guide"
context["docs"].append(doc)
context["target_environment"] = args.target_environment
tox_ini_content = tox_ini_template.render(**context)
tox_ini_path = pathlib.Path(copy_to, "tox.ini")
doc_requirements_content = doc_requirements_template.render(**context)
@ -323,6 +325,7 @@ def main():
parser.add_argument(
"--target-environment",
required=True,
choices=["internal", "public"],
help="Environment to be used as a source",
)
parser.add_argument("--service-type", help="Service to update")