jekyll-theme-amethyst 0.4.0 → 0.4.2
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 +4 -4
- data/.github/workflows/doc-search.yaml +16 -4
- data/.github/workflows/github-pages.yaml +2 -2
- data/.meilisearch.json +20 -0
- data/_config.yml +2 -2
- data/_includes/opengraph.html +6 -0
- data/_layouts/group.html +2 -0
- data/_layouts/page-api.html +16 -0
- data/_layouts/posts-archive.html +2 -0
- data/_layouts/posts-author.html +2 -0
- data/_layouts/posts-tag.html +2 -0
- data/_layouts/posts-year.html +2 -0
- data/_layouts/posts.html +3 -0
- data/_sass/amethyst.scss +13 -4
- data/amethyst.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68cfabbda5545392278fc9d9c2cb3474eff1887f8767d5a5b9139ca0704dbb19
|
|
4
|
+
data.tar.gz: 6b51b157d9a5f17b4827014c17eb720c499ea1aef854701ab4a1e44aaf07def9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
5
|
-
|
|
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:
|
|
10
|
-
runs-on: ubuntu-
|
|
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:
|
|
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:
|
|
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).
|
data/_includes/opengraph.html
CHANGED
|
@@ -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
data/_layouts/page-api.html
CHANGED
|
@@ -6,9 +6,25 @@ layout: wrapper
|
|
|
6
6
|
# - version_added: semver string (e.g. "1.2.3"). Can be linked by setting `site.amethyst.release_base`.
|
|
7
7
|
# - version_deprecated: semver string
|
|
8
8
|
# - version_removed: semver string
|
|
9
|
+
# - amethyst.prepend_description_heading: boolean. Default: true.
|
|
9
10
|
#
|
|
10
11
|
---
|
|
11
12
|
|
|
13
|
+
{%- comment -%}
|
|
14
|
+
Prepend "Description" header.
|
|
15
|
+
This makes sure the accessibility tree is valid since we generally want to
|
|
16
|
+
use H3 within the top section before later sections like "Changelog" and
|
|
17
|
+
"Examples". But, visually we merge the page title and "Description" together.
|
|
18
|
+
|
|
19
|
+
Rather than require a special class to be put on every page, we instead
|
|
20
|
+
do that here for convenience.
|
|
21
|
+
{%- endcomment -%}
|
|
22
|
+
{%- unless page.amethyst.prepend_description_heading == false or layout.amethyst.prepend_description_heading == false -%}
|
|
23
|
+
{%- capture content -%}
|
|
24
|
+
<h2 id="description" class="screen-reader-text h-api-desc">Description</h2>
|
|
25
|
+
{{ content }}
|
|
26
|
+
{%- endcapture -%}
|
|
27
|
+
{%- endunless -%}
|
|
12
28
|
<div class="main main--columns wrapper">
|
|
13
29
|
<div class="content" role="main">
|
|
14
30
|
<h1>{{ page.title }}</h1>
|
data/_layouts/posts-archive.html
CHANGED
data/_layouts/posts-author.html
CHANGED
data/_layouts/posts-tag.html
CHANGED
data/_layouts/posts-year.html
CHANGED
data/_layouts/posts.html
CHANGED
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
|
|
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
|
|
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;
|
|
@@ -805,6 +809,11 @@ table {
|
|
|
805
809
|
|
|
806
810
|
/* Layout: page-api */
|
|
807
811
|
|
|
812
|
+
.h-api-desc {
|
|
813
|
+
// Let anchor jump to page title
|
|
814
|
+
margin-top: -6rem;
|
|
815
|
+
}
|
|
816
|
+
|
|
808
817
|
.version-details {
|
|
809
818
|
font-size: $size-sm;
|
|
810
819
|
font-weight: bold;
|
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.
|
|
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.
|
|
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:
|
|
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.
|
|
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
|