Differentiate between public and internal otcdocstheme
Some checks failed
gl/check check status: failure (dd5e48a0cdcb83844607b27bc6c10836a2ab4466)
Some checks failed
gl/check check status: failure (dd5e48a0cdcb83844607b27bc6c10836a2ab4466)
This commit is contained in:
parent
96ffbc1403
commit
dd5e48a0cd
@ -1,5 +1,11 @@
|
|||||||
sphinx>=2.0.0,!=2.1.0 # BSD
|
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
|
otcdocstheme # Apache-2.0
|
||||||
|
{% else %}
|
||||||
|
otcdocstheme # Apache-2.0
|
||||||
|
{% endif %}
|
||||||
# releasenotes
|
# releasenotes
|
||||||
reno>=3.1.0 # Apache-2.0
|
reno>=3.1.0 # Apache-2.0
|
||||||
|
|
||||||
|
@ -246,6 +246,8 @@ def process_repositories(args, service):
|
|||||||
if doc["type"] == "dev":
|
if doc["type"] == "dev":
|
||||||
doc["type"] = "dev-guide"
|
doc["type"] = "dev-guide"
|
||||||
context["docs"].append(doc)
|
context["docs"].append(doc)
|
||||||
|
|
||||||
|
context["target_environment"] = args.target_environment
|
||||||
|
|
||||||
tox_ini_content = tox_ini_template.render(**context)
|
tox_ini_content = tox_ini_template.render(**context)
|
||||||
tox_ini_path = pathlib.Path(copy_to, "tox.ini")
|
tox_ini_path = pathlib.Path(copy_to, "tox.ini")
|
||||||
@ -323,6 +325,7 @@ def main():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--target-environment",
|
"--target-environment",
|
||||||
required=True,
|
required=True,
|
||||||
|
choices=["internal", "public"],
|
||||||
help="Environment to be used as a source",
|
help="Environment to be used as a source",
|
||||||
)
|
)
|
||||||
parser.add_argument("--service-type", help="Service to update")
|
parser.add_argument("--service-type", help="Service to update")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user