otcdocstheme 1.12.5__py3-none-any.whl → 1.12.7__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
@@ -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')
@@ -60,3 +60,21 @@ function addCopyButtonToCode() {
60
60
  $(function () {
61
61
  addCopyButtonToCode();
62
62
  });
63
+
64
+ // Tracking code for PDF downloads
65
+ document.addEventListener("DOMContentLoaded", function () {
66
+ const buttons = document.querySelectorAll('[data-umami-event="PDF Download"]');
67
+
68
+ buttons.forEach(button => {
69
+ button.addEventListener("click", () => {
70
+ const pdfName = button.getAttribute("data-umami-event-pdfname");
71
+
72
+ // Check whether umami has been loaded, else just don't do anything
73
+ if (typeof umami === "object" && typeof umami.track === "function") {
74
+ umami.track("PDF Download", {
75
+ pdfname: pdfName
76
+ });
77
+ }
78
+ });
79
+ });
80
+ });
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otcdocstheme
3
- Version: 1.12.5
3
+ Version: 1.12.7
4
4
  Summary: OpenTelekomCloud Docs Theme
5
5
  Home-page: https://cloud.otc.com
6
6
  Author: Artem Goncharov
@@ -1,5 +1,5 @@
1
1
  otcdocstheme/__init__.py,sha256=kHGpzkqDom8cEZPjpSfhss5eXeduwAweiCirmJUhQtQ,666
2
- otcdocstheme/ext.py,sha256=nw66mx8aR8zV-BNEkw-V6YoZISpqqktD_VzudS1ctKg,24259
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
@@ -53,7 +53,7 @@ otcdocstheme/theme/otcdocs/static/js/bootstrap.bundle.min.js.map,sha256=4AIg-DUv
53
53
  otcdocstheme/theme/otcdocs/static/js/clipboard.min.js,sha256=4XodgW4TwIJuDtf-v6vDJ39FVxI0veC_kSCCmnFp7ck,9160
54
54
  otcdocstheme/theme/otcdocs/static/js/docs.js,sha256=S__-6qjdWrJ-yyZUCrAyhJgWfMAeVgikBkOoz32t_yU,5395
55
55
  otcdocstheme/theme/otcdocs/static/js/jquery-3.6.4.min.js,sha256=oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl-cbzUq8,89795
56
- otcdocstheme/theme/otcdocs/static/js/otc_helpers.js,sha256=fX6woG2b8CLM6hGHDSaT8DZHtQkdnz7OIs1R0mG-Dm4,1841
56
+ otcdocstheme/theme/otcdocs/static/js/otc_helpers.js,sha256=2_usqElVyxpgmEVMMvt6h2O7JsAr-dLk5jTCCBzovHE,2420
57
57
  otcdocstheme/theme/otcdocs/static/js/search.js,sha256=pOkGyN7jVFJZzr6bmu7h_PGnhXM5V40olWptQjleirk,34441
58
58
  otcdocstheme/theme/otcdocs/static/js/underscore.js,sha256=IY-xwfxy6a9rhm9DC-Kmf6N2OStNsvTb8ydyZxtq5Vw,19530
59
59
  otcdocstheme/theme/otcdocs/static/scale-components/.npmignore,sha256=eYpkQTHyUR7QgvRu5BF92sY426wJK8CEYZZ3tb6eHts,108
@@ -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.5.data/scripts/docstheme-build-pdf,sha256=IlY2QHQDoX5dvMBOpv0AaAq1laUGzZw8eNHQKh9trmU,1159
544
- otcdocstheme-1.12.5.dist-info/licenses/AUTHORS,sha256=PaFByu8QGpAZPsEO0tuTMzHr4axY5oTzCOiHnbN8Cq8,458
545
- otcdocstheme-1.12.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
546
- otcdocstheme-1.12.5.dist-info/METADATA,sha256=-bBgKLpizOjVYwKXGAfPQcET1QxkSg37E12J7XR4O5Y,1800
547
- otcdocstheme-1.12.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
548
- otcdocstheme-1.12.5.dist-info/dependency_links.txt,sha256=E0DVutM8F_P-03TbPDd10lqRp9__oJ8fbeR3Lkkolso,93
549
- otcdocstheme-1.12.5.dist-info/entry_points.txt,sha256=grDxfsYOoAtaU51QnEuZG96s3j7NdxnKI-TExSLOOdc,112
550
- otcdocstheme-1.12.5.dist-info/pbr.json,sha256=6Om1YP6bif_1K3YfJCFelFFwW4RwqiKZEabaftG7b9I,47
551
- otcdocstheme-1.12.5.dist-info/top_level.txt,sha256=7cQxbm6DSay9Ps85cuRvLzmMMPUzHszwHKjeu5evJYo,13
552
- otcdocstheme-1.12.5.dist-info/RECORD,,
543
+ otcdocstheme-1.12.7.data/scripts/docstheme-build-pdf,sha256=IlY2QHQDoX5dvMBOpv0AaAq1laUGzZw8eNHQKh9trmU,1159
544
+ otcdocstheme-1.12.7.dist-info/licenses/AUTHORS,sha256=PaFByu8QGpAZPsEO0tuTMzHr4axY5oTzCOiHnbN8Cq8,458
545
+ otcdocstheme-1.12.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
546
+ otcdocstheme-1.12.7.dist-info/METADATA,sha256=K2VdZPirxHOavPk7vzBj2y7jnB_XZyQqtcFKsysiXIA,1800
547
+ otcdocstheme-1.12.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
548
+ otcdocstheme-1.12.7.dist-info/dependency_links.txt,sha256=E0DVutM8F_P-03TbPDd10lqRp9__oJ8fbeR3Lkkolso,93
549
+ otcdocstheme-1.12.7.dist-info/entry_points.txt,sha256=grDxfsYOoAtaU51QnEuZG96s3j7NdxnKI-TExSLOOdc,112
550
+ otcdocstheme-1.12.7.dist-info/pbr.json,sha256=7ymNPWb2ePsT8RNhKi_ulRcQcp6_2dfEC8Si6qMTrHg,47
551
+ otcdocstheme-1.12.7.dist-info/top_level.txt,sha256=7cQxbm6DSay9Ps85cuRvLzmMMPUzHszwHKjeu5evJYo,13
552
+ otcdocstheme-1.12.7.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "cb0cc8b", "is_release": false}
@@ -1 +0,0 @@
1
- {"git_version": "503cee6", "is_release": false}