jekyll-theme-docsteer 1.1.0 → 1.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efd8a4dee01456dd316c9a4ba45f0762ebed0255b192413774687b8f6ce7143e
4
- data.tar.gz: 7fc1744dcf4232e345625ad934ed9d9fd4468f705ca5099fe79d4233e980331a
3
+ metadata.gz: b2ee10acc2404b6708248c369c064fe563d95a4bf5df02a084ce2a299d6de645
4
+ data.tar.gz: fabb696639be506d1ca94c6a02e08581cc59b523e83b46be118a9f01c5c3212b
5
5
  SHA512:
6
- metadata.gz: 66657360820626321676e5100f51c159ba900fb00de2b22c253f68036889120bc9a00c8c19f9079f74ca7db6c9cdf7d84fa2e33c5669273e36f511cf250a839e
7
- data.tar.gz: 39543eee91a6f6c3ed311941e5e5ab953bc7f9e0dabd8ef9feec253bd8933dc386f4924912d05aaf5ade2615b7a0d8ecef81a0b1db4828a07c96c52b1650e9e9
6
+ metadata.gz: 296d084e1c436f2aa5f885133e193dc34e5b2331d1bfd9ba7ac571a59dbab94be2cb724564c7a9fbcbd0248e02419116897e317dcca2dcee1e952aa0b9e5d5ac
7
+ data.tar.gz: c65f385b365594482ae3880ab4cbd42bf89f85a7018e2f8e7413c17dd683df9f36ab456d168745f83be5632ab1e49fa27a793247609a3210b813520d7b7ade21
data/_includes/head.html CHANGED
@@ -46,7 +46,7 @@
46
46
  {% endif %}
47
47
 
48
48
  {% if cfg.search.enabled %}
49
- <link rel="preload" as="fetch" href="{{ '/search.json' | relative_url }}" crossorigin>
49
+ <link rel="preload" as="fetch" href="{{ '/search.json' | relative_url }}?v={{ ds_index_v }}" crossorigin>
50
50
  {% endif %}
51
51
 
52
52
  {% if cfg.analytics.plausible_domain %}
@@ -4,7 +4,7 @@
4
4
  baseurl: "{{ site.baseurl }}",
5
5
  search: {
6
6
  enabled: {{ cfg.search.enabled | default: false }},
7
- endpoint: "{{ '/search.json' | relative_url }}",
7
+ endpoint: "{{ '/search.json' | relative_url }}?v={{ ds_index_v }}",
8
8
  max: {{ cfg.search.max_results | default: 8 }},
9
9
  hotkey: {{ cfg.search.hotkey | default: false }}
10
10
  },
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div class="search-modal__body">
15
15
  <ul class="search-results" id="searchResults" role="listbox"
16
- data-endpoint="{{ '/search.json' | relative_url }}"
16
+ data-endpoint="{{ '/search.json' | relative_url }}?v={{ ds_index_v }}"
17
17
  data-max="{{ cfg.search.max_results | default: 8 }}"></ul>
18
18
  <p class="search-modal__empty" id="searchEmpty" hidden>No results. Try another term.</p>
19
19
  <p class="search-modal__hint" id="searchHint">
@@ -8,7 +8,16 @@
8
8
  site.time so a content-only rebuild does not force every visitor to
9
9
  re-download assets that did not change.
10
10
  {%- endcomment -%}
11
- {%- assign ds_version = "1.1.0" -%}
11
+ {%- assign ds_version = "1.1.1" -%}
12
+ {%- comment -%}
13
+ The search index gets its own token, and a different kind of one. search.json
14
+ is regenerated from the site's content, so it changes when you publish a page
15
+ and not when the theme is upgraded: keyed to ds_version it would go stale the
16
+ moment you added a doc, and readers would keep searching last release's
17
+ index. Build time is the honest key here, and the cost of busting it on every
18
+ deploy is one small JSON, not the whole stylesheet.
19
+ {%- endcomment -%}
20
+ {%- assign ds_index_v = site.time | date: "%s" -%}
12
21
  <html lang="{{ site.lang | default: 'en' }}"
13
22
  data-skin="{{ skin }}"
14
23
  {% if mode != "auto" %}data-mode="{{ mode }}"{% endif %}>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-docsteer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristian Castellari