otcdocstheme 1.12.2__py3-none-any.whl → 1.12.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
otcdocstheme/ext.py CHANGED
@@ -165,6 +165,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
165
165
  otcdocs_search_index = app.config.otcdocs_search_index
166
166
  otcdocs_search_url = app.config.otcdocs_search_url
167
167
  otcdocs_cloud_environment = app.config.otcdocs_cloud_environment
168
+ otcdocs_service_environment = app.config.otcdocs_service_environment
168
169
  otcdocs_environment = app.config.otcdocs_doc_environment
169
170
  current_commit_hash = app.config.current_commit_hash
170
171
  current_commit_time = app.config.current_commit_time
@@ -187,6 +188,12 @@ def _html_page_context(app, pagename, templatename, context, doctree):
187
188
  _html_context_data['otcdocs_search_url'] = (
188
189
  otcdocs_search_url
189
190
  )
191
+ _html_context_data['otcdocs_cloud_environment'] = (
192
+ otcdocs_cloud_environment
193
+ )
194
+ _html_context_data['otcdocs_service_environment'] = (
195
+ otcdocs_service_environment
196
+ )
190
197
  _html_context_data['current_commit_hash'] = (
191
198
  current_commit_hash
192
199
  )
@@ -644,6 +651,7 @@ def setup(app):
644
651
  app.add_config_value('otcdocs_service_title', '', 'env')
645
652
  app.add_config_value('otcdocs_service_type', '', 'env')
646
653
  app.add_config_value('otcdocs_service_category', '', 'env')
654
+ app.add_config_value('otcdocs_service_environment', '', 'env')
647
655
 
648
656
  # search options
649
657
  app.add_config_value('otcdocs_search_environment', 'hc_de', 'env')
@@ -28,10 +28,10 @@
28
28
  <scale-telekom-mega-menu>
29
29
  {% for category in large_category.categories %}
30
30
  <scale-telekom-mega-menu-column>
31
- <a href="{{base_url}}/{{category.name}}" slot="heading" target="_blank" rel="noopener noreferrer">{{category.title}}</a>
31
+ <a href="{{base_url}}/{{category.name}}.html" slot="heading" target="_blank" rel="noopener noreferrer">{{category.title}}</a>
32
32
  <ul>
33
33
  {% for service in category.services %}
34
- <li><a href="{{base_url}}/{{service.service_uri}}" target="_blank" rel="noopener noreferrer">{{service.service_title}}</a></li>
34
+ <li><a href="{{base_url}}/{{service.service_uri}}/index.html" target="_blank" rel="noopener noreferrer">{{service.service_title}}</a></li>
35
35
  {%- endfor %}
36
36
  </ul>
37
37
  </scale-telekom-mega-menu-column>
@@ -42,9 +42,20 @@
42
42
  };
43
43
  </script>
44
44
 
45
- {% if otcdocs_doc_environment == 'internal' %}
46
- <!-- Tracking test for docs-int -->
45
+ {% if (otcdocs_service_environment == 'public' and otcdocs_cloud_environment == 'eu_de') %}
46
+ <!-- Tracking for eu_de -->
47
+ <script defer src="https://analytics.otc-service.com/script.js" data-website-id="4fbc2ff4-37f2-416e-a734-66752bc187ff"></script>
48
+ {% elif (otcdocs_service_environment == 'internal' and otcdocs_cloud_environment == 'eu_de') %}
49
+ <!-- Tracking for eu_de-internal -->
47
50
  <script defer src="https://analytics.otc-service.com/script.js" data-website-id="30235e74-aad1-4afd-aa3d-1281b79b7ec3"></script>
51
+ {% elif (otcdocs_service_environment == 'public' and otcdocs_cloud_environment == 'swiss') %}
52
+ <!-- Tracking for swiss -->
53
+ <script defer src="https://analytics.otc-service.com/script.js" data-website-id="b2193f55-26e2-4c4e-b6bf-feb9a2881277"></script>
54
+ {% elif (otcdocs_service_environment == 'internal' and otcdocs_cloud_environment == 'swiss') %}
55
+ <!-- Tracking for swiss-internal -->
56
+ <script defer src="https://analytics.otc-service.com/script.js" data-website-id="59c4d063-86a4-4d45-b374-74af125b5e9c"></script>
57
+ {%- else %}
58
+ <!-- No tracking enabled -->
48
59
  {% endif %}
