Skip to content

Commit b06c90f

Browse files
authored
Merge pull request #31 from AnySoftKeyboard/refine-ruby-workflow
html site PR check
2 parents 814c65a + ac2dde2 commit b06c90f

6 files changed

Lines changed: 71 additions & 12 deletions

File tree

.github/workflows/html-proofer.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
proof:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Set up Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
bundler-cache: true # Runs bundle install and caches gems
17+
18+
- name: Build Jekyll site
19+
run: bundle exec jekyll build
20+
21+
- name: Run HTMLProofer
22+
run: bundle exec htmlproofer --allow-hash-href=true --ignore-status-codes=404 ./_site

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.4

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
source 'https://rubygems.org'
22

33
gem 'jekyll', '4.3.1'
4+
gem 'html-proofer'
5+
gem 'csv'
6+
gem 'logger'
7+
gem 'base64'
8+
gem 'bigdecimal'
49

510
group :jekyll_plugins do
611
gem 'jekyll-archives'

Gemfile.lock

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@ GEM
33
specs:
44
addressable (2.8.1)
55
public_suffix (>= 2.0.2, < 6.0)
6+
base64 (0.3.0)
7+
bigdecimal (3.2.1)
68
colorator (1.1.0)
79
concurrent-ruby (1.1.10)
10+
csv (3.3.5)
811
em-websocket (0.5.3)
912
eventmachine (>= 0.12.9)
1013
http_parser.rb (~> 0)
14+
ethon (0.16.0)
15+
ffi (>= 1.15.0)
1116
eventmachine (1.2.7)
1217
ffi (1.15.5)
1318
forwardable-extended (2.6.0)
14-
google-protobuf (3.25.5)
19+
google-protobuf (3.23.4)
20+
html-proofer (4.4.3)
21+
addressable (~> 2.3)
22+
mercenary (~> 0.3)
23+
nokogiri (~> 1.13)
24+
parallel (~> 1.10)
25+
rainbow (~> 3.0)
26+
typhoeus (~> 1.3)
27+
yell (~> 2.0)
28+
zeitwerk (~> 2.5)
1529
http_parser.rb (0.8.0)
1630
i18n (1.12.0)
1731
concurrent-ruby (~> 1.0)
@@ -52,36 +66,53 @@ GEM
5266
listen (3.7.1)
5367
rb-fsevent (~> 0.10, >= 0.10.3)
5468
rb-inotify (~> 0.9, >= 0.9.10)
69+
logger (1.7.0)
5570
mercenary (0.4.0)
71+
mini_portile2 (2.8.9)
72+
nokogiri (1.13.10)
73+
mini_portile2 (~> 2.8.0)
74+
racc (~> 1.4)
75+
parallel (1.24.0)
5676
pathutil (0.16.2)
5777
forwardable-extended (~> 2.6)
5878
public_suffix (5.0.1)
79+
racc (1.8.1)
80+
rainbow (3.1.1)
5981
rake (13.0.6)
6082
rb-fsevent (0.11.2)
6183
rb-inotify (0.10.1)
6284
ffi (~> 1.0)
6385
rexml (3.3.9)
64-
rouge (4.0.1)
86+
rouge (3.30.0)
6587
safe_yaml (1.0.5)
6688
sass-embedded (1.57.1)
6789
google-protobuf (~> 3.21)
6890
rake (>= 10.0.0)
6991
terminal-table (3.0.2)
7092
unicode-display_width (>= 1.1.1, < 3)
93+
typhoeus (1.4.1)
94+
ethon (>= 0.9.0)
7195
unicode-display_width (2.3.0)
7296
webrick (1.8.2)
97+
yell (2.2.2)
98+
zeitwerk (2.6.18)
7399

74100
PLATFORMS
75101
ruby
76102

77103
DEPENDENCIES
104+
base64
105+
bigdecimal
106+
csv
107+
html-proofer
78108
jekyll (= 4.3.1)
79109
jekyll-archives
80110
jekyll-feed
81111
jekyll-paginate
82112
jekyll-seo-tag
83113
jekyll-sitemap
114+
logger
84115
webrick (~> 1.8)
85116

