Skip to content

Commit 1a68311

Browse files
authored
Merge pull request #21 from wiserfirst/feat/update-readme
Update readme and remove unnecessary deps
2 parents 2794e20 + f03fd31 commit 1a68311

File tree

5 files changed

+18
-221
lines changed

5 files changed

+18
-221
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
env:
1212
# speeds up installation of htmlproofer
1313
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
14-
# NOTE: The minimal-mistakes-generated 404 page seems to have a #main
15-
# hash href to nowhere, so ignore all #main hash links for now; I don't
16-
# have any that I've created in any pages that I control.
17-
HTMLPROOFER_IGNORE_HREFS: '/localhost/,#main,/medium.com/,/twitter.com/,/docs.github.com/,/gnu.org/,/pixabay.com/,/www.allaboutsymbian.com/,/iteye.com/blog/,/www.williamlong.info/,/mademistakes.com/'
1814

1915
steps:
2016
- name: Clone repository
@@ -40,32 +36,6 @@ jobs:
4036
- name: Run markdownlint
4137
run: markdownlint _posts _drafts _pages README.md
4238

43-
# Explanations for flags:
44-
# --allow-hash-href - Build will fail on the first and last post entries
45-
# if this isn't allowed since there will be previous and next buttons
46-
# that have 'links to nowhere'.
47-
# --assume-extension - Jekyll 3 supports extensionless URLs, and
48-
# the blog uses them, so this flag needs to be here to prevent errors.
49-
# --url-ignore "/localhost/" - Posts have explicit references to
50-
# localhost, so don't consider them proper external links that need to
51-
# go anywhere.
52-
# --http-status-ignore "999" - LinkedIn doesn't seem to like crawlers,
53-
# and hence sends back 999 errors, even if the link is valid.
54-
# --disable-external - Only use this if the build fails unreasonably on
55-
# external links
56-
# NOTE: If a new post is created or new tags are introduced via a post,
57-
# htmlproofer will need to be disabled for a build in order to proceed
58-
# forward
59-
# - name: Run htmlproofer
60-
# run: >
61-
# bundle exec htmlproofer _site
62-
# --no-enforce-https
63-
# --no-check-external-hash
64-
# --allow-hash-href
65-
# --ignore-urls $HTMLPROOFER_IGNORE_HREFS
66-
# --ignore-status-codes "999"
67-
# --typhoeus '{"ssl_verifypeer": false, "ssl_verifyhost": 0}'
68-
6939
- name: Deploy to Netlify
7040
if: success()
7141
uses: South-Paw/action-netlify-cli@v2

.travis.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ ruby '3.1.2'
1111
# This will help ensure the proper Jekyll version is running.
1212
gem 'jekyll', '~> 4.0'
1313

14-
group :development do
15-
# Command line tool to easily handle events on file system modifications
16-
gem 'guard', '~> 2.16'
17-
# Guard extension to run cli processes
18-
gem 'guard-process', '~> 1.2'
19-
end
20-
21-
group :development, :test do
22-
# Test your rendered HTML files to make sure they're accurate
23-
gem 'html-proofer', '~> 5.0.1'
24-
end
25-
2614
# the theme
2715
# If you have any plugins, put them here!
2816
group :jekyll_plugins do

