otcdocstheme 1.12.4__py3-none-any.whl → 1.12.6__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 +6 -0
- otcdocstheme/theme/otcdocs/script_footer.html +11 -1
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/METADATA +1 -1
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/RECORD +12 -12
- otcdocstheme-1.12.6.dist-info/pbr.json +1 -0
- otcdocstheme-1.12.4.dist-info/pbr.json +0 -1
- {otcdocstheme-1.12.4.data → otcdocstheme-1.12.6.data}/scripts/docstheme-build-pdf +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/WHEEL +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/dependency_links.txt +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/entry_points.txt +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/licenses/AUTHORS +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/licenses/LICENSE +0 -0
- {otcdocstheme-1.12.4.dist-info → otcdocstheme-1.12.6.dist-info}/top_level.txt +0 -0
otcdocstheme/ext.py
CHANGED
|
@@ -169,6 +169,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
|
|
|
169
169
|
otcdocs_environment = app.config.otcdocs_doc_environment
|
|
170
170
|
current_commit_hash = app.config.current_commit_hash
|
|
171
171
|
current_commit_time = app.config.current_commit_time
|
|
172
|
+
otcdocs_analytics_app = app.config.otcdocs_analytics_app
|
|
172
173
|
_html_context_data['repository_name'] = repo_name
|
|
173
174
|
_html_context_data['otcdocs_doc_environment'] = (
|
|
174
175
|
app.config.otcdocs_doc_environment
|
|
@@ -200,6 +201,9 @@ def _html_page_context(app, pagename, templatename, context, doctree):
|
|
|
200
201
|
_html_context_data['current_commit_time'] = (
|
|
201
202
|
current_commit_time
|
|
202
203
|
)
|
|
204
|
+
_html_context_data['otcdocs_analytics_app'] = (
|
|
205
|
+
otcdocs_analytics_app
|
|
206
|
+
)
|
|
203
207
|
|
|
204
208
|
# Header automation
|
|
205
209
|
if otcdocs_environment == "internal":
|
|
@@ -659,6 +663,8 @@ def setup(app):
|
|
|
659
663
|
app.add_config_value('otcdocs_search_url',
|
|
660
664
|
'https://opensearch.eco.tsi-dev.otc-service.com/',
|
|
661
665
|
'env')
|
|
666
|
+
# Analytics options
|
|
667
|
+
app.add_config_value('otcdocs_analytics_app', '', 'env')
|
|
662
668
|
|
|
663
669
|
# autogenerated git values
|
|
664
670
|
app.add_config_value('current_commit_hash', '', 'env')
|
|
@@ -42,7 +42,16 @@
|
|
|
42
42
|
};
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
|
-
{% if (
|
|
45
|
+
{% if (otcdocs_analytics_app == 'otcextensions') %}
|
|
46
|
+
<!-- Tracking for OTC Extensions -->
|
|
47
|
+
<script defer src="https://analytics.otc-service.com/script.js" data-website-id="2e445f86-0e94-4c64-b0cc-f4c350ed5555"></script>
|
|
48
|
+
{% elif (otcdocs_analytics_app == 'terraform') %}
|
|
49
|
+
<!-- Tracking for Terraform -->
|
|
50
|
+
<script defer src="https://analytics.otc-service.com/script.js" data-website-id="4ea89659-7394-48fd-8d1f-c2e4e57ef1ed"></script>
|
|
51
|
+
{% elif (otcdocs_analytics_app == 'ansible_modules') %}
|
|
52
|
+
<!-- Tracking for Ansible Modules -->
|
|
53
|
+
<script defer src="https://analytics.otc-service.com/script.js" data-website-id="e54dc2e1-1782-4bac-bdb2-f130bbe19e39"></script>
|
|
54
|
+
{% elif (otcdocs_service_environment == 'public' and otcdocs_cloud_environment == 'eu_de') %}
|
|
46
55
|
<!-- Tracking for eu_de -->
|
|
47
56
|
<script defer src="https://analytics.otc-service.com/script.js" data-website-id="4fbc2ff4-37f2-416e-a734-66752bc187ff"></script>
|
|
48
57
|
{% elif (otcdocs_service_environment == 'internal' and otcdocs_cloud_environment == 'eu_de') %}
|
|
@@ -54,6 +63,7 @@
|
|
|
54
63
|
{% elif (otcdocs_service_environment == 'internal' and otcdocs_cloud_environment == 'swiss') %}
|
|
55
64
|
<!-- Tracking for swiss-internal -->
|
|
56
65
|
<script defer src="https://analytics.otc-service.com/script.js" data-website-id="59c4d063-86a4-4d45-b374-74af125b5e9c"></script>
|
|
66
|
+
|
|
57
67
|
{%- else %}
|
|
58
68
|
<!-- No tracking enabled -->
|
|
59
69
|
{% endif %}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
otcdocstheme/__init__.py,sha256=kHGpzkqDom8cEZPjpSfhss5eXeduwAweiCirmJUhQtQ,666
|
|
2
|
-
otcdocstheme/ext.py,sha256=
|
|
2
|
+
otcdocstheme/ext.py,sha256=QJiU7mzEfP1QTx9f2Jur4BBvmzfA9kokd6_76h5VKZY,24509
|
|
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
|
|
@@ -10,7 +10,7 @@ otcdocstheme/theme/otcdocs/header.html,sha256=OD22igasIgy4MGXlcYHpR4tDs0hqliUcp9
|
|
|
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=
|
|
13
|
+
otcdocstheme/theme/otcdocs/script_footer.html,sha256=Wmi020vD1bQ-oHEo01N-TsM4fKg9IdabBr2XAUWCfcA,5126
|
|
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.
|
|
544
|
-
otcdocstheme-1.12.
|
|
545
|
-
otcdocstheme-1.12.
|
|
546
|
-
otcdocstheme-1.12.
|
|
547
|
-
otcdocstheme-1.12.
|
|
548
|
-
otcdocstheme-1.12.
|
|
549
|
-
otcdocstheme-1.12.
|
|
550
|
-
otcdocstheme-1.12.
|
|
551
|
-
otcdocstheme-1.12.
|
|
552
|
-
otcdocstheme-1.12.
|
|
543
|
+
otcdocstheme-1.12.6.data/scripts/docstheme-build-pdf,sha256=IlY2QHQDoX5dvMBOpv0AaAq1laUGzZw8eNHQKh9trmU,1159
|
|
544
|
+
otcdocstheme-1.12.6.dist-info/licenses/AUTHORS,sha256=PaFByu8QGpAZPsEO0tuTMzHr4axY5oTzCOiHnbN8Cq8,458
|
|
545
|
+
otcdocstheme-1.12.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
546
|
+
otcdocstheme-1.12.6.dist-info/METADATA,sha256=ihHgF3R3T6a5q1voG0TUccCLJF2cixwE4jQxkk16Mzs,1800
|
|
547
|
+
otcdocstheme-1.12.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
548
|
+
otcdocstheme-1.12.6.dist-info/dependency_links.txt,sha256=E0DVutM8F_P-03TbPDd10lqRp9__oJ8fbeR3Lkkolso,93
|
|
549
|
+
otcdocstheme-1.12.6.dist-info/entry_points.txt,sha256=grDxfsYOoAtaU51QnEuZG96s3j7NdxnKI-TExSLOOdc,112
|
|
550
|
+
otcdocstheme-1.12.6.dist-info/pbr.json,sha256=utQHxzOzD6Ekv8cRl9zjMvE21WLaeBbjhNRAg1F8CRg,47
|
|
551
|
+
otcdocstheme-1.12.6.dist-info/top_level.txt,sha256=7cQxbm6DSay9Ps85cuRvLzmMMPUzHszwHKjeu5evJYo,13
|
|
552
|
+
otcdocstheme-1.12.6.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "3e106b2", "is_release": false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "68666cb", "is_release": false}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|