jekyll-theme-amethyst 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d478567d792fb9752288273d79106286df6ef6ef3031d87fdcf16d63020c0d7d
4
- data.tar.gz: 938cf6b1fe0b22eecb926cc6dc4315e27949e644c3682df2312fc3e90749f409
3
+ metadata.gz: 68cfabbda5545392278fc9d9c2cb3474eff1887f8767d5a5b9139ca0704dbb19
4
+ data.tar.gz: 6b51b157d9a5f17b4827014c17eb720c499ea1aef854701ab4a1e44aaf07def9
5
5
  SHA512:
6
- metadata.gz: 581e0dd5940ff83d59bddaa0ffa0ccd2e03de9c3359cf2e2b89a101d50d54e2d1613ec3af8ae197588a8e77c30812066c5e1fc1c0bb15537914ba0f1533e6ab1
7
- data.tar.gz: 404fe3d0b4e3abe29168e9a8e644d6e5f482e821c4b05eec34d30e3c976bacbb73f78ed1b0d2e639f8a05438ab9d234ee7dedc63de19e7c21fa26b00392581df
6
+ metadata.gz: e123815db6ee3f4ccc22520372a2818946e4ddab08602644c5fcd0fc66387079c88dd3c0eef81074df51bcb85c32bceab2f577a6c74a80e4af4dd25de4568b58
7
+ data.tar.gz: d729d127294a7f520a565c389cc2679a674f339761e0f4c5d5ee992cbf62abdf9e19a155282796fdf1cb834e4088f6db0dbb894c9d3f7e7fdfd6ae6477e1f4a3
@@ -1,13 +1,25 @@
1
1
  name: Update search index
2
2
  on:
3
+ # For Algolia, we can update search right away in parallel
4
+ # with the github-pages build, since it pushes content
5
+ # into the index from the local working directory.
3
6
  push:
4
- branches:
5
- - main
7
+ branches:
8
+ - main
9
+ # For MeiliSearch, we crawl the site after it has been
10
+ # built and published by the github-pages workflow
11
+ workflow_run:
12
+ workflows:
13
+ - github-pages
14
+ types:
15
+ - completed
16
+ # Or manually
17
+ workflow_dispatch:
6
18
 
7
19
  jobs:
8
20
  run:
9
- name: Update search index
10
- runs-on: ubuntu-18.04
21
+ name: Algolia
22
+ runs-on: ubuntu-20.04
11
23
  steps:
12
24
  - uses: actions/checkout@v2
13
25
 
@@ -22,11 +22,11 @@ jobs:
22
22
  git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}"
23
23
 
24
24
  - uses: ruby/setup-ruby@v1
25
- # If your site is in a subdirectory
26
- # working-directory: ./
27
25
  with:
28
26
  ruby-version: 2.7
29
27
  bundler-cache: true
28
+ # If your site is in a subdirectory
29
+ # working-directory: ./
30
30
 
31
31
  - name: Jekyll build
32
32
  # If your site is in a subdirectory
data/.meilisearch.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "index_uid": "jekyll-theme-amethyst",
3
+ "start_urls": ["https://qunitjs.github.io/jekyll-theme-amethyst/"],
4
+ "stop_urls": [],
5
+ "selectors": {
6
+ "default": {
7
+ "lvl0": {
8
+ "selector": ".sidebar-title-open",
9
+ "global": true,
10
+ "default_value": "Documentation"
11
+ },
12
+ "lvl1": "h1",
13
+ "lvl2": "h2",
14
+ "lvl3": "h3",
15
+ "lvl4": "h4",
16
+ "lvl5": "h5",
17
+ "content": "p,li,tr,pre"
18
+ }
19
+ }
20
+ }
data/_config.yml CHANGED
@@ -47,7 +47,7 @@ amethyst:
47
47
  gitter: qunitjs/qunit
48
48
  # https://github.com/qunitjs/jekyll-theme-amethyst/blob/main/docs/getting-started.md#enable-algolia-search
49
49
  algolia:
50
- search_only_api_key: f37678e47d7730bbf340e904a81fbbbd
50
+ search_only_api_key: f93ac48385f4f5866ffe9227829b329e
51
51
 
52
52
 
53
53
  # Conversion settings
@@ -71,7 +71,7 @@ sass:
71
71
  #
72
72
  # Docs: https://github.com/algolia/jekyll-algolia
73
73
  algolia:
74
- application_id: 4HMKKPGKKN
74
+ application_id: 2Q66ROFTLQ
75
75
  index_name: amethyst-demo
76
76
  # By default only HTML paragraphs are indexed (and headings, albeit through a different mechanism).