Gemfile.lock

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,28 @@ GEM
88
tzinfo (~> 2.0)
99
addressable (2.8.1)
1010
public_suffix (>= 2.0.2, < 6.0)
11-
async (2.3.1)
12-
console (~> 1.10)
13-
io-event (~> 1.1)
14-
timers (~> 4.1)
15-
coderay (1.1.3)
1611
colorator (1.1.0)
1712
concurrent-ruby (1.2.2)
18-
console (1.16.2)
19-
fiber-local
2013
cssminify2 (2.0.1)
2114
em-websocket (0.5.3)
2215
eventmachine (>= 0.12.9)
2316
http_parser.rb (~> 0)
24-
ethon (0.16.0)
25-
ffi (>= 1.15.0)
2617
eventmachine (1.2.7)
2718
execjs (2.8.1)
2819
faraday (2.6.0)
2920
faraday-net_http (>= 2.0, < 3.1)
3021
ruby2_keywords (>= 0.0.4)
3122
faraday-net_http (3.0.1)
3223
ffi (1.15.5)
33-
fiber-local (1.0.0)
34-
formatador (1.1.0)
3524
forwardable-extended (2.6.0)
3625
gemoji (3.0.1)
37-
guard (2.18.0)
38-
formatador (>= 0.2.4)
39-
listen (>= 2.7, < 4.0)
40-
lumberjack (>= 1.0.12, < 2.0)
41-
nenv (~> 0.1)
42-
notiffany (~> 0.0)
43-
pry (>= 0.13.0)
44-
shellany (~> 0.0)
45-
thor (>= 0.18.1)
46-
guard-compat (1.2.1)
47-
guard-process (1.2.1)
48-
guard-compat (~> 1.2, >= 1.2.1)
49-
spoon (~> 0.0.1)
5026
html-pipeline (2.14.3)
5127
activesupport (>= 2)
5228
nokogiri (>= 1.4)
53-
html-proofer (5.0.3)
54-
addressable (~> 2.3)
55-
async (~> 2.1)
56-
nokogiri (~> 1.13)
57-
rainbow (~> 3.0)
58-
typhoeus (~> 1.3)
59-
yell (~> 2.0)
60-
zeitwerk (~> 2.5)
6129
htmlcompressor (0.4.0)
6230
http_parser.rb (0.8.0)
6331
i18n (1.14.1)
6432
concurrent-ruby (~> 1.0)
65-
io-event (1.1.4)
6633
jekyll (4.3.1)
6734
addressable (~> 2.4)
6835
colorator (~> 1.0)
@@ -117,9 +84,7 @@ GEM
11784
listen (3.7.1)
11885
rb-fsevent (~> 0.10, >= 0.10.3)
11986
rb-inotify (~> 0.9, >= 0.9.10)
120-
lumberjack (1.2.8)
12187
mercenary (0.4.0)
122-
method_source (1.0.0)
12388
mini_portile2 (2.8.5)
12489
minimal-mistakes-jekyll (4.24.0)
12590
jekyll (>= 3.7, < 5.0)
@@ -129,24 +94,16 @@ GEM
12994
jekyll-paginate (~> 1.1)
13095
jekyll-sitemap (~> 1.3)
13196
minitest (5.19.0)
132-
nenv (0.3.0)
13397
nokogiri (1.16.2)
13498
mini_portile2 (~> 2.8.2)
13599
racc (~> 1.4)
136-
notiffany (0.1.3)
137-
nenv (~> 0.1)
138-
shellany (~> 0.0)
139100
octokit (4.25.1)
140101
faraday (>= 1, < 3)
141102
sawyer (~> 0.9)
142103
pathutil (0.16.2)
143104
forwardable-extended (~> 2.6)
144-
pry (0.14.1)
145-
coderay (~> 1.1)
146-
method_source (~> 1.0)
147105
public_suffix (5.0.1)
148106
racc (1.7.3)
149-
rainbow (3.1.1)
150107
rb-fsevent (0.11.2)
151108
rb-inotify (0.10.1)
152109
ffi (~> 1.0)
@@ -159,31 +116,19 @@ GEM
159116
sawyer (0.9.2)
160117
addressable (>= 2.3.5)
161118
faraday (>= 0.17.3, < 3)
162-
shellany (0.0.1)
163-
spoon (0.0.6)
164-
ffi
165119
terminal-table (3.0.2)
166120
unicode-display_width (>= 1.1.1, < 3)
167-
thor (1.2.1)
168-
timers (4.3.5)
169-
typhoeus (1.4.0)
170-
ethon (>= 0.9.0)
171121
tzinfo (2.0.6)
172122
concurrent-ruby (~> 1.0)
173123
uglifier (4.2.0)
174124
execjs (>= 0.3.0, < 3)
175125
unicode-display_width (2.3.0)
176126
webrick (1.7.0)
177-
yell (2.2.2)
178-
zeitwerk (2.6.6)
179127

180128
PLATFORMS
181129
ruby
182130

183131
DEPENDENCIES
184-
guard (~> 2.16)
185-
guard-process (~> 1.2)
186-
html-proofer (~> 5.0.1)
187132
jekyll (~> 4.0)
188133
jekyll-archives (~> 2.2)
189134
jekyll-feed (~> 0.15)

README.md

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@ This is the codebase for my personal blog at [`wiserfirst.com`][], created with
66

77
## Install
88

9-
### Install Ruby
10-
11-
Ruby is required to run Jekyll and it can be installed with [`asdf`][] as
12-
follows:
9+
### Clone the Repository
1310

1411
```sh
15-
asdf plugin add ruby
16-
asdf install ruby 2.7.2
17-
asdf global ruby 2.7.2
12+
git clone [email protected]:wiserfirst/wiserfirst.github.io.git
13+
cd wiserfirst.github.io
1814
```
1915

20-
### Clone the Repository
16+
### Install Ruby and Nodejs
17+
18+
Ruby is required to run Jekyll and Nodejs is needed to run a development
19+
dependency markdownlint. They can be installed with [`asdf`][] as
20+
follows:
2121