49
60
 
50
61
  <!-- Javascript for page -->
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otcdocstheme
3
- Version: 1.12.2
3
+ Version: 1.12.4
4
4
  Summary: OpenTelekomCloud Docs Theme
5
5
  Home-page: https://cloud.otc.com
6
6
  Author: Artem Goncharov
@@ -1,16 +1,16 @@
1
1
  otcdocstheme/__init__.py,sha256=kHGpzkqDom8cEZPjpSfhss5eXeduwAweiCirmJUhQtQ,666
2
- otcdocstheme/ext.py,sha256=S6G1ovLBuqMGCkfrnhmmmXUQpkGCKMgAj4ENXx3OjpY,23895
2
+ otcdocstheme/ext.py,sha256=nw66mx8aR8zV-BNEkw-V6YoZISpqqktD_VzudS1ctKg,24259
3
3
  otcdocstheme/page_context.py,sha256=pg8r0WOmxROxAiA3JnSsx4R2fOZmPtnx1mJ53UKwi7k,3777
4
4
  otcdocstheme/paths.py,sha256=BXdxanQ_efr1B897alU9R281dmSyxwcZe2h04fPzepo,1903
5
5
  otcdocstheme/version.py,sha256=HMEsOyXdr8mSrjHSewgFoXs4fQinhlWDQjC_JPRCMgs,648
6
6
  otcdocstheme/theme/otcdocs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  otcdocstheme/theme/otcdocs/css.html,sha256=uhlcVJXDP6bo42VtnUpJfTW6jHwwPGZOk1kIFXhA_nI,633
8
8
  otcdocstheme/theme/otcdocs/footer.html,sha256=vRgw_qdncMKmPqdNceWLbpaAFOMHSU2J4ZSh6wgxJHo,665
9
- otcdocstheme/theme/otcdocs/header.html,sha256=fA9Zubi-VVMhQaatfjv2GgjJhPj0nV9t6OgewHTx-50,8653
9
+ otcdocstheme/theme/otcdocs/header.html,sha256=OD22igasIgy4MGXlcYHpR4tDs0hqliUcp9R-4fkhBPE,8669
10
10
  otcdocstheme/theme/otcdocs/layout.html,sha256=wS1Nd1iwXXOvJrcjVlBfbdTC_wkjkjXzZH8gBlqCwKg,3749
11
11
  otcdocstheme/theme/otcdocs/license_cc.html,sha256=qp_whwkm9j0gbEv5wjcOyGFm-Xq4UfGObwY5Vj9dpl8,345
12
12
  otcdocstheme/theme/otcdocs/localtoc.html,sha256=CxkyXtelm2stuFlYAxPZBXZsK1nb8IQ83z7PVmCo3ek,1454
13
- otcdocstheme/theme/otcdocs/script_footer.html,sha256=XsXbM0iBOiSiDT_FkWWBCQG-3UhFw92rsYckyQ2KBhY,3618
13
+ otcdocstheme/theme/otcdocs/script_footer.html,sha256=ycZtUDnKWQQ3oeLlBNrRSwi7VUmse3Uza6E7Ej0qpUE,4471
14
14
  otcdocstheme/theme/otcdocs/script_search.html,sha256=igPuFfePYfz3di4r6gyXstgmEPVm7QHiQqzZKnKx5xg,75
15
15
  otcdocstheme/theme/otcdocs/search.html,sha256=RjpJO_IcQvXs9pGWWgCnIvEi8td61nZelMY3Agq4s4U,1203
16
16
  otcdocstheme/theme/otcdocs/sidebartoc.html,sha256=KFHK51DJu5PHA6dLeJCSUy4jmIa8EinDEypCoYyKyaI,606
