|
11 | 11 | env:
|
12 | 12 | # speeds up installation of htmlproofer
|
13 | 13 | 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/' |
18 | 14 |
|
19 | 15 | steps:
|
20 | 16 | - name: Clone repository
|
|
40 | 36 | - name: Run markdownlint
|
41 | 37 | run: markdownlint _posts _drafts _pages README.md
|
42 | 38 |
|
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 |
| - |
69 | 39 | - name: Deploy to Netlify
|
70 | 40 | if: success()
|
71 | 41 | uses: South-Paw/action-netlify-cli@v2
|
|
0 commit comments