2222
```sh
23-
git clone [email protected]:wiserfirst/wiserfirst.github.io.git
24-
cd wiserfirst.github.io
25-
bundle install
23+
asdf plugin add ruby
24+
asdf plugin add nodejs
25+
# need to run in this directory
26+
asdf install
2627
```
2728

29+
2830
### Development Dependencies
2931

3032
This app uses the following dependencies during development:
3133

3234
- [markdownlint][] (via [markdownlint-cli][]): make sure Markdown syntax
3335
conforms to community standards
34-
- [HTMLProofer][]: make sure HTML rendered files are accurate and do not have
35-
broken links etc
3636

3737
Install [Node][]-based dependencies in the following way, and remember to
3838
re-shim whatever version manager is being used for Node (I use [`asdf`][]), or
@@ -44,8 +44,6 @@ npm install --global markdownlint-cli
4444
asdf reshim nodejs
4545
```
4646

47-
HTMLProofer is a Ruby gem and so Bundler will bring it into the project.
48-
4947
## Usage
5048

5149
### Start blog server
@@ -56,45 +54,17 @@ bundle exec jekyll serve --incremental --drafts --livereload
5654

5755
Then, navigate to <http://localhost:4000>
5856

59-
### Monitor files
60-
61-
This project uses [Guard][] to monitor file changes.
62-
63-
Start Guard with the following command:
64-
65-
```sh
66-
bundle exec guard
67-
```
68-
6957
## Theme
7058

7159
This blog currently uses the [Minimal Mistakes][] theme.
7260

7361
## Deployment
7462

75-
This blog is current deployed to [Netlify][] with [Travis CI][] running the
63+
This blog is current deployed to [Netlify][] with [Github Actions][] running the
7664
builds.
7765

7866
Just push to the `develop` branch to trigger a new build and if the build is
79-
successful, site would be built and pushed to the `release` branch. Then a new
80-
deployment will be triggered on Netlify, since it monitors the `release` branch.
81-
82-
The only caveat is when there is a new post, the following section in travis
83-
yaml file (which runs `htmlproofer`) needs to be commented out for the build to
84-
pass:
85-
86-
```yaml
87-
- >
88-
bundle exec htmlproofer _site
89-
--allow-hash-href
90-
--assume-extension
91-
--url-ignore "/localhost/,/facebook.com\/sharer\/sharer.php/,#main,/iteye.com\/blog/,/www.williamlong.info/"
92-
--http-status-ignore "999"
93-
--typhoeus-config '{"ssl_verifypeer": false, "ssl_verifyhost": 0}'
94-
```
95-
96-
Once the site is deployed with the new post, `htmlproofer` can be re-enabled
97-
again in a follow up commit.
67+
successful, the site would be deployed to Netlify.
9868

9969
## License
10070

@@ -111,10 +81,8 @@ under the [MIT license][license-mit-url].
11181
SPDX-License-Identifier: (MIT AND CC-BY-4.0)
11282

11383
[`asdf`]: https://github.com/asdf-vm/asdf
114-
[Build Status image]: https://travis-ci.com/wiserfirst/wiserfirst.github.io.svg?branch=develop
115-
[Build Status url]: https://travis-ci.com/github/wiserfirst/wiserfirst.github.io
116-
[Guard]: https://github.com/guard/guard
117-
[HTMLProofer]: https://github.com/gjtorikian/html-proofer
84+
[Build Status image]: https://github.com/wiserfirst/wiserfirst.github.io/actions/workflows/ci.yml/badge.svg
85+
[Build Status url]: https://github.com/wiserfirst/wiserfirst.github.io/actions/workflows/ci.yml
11886
[Jekyll]: https://jekyllrb.com
11987
[license-cc-badge]: https://licensebuttons.net/l/by/4.0/80x15.png
12088
[license-cc-url]: https://creativecommons.org/licenses/by/4.0/legalcode
@@ -127,5 +95,5 @@ SPDX-License-Identifier: (MIT AND CC-BY-4.0)
12795
[Netlify Status image]: https://api.netlify.com/api/v1/badges/e997650f-fd0c-44c5-a6a5-1488dad7d879/deploy-status
12896
[Netlify Status url]: https://app.netlify.com/sites/elastic-villani-588077/deploys
12997
[Node]: https://github.com/nodejs/node
130-
[Travis CI]: https://travis-ci.com/
98+
[Github Actions]: https://github.com/features/actions
13199
[`wiserfirst.com`]: https://www.wiserfirst.com

0 commit comments

Comments
 (0)