@@ -540,13 +540,13 @@ otcdocstheme/theme/otcdocs_pdf/fonts/TeleNeo Office Extrabold.ttf,sha256=t24f9p0
540
540
  otcdocstheme/theme/otcdocs_pdf/fonts/TeleNeo Office Medium.ttf,sha256=UQw3EkbxcQPYDes-3py6aPG10Zxfx8_MWk8dLKGKWh0,125764
541
541
  otcdocstheme/theme/otcdocs_pdf/fonts/TeleNeo Office Thin.ttf,sha256=ndNn0Cz6LfzruVFCBpLmOcGfPsDNqY6WB1Inx5hPIiU,116736
542
542
  otcdocstheme/theme/otcdocs_pdf/fonts/TeleNeo Office.ttf,sha256=u-qdXUjzruAaYFWQ85iXCx0uKbDWT-f4oVg_tITysW0,125352
543
- otcdocstheme-1.12.2.data/scripts/docstheme-build-pdf,sha256=IlY2QHQDoX5dvMBOpv0AaAq1laUGzZw8eNHQKh9trmU,1159
544
- otcdocstheme-1.12.2.dist-info/licenses/AUTHORS,sha256=PaFByu8QGpAZPsEO0tuTMzHr4axY5oTzCOiHnbN8Cq8,458
545
- otcdocstheme-1.12.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
546
- otcdocstheme-1.12.2.dist-info/METADATA,sha256=2R1g9TXqRYumo06sEPcLnNeVm3zpVixcIkvGP5BdYKQ,1800
547
- otcdocstheme-1.12.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
548
- otcdocstheme-1.12.2.dist-info/dependency_links.txt,sha256=E0DVutM8F_P-03TbPDd10lqRp9__oJ8fbeR3Lkkolso,93
549
- otcdocstheme-1.12.2.dist-info/entry_points.txt,sha256=grDxfsYOoAtaU51QnEuZG96s3j7NdxnKI-TExSLOOdc,112
550
- otcdocstheme-1.12.2.dist-info/pbr.json,sha256=-27SDJy7nHQEG6MWii5Byv7bjq6tjyPql-cGePa6szo,47
551
- otcdocstheme-1.12.2.dist-info/top_level.txt,sha256=7cQxbm6DSay9Ps85cuRvLzmMMPUzHszwHKjeu5evJYo,13
552
- otcdocstheme-1.12.2.dist-info/RECORD,,
543
+ otcdocstheme-1.12.4.data/scripts/docstheme-build-pdf,sha256=IlY2QHQDoX5dvMBOpv0AaAq1laUGzZw8eNHQKh9trmU,1159
544
+ otcdocstheme-1.12.4.dist-info/licenses/AUTHORS,sha256=PaFByu8QGpAZPsEO0tuTMzHr4axY5oTzCOiHnbN8Cq8,458
545
+ otcdocstheme-1.12.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
546
+ otcdocstheme-1.12.4.dist-info/METADATA,sha256=RKey64qRMawIJE-nh6bCeMlx6viyz9yDPP5scfovXdk,1800
547
+ otcdocstheme-1.12.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
548
+ otcdocstheme-1.12.4.dist-info/dependency_links.txt,sha256=E0DVutM8F_P-03TbPDd10lqRp9__oJ8fbeR3Lkkolso,93
549
+ otcdocstheme-1.12.4.dist-info/entry_points.txt,sha256=grDxfsYOoAtaU51QnEuZG96s3j7NdxnKI-TExSLOOdc,112
550
+ otcdocstheme-1.12.4.dist-info/pbr.json,sha256=ofuYU17uy8h6TYHzeFFuNnK5mA50Z5mhbWY0oE2earI,47
551
+ otcdocstheme-1.12.4.dist-info/top_level.txt,sha256=7cQxbm6DSay9Ps85cuRvLzmMMPUzHszwHKjeu5evJYo,13
552
+ otcdocstheme-1.12.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1 @@
1
+ {"git_version": "68666cb", "is_release": false}
@@ -1 +0,0 @@
1
- {"git_version": "dbca5c4", "is_release": false}