Skip to content

Commit

Permalink
Merge branch 'main' into update_dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mnyrop authored Jul 20, 2023
2 parents 066a79c + f680acf commit 304cf93
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 27 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: ci:test
on: [push, pull_request]
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]

jobs:
test:
if: github.repository_owner == 'minicomp'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: install
run: gem install bundler && bundle
- name: test
run: bundle exec rake wax:test
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
3.2.2
11 changes: 5 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
source 'https://rubygems.org'
gemspec

# Temporarily pin jekyll to avoid absolute_url bug in 4.2
gem 'jekyll', '4.1'

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'kramdown-parser-gfm'
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform?
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ It's comprised of: __a few Ruby gems__ for processing image data and associated
# Prerequisites


You'll need `git` and `ruby >= 2.4` with `bundler` installed.
You'll need `git` and `ruby >= 3.2` with `bundler` installed.
These dependencies can either be installed natively on your system or within a [Docker environment](#Using-Docker). For instructions, check the Wiki's [Setting up your system page](https://minicomp.github.io/wiki/wax/setting-up-your-system/).

Check your versions with:
Expand Down
7 changes: 1 addition & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ logo: '/assets/logo.png'
permalink: 'pretty'
sass:
style: compressed
exclude:
- Gemfile*
- Rakefile
- vendor
- spec
- README.md
exclude: ["Gemfile*", "*.gemspec", "Rakefile", "vendor", "spec", "README.md", "LICENSE.txt", "Docker*"]
incremental: true
webrick:
headers:
Expand Down
4 changes: 2 additions & 2 deletions _includes/collection_gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
{% if subset %}
{% for item in subset %}
{%- capture item_html -%}
"<div class='gallery-item {{ item[include.facet_by] | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | absolute_url }}'/><div class='overlay'><p class='info'>{{ item.label }}</p></div></div></a></div>"
"<div class='gallery-item {{ item[include.facet_by] | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | absolute_url }}' alt='{{ item.label | escape }}'/><div class='overlay'><p class='info'>{{ item.label | escape }}</p></div></div></a></div>"
{%- endcapture -%}
gallery.append({{ item_html | strip_newlines }});
{% endfor %}
{% else %}
{% for item in collection %}
{%- capture item_html -%}
"<div class='gallery-item {{ item[include.facet_by] | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | absolute_url }}' alt='{{ item.label | escape }}'/><div class='overlay'><p class='info'>{{ item.label }}</p></div></div></a></div>"
"<div class='gallery-item {{ item[include.facet_by] | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | absolute_url }}' alt='{{ item.label | escape }}'/><div class='overlay'><p class='info'>{{ item.label | escape }}</p></div></div></a></div>"
{%- endcapture -%}
gallery.append({{ item_html | strip_newlines }});
{% endfor %}
Expand Down
1 change: 0 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
<link rel='stylesheet' href="{{ '/assets/styles.css' | absolute_url }}"/>

<script type='text/javascript' src="{{ '/assets/jquery-3.2.1.min.js' | absolute_url }}"></script>
<noscript><p>Please enable JavaScript in your browser.</p></noscript>
</head>
5 changes: 2 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
</div>

{% include footer.html %}
<script type='text/javascript' async defer src='{{ "/assets/bootstrap/bootstrap.min.js" | absolute_url }}'></script>
<script type='text/javascript' async defer src='{{ "/assets/popper.min.js" | absolute_url }}'></script>
</body>

<script type='text/javascript' async defer src='{{ "/assets/bootstrap/bootstrap.min.js" | absolute_url }}'></script>
<script type='text/javascript' async defer src='{{ "/assets/popper.min.js" | absolute_url }}'></script>
</html>
3 changes: 2 additions & 1 deletion wax_theme.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README)!i) }

spec.add_runtime_dependency 'jekyll', '~> 4.1'
spec.add_runtime_dependency 'jekyll', '~> 4.3.2'
spec.add_runtime_dependency 'wax_tasks', '~> 1.1'
spec.add_runtime_dependency 'webrick', '~> 1.8'

spec.add_development_dependency 'html-proofer', '~> 3.15'
end

0 comments on commit 304cf93

Please sign in to comment.