Compare commits
1 Commits
otcdocsthe
...
fix_genera
Author | SHA1 | Date | |
---|---|---|---|
6303a57fb8 |
@ -46,7 +46,6 @@ otcdocs_service_category = '{{ service_category }}'
|
|||||||
otcdocs_service_title = '{{ service_title }}'
|
otcdocs_service_title = '{{ service_title }}'
|
||||||
otcdocs_service_type = '{{ service_type }}'
|
otcdocs_service_type = '{{ service_type }}'
|
||||||
otcdocs_search_environment = 'hc_swiss'
|
otcdocs_search_environment = 'hc_swiss'
|
||||||
otcdocs_search_index = 'search_index_swiss'
|
|
||||||
otcdocs_search_url = "https://opensearch.eco.tsi-dev.otc-service.com/"
|
otcdocs_search_url = "https://opensearch.eco.tsi-dev.otc-service.com/"
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
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
|
||||||
|
|
||||||
|
@ -148,12 +148,7 @@ def process_repositories(args, service):
|
|||||||
context["html_options"] = dict(
|
context["html_options"] = dict(
|
||||||
disable_search=True,
|
disable_search=True,
|
||||||
site_name="Internal Documentation Portal",
|
site_name="Internal Documentation Portal",
|
||||||
logo_url="https://docs-int.sc.otc.t-systems.com",
|
logo_url="https://docs-int.otc-service.com",
|
||||||
)
|
|
||||||
else:
|
|
||||||
context["html_options"] = dict(
|
|
||||||
site_name="Swiss Open Telekom Cloud Docs",
|
|
||||||
logo_url="https://docs-beta.sc.otc.t-systems.com",
|
|
||||||
)
|
)
|
||||||
context["doc_environment"] = args.target_environment
|
context["doc_environment"] = args.target_environment
|
||||||
if doc['link']:
|
if doc['link']:
|
||||||
@ -203,12 +198,7 @@ def process_repositories(args, service):
|
|||||||
context["html_options"] = dict(
|
context["html_options"] = dict(
|
||||||
disable_search=True,
|
disable_search=True,
|
||||||
site_name="Internal Documentation Portal",
|
site_name="Internal Documentation Portal",
|
||||||
logo_url="https://docs-int.sc.otc.t-systems.com",
|
logo_url="https://docs-int.otc-service.com",
|
||||||
)
|
|
||||||
else:
|
|
||||||
context["html_options"] = dict(
|
|
||||||
site_name="Swiss Open Telekom Cloud Docs",
|
|
||||||
logo_url="https://docs-beta.sc.otc.t-systems.com",
|
|
||||||
)
|
)
|
||||||
sbv_title = (service["service_title"] + "\n"
|
sbv_title = (service["service_title"] + "\n"
|
||||||
+ ('=' * len(service["service_title"])))
|
+ ('=' * len(service["service_title"])))
|
||||||
@ -247,8 +237,6 @@ def process_repositories(args, service):
|
|||||||
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")
|
||||||
doc_requirements_content = doc_requirements_template.render(**context)
|
doc_requirements_content = doc_requirements_template.render(**context)
|
||||||
@ -325,7 +313,6 @@ 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")
|
||||||
|
Reference in New Issue
Block a user