77
77
  # * Include list items (similar to paragraphs).
@@ -45,5 +45,11 @@
45
45
  {% endif %}
46
46
  <meta name="twitter:card" content="summary_large_image">
47
47
 
48
+
49
+ {% if layout.amethyst.pagetype == "navigation" %}
50
+ <meta name="robots" content="{{ layout.amethyst.robots | default: 'noindex,follow' }}">
51
+ <meta name="docsearch:amethyst_pagetype_navigation" content="1">
52
+ {% endif %}
53
+
48
54
  {% endcapture -%}
49
55
  {{ opengraph | strip_newlines }}
data/_layouts/group.html CHANGED
@@ -3,6 +3,7 @@ layout: page-api
3
3
  amethyst:
4
4
  toc: false
5
5
  prepend_description_heading: false
6
+ pagetype: navigation
6
7
 
7
8
  # Parameters:
8
9
  #
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  layout: wrapper
3
+ amethyst:
4
+ pagetype: navigation
3
5
  ---
4
6
 
5
7
  <div class="main main--columns wrapper">
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  layout: wrapper
3
+ amethyst:
4
+ pagetype: navigation
3
5
  ---
4
6
 
5
7
  <div class="main main--columns wrapper">
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  layout: wrapper
3
+ amethyst:
4
+ pagetype: navigation
3
5
  ---
4
6
 
5
7
  <div class="main main--columns wrapper">
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  layout: wrapper
3
+ amethyst:
4
+ pagetype: navigation
3
5
  ---
4
6
 
5
7
  <div class="main main--columns wrapper">
data/_layouts/posts.html CHANGED
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  layout: wrapper
3
+ amethyst:
4
+ pagetype: navigation
5
+ robots: index
3
6
  ---
4
7
 
5
8
  <div class="main main--columns wrapper">
data/_sass/amethyst.scss CHANGED
@@ -306,7 +306,7 @@ table {
306
306
  img {
307
307
  width: auto;
308
308
  height: $size-4;
309
- margin-right: $size-spacing / 2;
309
+ margin-right: calc($size-spacing / 2);
310
310
  }
311
311
  }
312
312
 
@@ -618,7 +618,7 @@ table {
618
618
  vertical-align: top;
619
619
  // Nominal size is 485x120
620
620
  background: url(./logo-algolia.svg);
621
- width: (485 / 120) * 0.8rem;
621
+ width: calc((485 / 120) * 0.8rem);
622
622
  height: 0.8rem;
623
623
  }
624
624
  }
@@ -706,7 +706,7 @@ table {
706
706
 
707
707
  .sidebar h4 {
708
708
  font-size: $size-1;
709
- margin: $size-spacing 0 #{$box-spacing / 2} 0;
709
+ margin: $size-spacing 0 calc($box-spacing / 2) 0;
710
710
  padding-left: 4px;
711
711
  }
712
712
 
@@ -731,7 +731,7 @@ table {
731
731
  // Larger and more consistent click target
732
732
  display: block;
733
733
 
734
- padding: $box-spacing / 2 $box-spacing / 2;
734
+ padding: calc($box-spacing / 2);
735
735
 
736
736
  color: $color-accent;
737
737
  text-decoration: none;
@@ -748,6 +748,10 @@ table {
748
748
  position: sticky;
749
749
  top: 0;
750
750
  }
751
+ .toc-wrapper .toc {
752
+ max-height: calc( 100vh - 2.5rem );
753
+ overflow-y: auto;
754
+ }
751
755
  .toc,
752
756
  .toc ol {
753
757
  list-style-type: none;
data/amethyst.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "jekyll-theme-amethyst"
3
- spec.version = "0.4.1"
3
+ spec.version = "0.4.2"
4
4
  spec.summary = "https://github.com/qunitjs/jekyll-theme-amethyst"
5
5
  spec.authors = ["Timo Tijhof", "Trent Willis"]
6
6
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-amethyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Tijhof
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-20 00:00:00.000000000 Z
12
+ date: 2023-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -126,6 +126,7 @@ files:
126
126
  - ".github/workflows/github-pages.yaml"
127
127
  - ".github/workflows/spider-check.yaml"
128
128
  - ".gitignore"
129
+ - ".meilisearch.json"
129
130
  - 404.md
130
131
  - Gemfile
131
132
  - LICENSE.txt
@@ -215,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  requirements: []
218
- rubygems_version: 3.1.2
219
+ rubygems_version: 3.3.5
219
220
  signing_key:
220
221
  specification_version: 4
221
222
  summary: https://github.com/qunitjs/jekyll-theme-amethyst