jekyll-theme-amethyst 0.2.0

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 (76) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/doc-search.yaml +25 -0
  3. data/.github/workflows/gem.yaml +25 -0
  4. data/.github/workflows/github-pages.yaml +47 -0
  5. data/.github/workflows/spider-check.yaml +52 -0
  6. data/.gitignore +4 -0
  7. data/404.md +9 -0
  8. data/Gemfile +6 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +35 -0
  11. data/_config.yml +91 -0
  12. data/_data/sidebar_api.yml +13 -0
  13. data/_data/sidebar_blog.yml +11 -0
  14. data/_data/sitenav.yml +11 -0
  15. data/_includes/opengraph.html +49 -0
  16. data/_includes/search-js.html +113 -0
  17. data/_includes/search.html +14 -0
  18. data/_includes/sidebar.html +89 -0
  19. data/_includes/version.html +28 -0
  20. data/_layouts/group.html +14 -0
  21. data/_layouts/home.html +25 -0
  22. data/_layouts/page-api.html +32 -0
  23. data/_layouts/page.html +17 -0
  24. data/_layouts/post.html +37 -0
  25. data/_layouts/posts-archive.html +17 -0
  26. data/_layouts/posts-author.html +21 -0
  27. data/_layouts/posts-tag.html +24 -0
  28. data/_layouts/posts-year.html +24 -0
  29. data/_layouts/posts.html +28 -0
  30. data/_layouts/wrapper.html +132 -0
  31. data/_posts/2006-01-26-announcing-the-blog.md +13 -0
  32. data/_posts/2006-10-18-foo-110.md +13 -0
  33. data/_posts/2007-10-18-foo-112.md +13 -0
  34. data/_posts/2008-10-18-foo-126.md +13 -0
  35. data/_posts/2009-10-18-foo-132.md +13 -0
  36. data/_posts/2010-10-18-foo-143.md +13 -0
  37. data/_posts/2011-10-18-foo-171.md +13 -0
  38. data/_posts/2012-10-18-foo-183.md +13 -0
  39. data/_posts/2013-10-18-foo-191.md +13 -0
  40. data/_posts/2014-10-18-foo-211.md +13 -0
  41. data/_posts/2015-10-18-foo-300.md +13 -0
  42. data/_posts/2017-10-18-foo-321.md +13 -0
  43. data/_posts/2018-10-18-foo-331.md +13 -0
  44. data/_posts/2019-10-18-foo-341.md +13 -0
  45. data/_posts/2020-04-01-foo-350.md +13 -0
  46. data/_posts/2020-10-18-foo-351.md +13 -0
  47. data/_posts/2021-04-01-hello-world.md +51 -0
  48. data/_sass/amethyst-variables.scss +22 -0
  49. data/_sass/amethyst.scss +906 -0
  50. data/_sass/custom.scss +2 -0
  51. data/_sass/highlight.scss +131 -0
  52. data/about.md +28 -0
  53. data/amethyst.gemspec +23 -0
  54. data/api/deprecated.md +5 -0
  55. data/api/foo/baz.md +49 -0
  56. data/api/foo/index.md +5 -0
  57. data/api/foo/quux.md +9 -0
  58. data/api/index.md +8 -0
  59. data/api/lorem/dolor.md +14 -0
  60. data/api/lorem/index.md +5 -0
  61. data/api/lorem/sit.md +15 -0
  62. data/api/removed.md +5 -0
  63. data/assets/logo-algolia.svg +1 -0
  64. data/assets/styles.scss +7 -0
  65. data/blog-archive.md +4 -0
  66. data/blog.md +4 -0
  67. data/docs/config.md +122 -0
  68. data/docs/getting-started.md +77 -0
  69. data/favicon.svg +3 -0
  70. data/guides.md +11 -0
  71. data/index.md +51 -0
  72. data/intro.md +41 -0
  73. data/lib/jekyll-theme-amethyst.rb +39 -0
  74. data/tag/event.md +5 -0
  75. data/tag/release.md +5 -0
  76. metadata +222 -0