86117
BUNDLED WITH
87-
2.4.1
118+
2.6.9

download.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
---
55
<h2 class="editable">You can download <strong>AnySoftKeyboard</strong> from Play Store or F-Droid.</h2>
66
<div class="center-text">
7-
<a href="https://play.google.com/store/apps/details?id=com.menny.android.anysoftkeyboard" target="_blank" rel="noopener"><img class="not-full" src="/images/en-play-badge.png" width="250px" height="74px"/></a>
8-
<a href="https://f-droid.org/repository/browse/?fdid=com.menny.android.anysoftkeyboard" target="_blank" rel="noopener"><img class="not-full" src="/images/f-droid.png" width="212px" height="74px"/></a>
7+
<a href="https://play.google.com/store/apps/details?id=com.menny.android.anysoftkeyboard" target="_blank" rel="noopener"><img class="not-full" src="/images/en-play-badge.png" alt="Play Store" width="250px" height="74px"/></a>
8+
<a href="https://f-droid.org/repository/browse/?fdid=com.menny.android.anysoftkeyboard" target="_blank" rel="noopener"><img class="not-full" src="/images/f-droid.png" alt="F-Droid" width="212px" height="74px"/></a>
99
</div>
1010
<div class="center-text">
1111
<p>Feeling adventurous? Sign up for the Beta channel <a href="https://play.google.com/apps/testing/com.menny.android.anysoftkeyboard" target="_blank" rel="noopener"><i class="fab fa-google-play"></i> here</a> (Served via Google Play Store).</p>
12-
<p>Feeling <i>very</i> adventurous? opt-in to the Alpha channel by also joining the <a href="https://groups.google.com/forum/#!forum/anysoftkeyboard-alpha-testers" target="_blank" rel="noopener">Testers Google group</a>.</p>
12+
<p>Feeling <i>very</i> adventurous? opt-in to the Alpha channel by also joining the <a href="https://groups.google.com/g/anysoftkeyboard-alpha-testers" target="_blank" rel="noopener">Testers Google group</a>.</p>
1313
</div>
1414

languages.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
<div>
99
<p class="languages-list"><span class="flag-container"><img src="{{ language.icon }}" alt="{{ language.name }} flag" class="language-flag" style="height: 32px; width: auto; vertical-align: middle;"></span> {{ language.name }}
1010

11-
{% if language.github == nil %}
11+
{% if language.github == nil or language.github == "" %}
1212
<img class="no-link-found not-full-icon" src="/images/github.png" width="32px" height="32px"/></a>
1313
{% else %}
14-
<a href="{{ language.github }}"><img class="not-full-icon" src="/images/github.png" width="32px" height="32px"/></a>
14+
<a href="{{ language.github }}"><img class="not-full-icon" src="/images/github.png" alt="{{ language.name }} on github" width="32px" height="32px"/></a>
1515
{% endif %}
1616

17-
{% if language.f-droid == nil %}
17+
{% if language.f-droid == nil or language.f-droid == "" %}
1818
<img class="no-link-found not-full-icon" src="/images/fdroid.png" width="32px" height="32px"/></a>
1919
{% else %}
20-
<a href="{{ language.f-droid }}"><img class="not-full-icon" src="/images/fdroid.png" width="32px" height="32px"/></a>
20+
<a href="{{ language.f-droid }}"><img class="not-full-icon" src="/images/fdroid.png" alt="{{ language.name }} on f-droid" width="32px" height="32px"/></a>
2121
{% endif %}
2222

23-
{% if language.play == nil %}
23+
{% if language.play == ni or language.play == ""l %}
2424
<img class="no-link-found not-full-icon" src="/images/play.png" width="32px" height="32px"/></a>
2525
{% else %}
26-
<a href="{{ language.play }}"><img class="not-full-icon" src="/images/play.png" width="32px" height="32px"/></a>
26+
<a href="{{ language.play }}"><img class="not-full-icon" src="/images/play.png" alt="{{ language.name }} on Google Play Store" width="32px" height="32px"/></a>
2727
{% endif %}
2828
</p>
2929
</div>

0 commit comments

Comments
 (0)