Skip to content

Commit 5bfbb90

Browse files
committed
Add html-proofer & fix errors from it
1 parent 571cc3e commit 5bfbb90

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
sudo: false
12
matrix:
3+
fast_finish: true
24
include:
35
- language: php
46
php:
@@ -13,11 +15,15 @@ matrix:
1315
cache:
1416
directories:
1517
- $HOME/.composer/cache
16-
sudo: false
1718
- language: ruby
1819
rvm:
1920
- 2.4.1
20-
cache: bundler
21+
cache:
22+
bundler: true
23+
directories: $TRAVIS_BUILD_DIR/tmp/.htmlproofer
2124
before_install:
2225
- cd frontend
23-
sudo: true
26+
script:
27+
- bundle exec rake proof build
28+
notifications:
29+
email: false

frontend/Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
33
# Dependencies are bundled with the github-pages gem
44
gem 'github-pages', group: :jekyll_plugins
55

6-
gem 'diff-lcs', platforms: :mswin
76
gem 'diffy'
87
gem 'fastimage'
98
gem 'html-proofer'

frontend/Gemfile.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ PLATFORMS
263263
ruby
264264

265265
DEPENDENCIES
266-
diff-lcs
267266
diffy
268267
fastimage
269268
github-pages

frontend/Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ task :build do
2222
Jekyll::Commands::Build.build site, config
2323
end
2424

25+
task proof: 'build' do
26+
HTMLProofer.check_directory(
27+
'./_site', \
28+
assume_extension: true, \
29+
check_html: true, \
30+
disable_external: true
31+
).run
32+
end
33+
2534
task :clean do
2635
puts 'Cleaning up _site...'.bold
2736
Jekyll::Commands::Clean.process({})

frontend/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: ""
33
url: "tempfiles.carlgo11.com"
44
permalink: pretty
55
markdown: kramdown
6-
img: img/favicon.png
6+
img: /img/favicon.png
77
exclude:
88
- Gemfile
99
- Gemfile.lock

frontend/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<nav class="navbar navbar-inverse navbar-static-top">
2020
<div class="container">
2121
<div class="navbar-header">
22-
<a class="navbar-brand" href="/"><img src="/img/logo.svg" id="logo"></a><a class="navbar-brand nocolor" href="/">TempFiles</a>
22+
<a class="navbar-brand" href="/"><img src="/img/logo.svg" id="logo" alt="logo"></a><a class="navbar-brand nocolor" href="/">TempFiles</a>
2323
</div>
2424
<div class="custom-control custom-switch noselect" id="dark-button">
2525
<input type="checkbox" class="custom-control-input" id="dark_button">

0 commit comments

Comments
 (0)