willamette 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/content/willamette/style-guide.md +42 -2
- data/content/willamette/yaquina-bay-bridge.jpg +0 -0
- data/layouts/willamette/default.erb +2 -2
- data/lib/willamette/builders/inspectors.rb +9 -3
- data/lib/willamette/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf281f7a1d1e3c61fa0fa0d5daa8fc14a9d8d681999b46fd5970815a91e46ec8
|
|
4
|
+
data.tar.gz: 40bed820b2a9fe5adfafefa47c1e8f80ecff471350203ba2ef973bfd9ba71754
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef7c7e8084b7fe822147cab2fefaa32f5c1993a1b5502eb35fea1c3ce1ed0caa96d06ded6bb35280d1ffa5f609c62177a5a0e52683fb60e96ff8ca48ca608226
|
|
7
|
+
data.tar.gz: 202a9c2b2bf1ad83afeea8a92d95e69533f503fbd3c952cdcc9504257823e0e6dafa312ee321d2737a0afb093eb206a7d5065d02b0bade0d55fd467e285f66a6
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- ...
|
|
11
11
|
|
|
12
|
+
## [0.10.0] - 2026-05-24
|
|
13
|
+
|
|
14
|
+
- HTML enhancements can now be switched off in front matter
|
|
15
|
+
- Added content for style guide
|
|
16
|
+
- Right sidebar ToC is now `position: sticky`
|
|
17
|
+
|
|
18
|
+
## [0.9.3] - 2026-05-07
|
|
19
|
+
|
|
20
|
+
- Fix contents menu button on mobile so page titles don't overlay
|
|
21
|
+
|
|
12
22
|
## [0.9.2] - 2026-05-07
|
|
13
23
|
|
|
14
24
|
- Keep explore menu open on mobile if previously opened
|
data/Gemfile.lock
CHANGED
|
@@ -169,8 +169,48 @@ And of course, code snippets.
|
|
|
169
169
|
|
|
170
170
|
## Images & Figures
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
Plain `<img>` with `width: 400px`:
|
|
173
|
+
|
|
174
|
+
{: style="width: 400px"}
|
|
175
|
+
|
|
176
|
+
Image within a `<figure>`:
|
|
177
|
+
|
|
178
|
+
<figure>
|
|
179
|
+
<img src="/willamette/yaquina-bay-bridge.jpg" alt="Yaquina Bay Bridge" />
|
|
180
|
+
<figcaption>Yaquina Bay Bridge (© 2024 Jared White)</figcaption>
|
|
181
|
+
</figure>
|
|
173
182
|
|
|
174
183
|
## Tables
|
|
175
184
|
|
|
176
|
-
|
|
185
|
+
<table>
|
|
186
|
+
<caption><b>Optical angles and visual fields</b>
|
|
187
|
+
</caption>
|
|
188
|
+
<tbody><tr>
|
|
189
|
+
<th>
|
|
190
|
+
</th>
|
|
191
|
+
<th>Angle between eyes
|
|
192
|
+
</th>
|
|
193
|
+
<th>Binocular field
|
|
194
|
+
</th>
|
|
195
|
+
<th>Combined field<div style="clear:both;" class=""></div>(binocular + periphery)
|
|
196
|
+
</th></tr>
|
|
197
|
+
<tr>
|
|
198
|
+
<th>Lemurs
|
|
199
|
+
</th>
|
|
200
|
+
<td>10–15°
|
|
201
|
+
</td>
|
|
202
|
+
<td>114–130°
|
|
203
|
+
</td>
|
|
204
|
+
<td>250–280°
|
|
205
|
+
</td></tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<th>Anthropoid primates
|
|
208
|
+
</th>
|
|
209
|
+
<td>0°
|
|
210
|
+
</td>
|
|
211
|
+
<td>140–160°
|
|
212
|
+
</td>
|
|
213
|
+
<td>180–190°
|
|
214
|
+
</td></tr></tbody></table>
|
|
215
|
+
|
|
216
|
+
<p style="text-align: right"><small><a href="https://en.wikipedia.org/wiki/Lemur#senses">Reproduced from Wikipedia</a></small></p>
|
|
Binary file
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<main slot="content" id="content">
|
|
15
15
|
<div hidden class="show-mid-screen">
|
|
16
|
-
<button type="button" class="wa-outlined" onclick="document.body.classList.toggle('sidebar-end-open')"><wa-icon name="list"></wa-icon></button>
|
|
16
|
+
<button type="button" class="wa-outlined wa-size-s" onclick="document.body.classList.toggle('sidebar-end-open')"><wa-icon name="list"></wa-icon></button>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<main-contents<%= ' data-pagefind-body' unless data.exclude_from_pagefind %>>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<aside slot="sidebar-end" hidden>
|
|
33
33
|
<div class="show-mid-screen">
|
|
34
|
-
<button type="button" class="wa-outlined" onclick="document.body.classList.toggle('sidebar-end-open')"><wa-icon name="close"></wa-icon></button>
|
|
34
|
+
<button type="button" class="wa-outlined wa-size-s" onclick="document.body.classList.toggle('sidebar-end-open')"><wa-icon name="close"></wa-icon></button>
|
|
35
35
|
</div>
|
|
36
36
|
<h2><%= t "documentation.contents" %></h2>
|
|
37
37
|
|
|
@@ -4,7 +4,9 @@ module Willamette
|
|
|
4
4
|
# TODO: make these all optional/configurable
|
|
5
5
|
|
|
6
6
|
# Open external links in new windows
|
|
7
|
-
inspect_html do |document|
|
|
7
|
+
inspect_html do |document, resource|
|
|
8
|
+
next if resource.data.dig(:willamette, :external_links_target) == false
|
|
9
|
+
|
|
8
10
|
document.query_selector_all("a").each do |anchor|
|
|
9
11
|
next if anchor[:target]
|
|
10
12
|
|
|
@@ -17,7 +19,9 @@ module Willamette
|
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
# Add visible hash anchors for headings
|
|
20
|
-
inspect_html do |document|
|
|
22
|
+
inspect_html do |document, resource|
|
|
23
|
+
next if resource.data.dig(:willamette, :heading_anchors) == false
|
|
24
|
+
|
|
21
25
|
document.query_selector_all("article h2[id], article h3[id]").each do |heading|
|
|
22
26
|
heading << document.create_text_node(" ")
|
|
23
27
|
heading << document.create_element(
|
|
@@ -29,7 +33,9 @@ module Willamette
|
|
|
29
33
|
end
|
|
30
34
|
|
|
31
35
|
# Lazy-load images by default
|
|
32
|
-
inspect_html do |document|
|
|
36
|
+
inspect_html do |document, resource|
|
|
37
|
+
next if resource.data.dig(:willamette, :lazy_loaded_images) == false
|
|
38
|
+
|
|
33
39
|
main = document.query_selector("main")
|
|
34
40
|
|
|
35
41
|
main.query_selector_all("img").each do |img|
|
data/lib/willamette/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: willamette
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bridgetown Team
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-05-
|
|
10
|
+
date: 2026-05-25 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bridgetown
|
|
@@ -110,6 +110,7 @@ files:
|
|
|
110
110
|
- content/search.erb
|
|
111
111
|
- content/willamette/bridgetown-avatar.svg
|
|
112
112
|
- content/willamette/style-guide.md
|
|
113
|
+
- content/willamette/yaquina-bay-bridge.jpg
|
|
113
114
|
- layouts/willamette/default.erb
|
|
114
115
|
- lib/willamette.rb
|
|
115
116
|
- lib/willamette/builders/author_extension.rb
|