Skip to content

Commit 84079eb

Browse files
committed
update readme, update 'make test' checks to work with modern htmlproofer, add 'make install-packages' and update base 'url' config setting to include 'https' and 'www.'
1 parent 6db01fd commit 84079eb

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ before_install:
88
script:
99
- gem install bundler
1010
- bundle exec jekyll build
11-
- bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html
11+
- bundle exec htmlproofer ./_site --only-4xx --disable-external=true --enforce-https=false
1212
env:
1313
global:
1414
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ all: build test
77
clean:
88
rm -f Gemfile.lock
99

10+
.PHONY: install-packages
11+
install-packages:
12+
bundle install
13+
1014
.PHONY: build
1115
build:
1216
bundle exec jekyll build --safe
1317

1418
.PHONY: test
1519
test:
16-
bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html
20+
bundle exec htmlproofer ./_site --only-4xx --disable-external=true --enforce-https=false
1721

1822
.PHONY: run
1923
run:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and to develop a blog.
88

99
## Hosting
1010
The website is hosted at:
11-
http://www.aaronrobson.uk/
11+
<https://www.aaronrobson.uk/>
1212

1313
# Developing
1414

@@ -20,23 +20,23 @@ for your operating system.
2020
## Run locally
2121
With the requirements installed in the previous step,
2222
please run the following command to run the website locally:
23-
```bash
23+
```sh
2424
bundle exec jekyll serve
2525
```
2626
or:
27-
```bash
27+
```sh
2828
make run
2929
```
3030

3131
### View in your browser
3232
View the website by visiting the link stated, typically it is:
33-
http://127.0.0.1:4000/
33+
<http://127.0.0.1:4000/>
3434

3535
## Testing
3636
Tests are run in Travis CI using the techniques here:
3737
https://www.jacobtomlinson.co.uk/jekyll/2015/02/18/test-you-jekyll-blog-with-travis-ci/
3838

3939
Run this (not supported on Windows):
40-
```bash
40+
```sh
4141
make test
4242
```

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ email: arobsonse@hotmail.co.uk
1818
description: >- # this means to ignore newlines until "baseurl:"
1919
A website to teach me web development, a place for blogging and to host my CV.
2020
baseurl: "" # the subpath of your site, e.g. /blog
21-
url: "http://aaronrobson.uk" # the base hostname & protocol for your site, e.g. http://example.com
21+
url: "https://www.aaronrobson.uk" # the base hostname & protocol for your site, e.g. http://example.com
2222
github_username: aaronrobson
2323
stackoverflow_username: aaron-robson
2424
linkedin_username: aaronrobson

0 commit comments

Comments
 (0)