jekyll-theme-centos 2.52.0.beta.79 → 2.52.0.beta.81

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/assets/js/base/highlight.js +7 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b990c61640d3b32c7cbd850d7a2cefd242c7dc294441e900cd5ba58c799f265
4
- data.tar.gz: 4d4dee0ce7d789549891d898f6e319298a1e43b7d91a333e05837d2b4f347646
3
+ metadata.gz: a1e0e81fb15b4954ed0be73f2342a0cb0b2e0bb7767deb24903b29a573319a39
4
+ data.tar.gz: e753c11b15275b7e27cea245e701b6ab7eaff01912ed00bfea18a399b935b14a
5
5
  SHA512:
6
- metadata.gz: '0983a61c93b725fbb45ae64b5b51e2314dc6e984784ca9ed1ec216a85eaa867b9cc7e36a342351978a441f59b3cbb165df970991873d5efcebef390a05c63dbd'
7
- data.tar.gz: 1340c3efc761f3991f2440a47bbdba2c023f9a050765dc8093dfea21bce956e7e0d737a9551e1cff8833c5ae73dec0cab6b2e49ed48d9003dc55415053d57412
6
+ metadata.gz: a5f4590291509f7a24190d78eb80b2a844e268ed3907add675d05f60d1d4a11b1dfa2daa4ae5b01af8347af789af7ccbd1ae9edca9660b7c2e6cbcba7d11d736
7
+ data.tar.gz: 96f76da0458659ccccc7ccc671844dd6c639554944382e8e766d72875fba67731760dea823ab0a78017b01280abe907f089ebf6263d643e7fbe6ce5bbb478f6b
@@ -1,7 +1,12 @@
1
1
  // Highlight.js Initialization
2
2
  // Initializes syntax highlighting on all code blocks with 'hljs' class
3
3
  // Enables copy-to-clipboard functionality via highlightjs-copy plugin
4
- (function () {
4
+
5
+ // This script tag lives in <head>, before <body> exists. defer normally
6
+ // delays execution until after parsing, but consumers that inline this
7
+ // file (e.g. monolith bundling) drop the src that defer depends on, so the
8
+ // wait for DOMContentLoaded is done explicitly instead of relying on it.
9
+ document.addEventListener('DOMContentLoaded', () => {
5
10
  if (typeof hljs === 'undefined' || typeof CopyButtonPlugin === 'undefined') {
6
11
  console.warn('highlight: hljs or CopyButtonPlugin not available')
7
12
  return
@@ -9,4 +14,4 @@
9
14
  document.querySelectorAll('.content code').forEach(el => el.classList.add('hljs'))
10
15
  hljs.addPlugin(new CopyButtonPlugin())
11
16
  hljs.highlightAll()
12
- })()
17
+ })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.52.0.beta.79
4
+ version: 2.52.0.beta.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado