Skip to content

Commit 3307784

Browse files
Merge branch 'master' into 0485-contentstate-canvas-region
2 parents 2b16763 + 0176ec3 commit 3307784

File tree

4 files changed

+35
-54
lines changed

4 files changed

+35
-54
lines changed

.github/workflows/live.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,6 @@ jobs:
4848
# - name: Test *iiif.io* links
4949
# run: bundle exec rake test:links:iiif
5050

51-
# Validate
52-
- name: Set up Python 3.x
53-
uses: actions/setup-python@v5
54-
with:
55-
# Semantic version range syntax or exact version of a Python version
56-
python-version: '3.x'
57-
# Optional - x64 or x86 architecture, defaults to x64
58-
architecture: 'x64'
59-
- name: Cache pip
60-
uses: actions/cache@v4
61-
with:
62-
# This path is specific to Ubuntu
63-
path: ~/.cache/pip
64-
# Look to see if there is a cache hit for the corresponding requirements file
65-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
66-
restore-keys: |
67-
${{ runner.os }}-pip-
68-
${{ runner.os }}-
69-
70-
- name: Install dependencies
71-
run: |
72-
python -m pip install --upgrade pip
73-
pip install -r scripts/requirements.txt
74-
75-
- name: validate
76-
run: scripts/validate.sh
77-
7851
# Deploy to preview site
7952
- name: Create GitHub deployment
8053
uses: glenrobson/deployments@v0.4.2

.github/workflows/preview.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,33 +46,6 @@ jobs:
4646
- name: Test *iiif.io* links
4747
run: bundle exec rake test:links:iiif
4848

49-
# Validate
50-
- name: Set up Python 3.x
51-
uses: actions/setup-python@v5
52-
with:
53-
# Semantic version range syntax or exact version of a Python version
54-
python-version: '3.x'
55-
# Optional - x64 or x86 architecture, defaults to x64
56-
architecture: 'x64'
57-
- name: Cache pip
58-
uses: actions/cache@v4
59-
with:
60-
# This path is specific to Ubuntu
61-
path: ~/.cache/pip
62-
# Look to see if there is a cache hit for the corresponding requirements file
63-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
64-
restore-keys: |
65-
${{ runner.os }}-pip-
66-
${{ runner.os }}-
67-
68-
- name: Install dependencies
69-
run: |
70-
python -m pip install --upgrade pip
71-
pip install -r scripts/requirements.txt
72-
73-
- name: validate
74-
run: scripts/validate.sh
75-
7649
- name: add URL to config
7750
run: .github/bin/addURL.sh
7851

.github/workflows/validate.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: validate
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
validate:
9+
runs-on: ubuntu-latest
10+
env:
11+
BUNDLE_WITH: test jekyll_plugins
12+
SITE_ID: 'cookbook' # which iiif site this is
13+
URL: 'https://preview.iiif.io'
14+
15+
steps:
16+
- name: Check out this repository
17+
uses: actions/checkout@v5
18+
19+
# Setup ruby and build site
20+
- name: Setup ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
bundler-cache: true
24+
25+
- name: add URL to config
26+
run: .github/bin/addURL.sh
27+
28+
- name: Build site
29+
run: bundle exec rake build:preview
30+
31+
- name: Run IIIF validator
32+
uses: IIIF/presentation-validator@main
33+
with:
34+
directory: _site/cookbook/HEAD/recipe

recipe/0057-publishing-v2-and-v3/manifest-v2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{
1313
"@id": "{{ id.path }}/canvas/p1",
1414
"@type": "sc:Canvas",
15+
"label": "p. 1",
1516
"height": 1800,
1617
"width": 1200,
1718
"images": [

0 commit comments

Comments
 (0)