@@ -0,0 +1,77 @@
1
+ # Getting started with Amethyst
2
+
3
+ For a minimal and clean starting point, copy the [example](https://github.com/qunitjs/jekyll-theme-amethyst/tree/example) branch.
4
+
5
+ For the end-result, see [Amethyst Demo](https://qunitjs.github.io/jekyll-theme-amethyst/), or the [QUnit website](https://qunitjs.com/).
6
+
7
+ ## Create a repository
8
+
9
+ 1. If you haven't already, create a new repository.
10
+ ```
11
+ $ mkdir my-site
12
+ $ cd my-site/
13
+ my-site$ git init
14
+ ```
15
+
16
+ 2. Copy the Example files, like so:
17
+ ```
18
+ my-site$ git fetch https://github.com/qunitjs/jekyll-theme-amethyst.git example && git checkout FETCH_HEAD .
19
+ ```
20
+
21
+ That's it!
22
+
23
+ You can now run `bundle install && bundle exec jekyll serve` and view the site locally at <http://localhost:4000/>.
24
+ See [README.md](../README.md#contributing) for more details.
25
+
26
+ ## Make it yours
27
+
28
+ ### Configuration
29
+
30
+ Edit the [_config.yml](https://github.com/qunitjs/jekyll-theme-amethyst/blob/example/_config.yml) file:
31
+
32
+ * Set `title` to the title of your website.
33
+ * Set `url` to the address of your website.
34
+ For a sub-project without an own a domain name (e.g. GitHub Pages for a non-org site), also set `baseurl: /my-repo`.
35
+
36
+ Read more about [Amethyst theme configuration](./config.md#readme).
37
+
38
+ ### Colors
39
+
40
+ Change the theme colors in [_sass/amethyst-variables.scss](https://github.com/qunitjs/jekyll-theme-amethyst/blob/example/_sass/amethyst-variables.scss#L1).
41
+
42
+ ### Site navigation
43
+
44
+ Change the top navigation links, or create sub menus, via [sitenav.yml](https://github.com/qunitjs/jekyll-theme-amethyst/blob/example/_data/sitenav.yml).
45
+
46
+ ### Custom domain
47
+
48
+ See [Manage a custom domain with GitHub Pages](https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site).
49
+
50
+ ### Enable Algolia search
51
+
52
+ 1. Create or browse your application in [Algolia](https://www.algolia.com/). (There is a shared "team" for OpenJS Foundation projects. Ask [OpenJS Operations](https://openjsf.org/about/contact/) for your application to be added to the account.)
53
+ 2. Go to "API Keys", and take note of the "Search-Only API Key" and "Admin API Key".
54
+ 3. Set the following in your `_config.yml` file:
55
+ - `algolia.application_id`: Application ID.
56
+ - `amethyst.algolia.search_only_api_key`: Search-Only API Key.
57
+ - `algolia.index_name`: Unique lowercase name for the current site (e.g. example-com or example-com-foo).
58
+ This index will be automatically created by GitHub Actions after the next commit.
59
+ 4. Create a repository secret on GitHub, named `ALGOLIA_API_KEY`, with the "Admin API Key".
60
+
61
+ This is used by the [doc-search](https://github.com/qunitjs/jekyll-theme-amethyst/blob/main/.github/workflows/doc-search.yaml) workflow, which updates the search index after each commit.
62
+
63
+ Done! The presence of these settings will automatically enable display of the search field.
64
+
65
+ Terminology:
66
+
67
+ * **application**:
68
+ A group of one or more search indexes with an associated "team" of users that can administer those indexes. The application is generally named after a top-level project (e.g. "QUnit") with one or more indexes for its sites (e.g. qunitjs-com and qunitjs-com-api).
69
+
70
+ Applications need to be created from the Algolia control panel. The Application IDs are considered public information, and look like `ABCDEF0124`.
71
+
72
+ * **index**:
73
+ An index holds the crawled content. These do not need to be created ahead of time. The CI builds will create these as-needed.
74
+
75
+ As example, qunitjs.com content may be un a `qunit-com` index, and api.qunitjs.com content under `api-qunitjs-com`. Whenever a site is deployed, the index is replaced with the new content. This is why different subdomains or subprojects that have their own repository should have their own index as otherwise content of the "other" sites would be lost.
76
+
77
+ Search suggestions may come from multiple indexes at once. See [Amethyst config](./config.md#readme) for how.
data/favicon.svg ADDED
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
2
+ <text y=".9em" font-size="90" fill="#fff">🔮</text>
3
+ </svg>
data/guides.md ADDED
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: page
3
+ title: Guides
4
+ ---
5
+
6
+ <p class="lead">The following guides are here to help you.</p>
7
+
8
+ ## [Getting Started](./intro.md)
9
+
10
+ A guided introduction. If you've never before, or need a refresher on the basics, this is for you.
11
+
data/index.md ADDED
@@ -0,0 +1,51 @@
1
+ ---
2
+ layout: home
3
+
4
+ # Defaults to: site.title
5
+ home_title:
6
+ # Defaults to: site.description
7
+ home_description:
8
+ # Optional
9
+ home_img:
10
+ # Optional
11
+ home_primary_btn:
12
+ name: Get Started
13
+ href: /intro/
14
+ # Optional
15
+ home_secondary_btn:
16
+ name: View the Docs
17
+ href: /api/
18
+ ---
19
+
20
+ <section class="grid grid--small home-highlights">
21
+ <div>
22
+ <h2>Hue</h2>
23
+ <p>Cupcake ipsum dolor sit amet jujubes marzipan liquorice.</p>
24
+ </div>
25
+
26
+ <div>
27
+ <h2>Mineral</h2>
28
+ <p>Gummi bears dessert icing carrot cake. Jelly I love wafer I love powder croissant I love.</p>
29
+ </div>
30
+
31
+ <div>
32
+ <h2>Quartz</h2>
33
+ <p>Lemon drops powder oat cake tiramisu powder. I love biscuit I love donut.</p>
34
+ </div>
35
+ </section>
36
+
37
+ ---
38
+
39
+ ## Join the Community
40
+
41
+ <p class="lead lead--center" markdown="1">Join us on [Mastodon](https://mastodon.technology/@qunitjs), [Twitter](https://twitter.com/qunitjs), or [Gitter chat](https://gitter.im/qunitjs/qunit).</p>
42
+
43
+ To contribute:
44
+
45
+ * [Watch the repository](https://github.com/qunitjs/qunit) to learn about release, new requests, or bug reports.
46
+ * The source of this website, is in the [qunitjs.com](https://github.com/qunitjs/qunitjs.com) repository.
47
+ * The source of the Documentation site, is in the ["docs/" directory](https://github.com/qunitjs/qunit/tree/master/docs).
48
+
49
+ ---
50
+
51
+ <p class="cta">What are you waiting for? <a href="{{ '/intro/' | relative_url }}" class="button">Get started!</a></p>
data/intro.md ADDED
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: page
3
+ title: Getting Started
4
+ ---
5
+
6
+ <p class="lead" markdown="1">The following guide will get you up-and-running in just a few minutes.</p>
7
+
8
+ ## Command
9
+
10
+ <p class="note" markdown="1">Heads up!</p>
11
+
12
+ We follow the [Node.js Release schedule](https://github.com/nodejs/LTS), and provide support for Current, Active LTS, and Maintenance LTS releases.
13
+
14
+ ```bash
15
+ npm install --save-dev qunit
16
+ ```
17
+
18
+ ## Code snippet
19
+
20
+ <p class="note note--warning" markdown="1">For legacy reasons, you may have to read this sentence.</p>
21
+
22
+ Create a `test/add.js` file and call [`QUnit.test()`](https://api.qunitjs.com/QUnit/test/), like so:
23
+
24
+ ```js
25
+ QUnit.module('add', function() {
26
+ QUnit.test('should add two numbers', function(assert) {
27
+ assert.equal(add(1, 1), 2, '1 + 1 = 2');
28
+ });
29
+ });
30
+ ```
31
+
32
+ Check out the [API documentation](https://api.qunitjs.com) or run `qunit --help` to discover more of QUnit's features.
33
+
34
+ ---
35
+
36
+ ## Table
37
+
38
+ | Sequence | 1 | 2 | 3 | 4
39
+ |--|--
40
+ | Foobar | Foo | Bar | Baz | Quux
41
+ | Lorem ipsum | Lorem | Ipsum | Dolor | Sit
@@ -0,0 +1,39 @@
1
+ # The "file_version_query" Liquid filter appends a query parameter with a file hash.
2
+ #
3
+ # Example: Basic
4
+ #
5
+ # ```
6
+ # <img src="{{ "/assets/foo.png" | file_version_query | relative_url }}">
7
+ # ```
8
+ # ```
9
+ # <img src="/assets/foo.png?v=01234567">
10
+ # ```
11
+ #
12
+ # Example: Link to a generated file that may not yet exist, and hash its input files instead.
13
+ #
14
+ # ```
15
+ # <link href="{{ "/assets/style.css" | file_version_query: "/_sass/x.scss", "/_sass/y.scss" }}">
16
+ # <link href="/assets/style.css?v=01234567">
17
+ # ```
18
+ #
19
+ require "digest"
20
+
21
+ module Jekyll
22
+ module AmethystFilters
23
+ def file_version_query(input, *filenames)
24
+ filenames = [input] unless filenames.length > 0
25
+ hexes = filenames.map do |filename|
26
+ begin
27
+ digest = Digest::MD5.file File.join(@context.registers[:site].source, filename)
28
+ rescue StandardError => e
29
+ digest = Digest::MD5.file File.join(__dir__, "..", filename)
30
+ end
31
+ digest.hexdigest
32
+ end
33
+ hex = hexes.length > 1 ? Digest::MD5.hexdigest(hexes.join(" ")) : hexes[0]
34
+ "#{input}?v=#{hex[0..7]}"
35
+ end
36
+ end
37
+ end
38
+
39
+ Liquid::Template.register_filter(Jekyll::AmethystFilters)
data/tag/event.md ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: posts-tag
3
+ tag: event
4
+ title: Events
5
+ ---
data/tag/release.md ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: posts-tag
3
+ tag: release
4
+ title: Release
5
+ ---
metadata ADDED
@@ -0,0 +1,222 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-amethyst
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Timo Tijhof
8
+ - Trent Willis
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2021-09-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '4.2'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '4.2'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: kramdown-parser-gfm
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.1.0
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.1.0
48
+ - !ruby/object:Gem::Dependency
49
+ name: jekyll-redirect-from
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.16.0
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.16.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: jekyll-relative-links
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.6.1
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.6.1
76
+ - !ruby/object:Gem::Dependency
77
+ name: jekyll-feed
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.15.1
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.15.1
90
+ - !ruby/object:Gem::Dependency
91
+ name: jekyll-archives
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.2.1
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.2.1
104
+ - !ruby/object:Gem::Dependency
105
+ name: webrick
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.7'
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.7'
118
+ description:
119
+ email:
120
+ executables: []
121
+ extensions: []
122
+ extra_rdoc_files: []
123
+ files:
124
+ - ".github/workflows/doc-search.yaml"
125
+ - ".github/workflows/gem.yaml"
126
+ - ".github/workflows/github-pages.yaml"
127
+ - ".github/workflows/spider-check.yaml"
128
+ - ".gitignore"
129
+ - 404.md
130
+ - Gemfile
131
+ - LICENSE.txt
132
+ - README.md
133
+ - _config.yml
134
+ - _data/sidebar_api.yml
135
+ - _data/sidebar_blog.yml
136
+ - _data/sitenav.yml
137
+ - _includes/opengraph.html
138
+ - _includes/search-js.html
139
+ - _includes/search.html
140
+ - _includes/sidebar.html
141
+ - _includes/version.html
142
+ - _layouts/group.html
143
+ - _layouts/home.html
144
+ - _layouts/page-api.html
145
+ - _layouts/page.html
146
+ - _layouts/post.html
147
+ - _layouts/posts-archive.html
148
+ - _layouts/posts-author.html
149
+ - _layouts/posts-tag.html
150
+ - _layouts/posts-year.html
151
+ - _layouts/posts.html
152
+ - _layouts/wrapper.html
153
+ - _posts/2006-01-26-announcing-the-blog.md
154
+ - _posts/2006-10-18-foo-110.md
155
+ - _posts/2007-10-18-foo-112.md
156
+ - _posts/2008-10-18-foo-126.md
157
+ - _posts/2009-10-18-foo-132.md
158
+ - _posts/2010-10-18-foo-143.md
159
+ - _posts/2011-10-18-foo-171.md
160
+ - _posts/2012-10-18-foo-183.md
161
+ - _posts/2013-10-18-foo-191.md
162
+ - _posts/2014-10-18-foo-211.md
163
+ - _posts/2015-10-18-foo-300.md
164
+ - _posts/2017-10-18-foo-321.md
165
+ - _posts/2018-10-18-foo-331.md
166
+ - _posts/2019-10-18-foo-341.md
167
+ - _posts/2020-04-01-foo-350.md
168
+ - _posts/2020-10-18-foo-351.md
169
+ - _posts/2021-04-01-hello-world.md
170
+ - _sass/amethyst-variables.scss
171
+ - _sass/amethyst.scss
172
+ - _sass/custom.scss
173
+ - _sass/highlight.scss
174
+ - about.md
175
+ - amethyst.gemspec
176
+ - api/deprecated.md
177
+ - api/foo/baz.md
178
+ - api/foo/index.md
179
+ - api/foo/quux.md
180
+ - api/index.md
181
+ - api/lorem/dolor.md
182
+ - api/lorem/index.md
183
+ - api/lorem/sit.md
184
+ - api/removed.md
185
+ - assets/logo-algolia.svg
186
+ - assets/styles.scss
187
+ - blog-archive.md
188
+ - blog.md
189
+ - docs/config.md
190
+ - docs/getting-started.md
191
+ - favicon.svg
192
+ - guides.md
193
+ - index.md
194
+ - intro.md
195
+ - lib/jekyll-theme-amethyst.rb
196
+ - tag/event.md
197
+ - tag/release.md
198
+ homepage: https://github.com/qunitjs/jekyll-theme-amethyst
199
+ licenses:
200
+ - MIT
201
+ metadata:
202
+ plugin_type: theme
203
+ post_install_message:
204
+ rdoc_options: []
205
+ require_paths:
206
+ - lib
207
+ required_ruby_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ requirements: []
218
+ rubygems_version: 3.1.2
219
+ signing_key:
220
+ specification_version: 4
221
+ summary: https://github.com/qunitjs/jekyll-theme-amethyst
222
+ test_files: []