Skip to content

Commit 768cce5

Browse files
authored
Merge pull request #5 from cltk/v2-update
V2 update
2 parents 5d9255b + 3a2b75e commit 768cce5

20 files changed

+534
-83
lines changed

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_PATH: "vendor/bundle"

.github/workflows/htmlproofer.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: HTMLProofer (links)
2+
3+
on:
4+
pull_request:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.2'
18+
bundler-cache: true
19+
20+
- name: Build site
21+
run: |
22+
bundle install --jobs 4 --retry 3
23+
bundle exec jekyll build --trace
24+
25+
- name: Run HTMLProofer
26+
run: |
27+
bundle exec htmlproofer ./_site \
28+
--disable-external \
29+
--enforce_https \
30+
--check_html \
31+
--check_favicon
32+

.github/workflows/jekyll-docker.yml

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

.github/workflows/pages.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Jekyll site to Pages
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v5
25+
- name: Build with Jekyll
26+
uses: actions/jekyll-build@v1
27+
with:
28+
source: ./
29+
destination: ./_site
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: ./_site
34+
35+
deploy:
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
needs: build
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4
45+

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
22
_site
33
.sass-cache
4-
.DS_Store
4+
.DS_Store
5+
vendor/

.ruby-version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
3.2.2
2+

404.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: default
3+
permalink: /404.html
4+
---
5+
6+
<div class="page">
7+
<h1>Page not found</h1>
8+
<p>Sorry, the page you’re looking for doesn’t exist.</p>
9+
<p><a href="{{ site.baseurl }}/">Return home</a></p>
10+
</div>
11+

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", group: :jekyll_plugins
4+
# Needed to serve locally on Ruby 3.x
5+
gem "webrick", "~> 1.8"
6+
7+
group :development do
8+
gem "html-proofer", "~> 5.0"
9+
end

0 commit comments

Comments
 (0)