Skip to content

Commit 4dbc13a

Browse files
authored
Enable the ebook for 2024 (#4022)
* Enable the ebook for 2024 * Ebook updates * Missed contributors * Linting * Dummy updated entries * Fix authors
1 parent 1bb48e6 commit 4dbc13a

File tree

6 files changed

+38
-25
lines changed

6 files changed

+38
-25
lines changed

.github/workflows/predeploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name: Predeploy script
1414

1515
env:
1616
# Update periodically from https://www.princexml.com/latest/
17-
PRINCE_PACKAGE: 'prince_13.6-1_ubuntu20.04_amd64.deb'
17+
PRINCE_PACKAGE: 'prince_20250207-1_ubuntu24.04_amd64.deb'
1818

1919
on:
2020
workflow_dispatch:

sql/2024/javascript/bytes_by_3p.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ FROM (
1212
IF(NET.HOST(url) IN (
1313
SELECT domain FROM `httparchive.almanac.third_parties` WHERE date = '2024-06-01' AND category != 'hosting'
1414
), 'third party', 'first party') AS host,
15-
SUM(INT64(summary.respBodySize)) / 1024 AS kbytes
15+
SUM(SAFE.INT64(summary.respBodySize)) / 1024 AS kbytes
1616
FROM
1717
`httparchive.crawl.requests`
18-
1918
WHERE
2019
date = '2024-06-01' AND
2120
type = 'script'

src/config/2024.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"is_live": true,
55
"supported_languages": ["en","es","fr","hi","it","ja","nl","pt","ru","tr","uk","zh-CN","zh-TW"],
6-
"ebook_languages": []
6+
"ebook_languages": ["en"]
77
}
88
],
99
"outline": [

src/config/last_updated.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,22 @@
185185
"hash": "b8f7931adacb18da3ab6ad9eab418cc3",
186186
"size": 32
187187
},
188-
"/static/pdfs/web_almanac_2022_js_cover_A5.pdf": {
189-
"date_published": "2024-09-26T00:00:00.000Z",
190-
"date_modified": "2024-09-20T00:00:00.000Z",
191-
"hash": "ba776e3c29abaa9eea11517072e3e29d"
188+
"/static/pdfs/web_almanac_2024_en.pdf": {
189+
"date_published": "2025-03-03T00:00:00.000Z",
190+
"date_modified": "2025-03-03T00:00:00.000Z",
191+
"hash": "c9c1dcd338656feacf598be3e131ca1f",
192+
"size": 32
192193
},
193-
"/static/pdfs/web_almanac_2022_js_print_A5.pdf": {
194-
"date_published": "2024-09-26T00:00:00.000Z",
195-
"date_modified": "2024-09-20T00:00:00.000Z",
196-
"hash": "81e8470168d9c1cb3ec4fa87cb0bf335",
197-
"size": 31
194+
"/static/pdfs/web_almanac_2024_en_cover_A5.pdf": {
195+
"date_published": "2025-03-03T00:00:00.000Z",
196+
"date_modified": "2025-03-03T00:00:00.000Z",
197+
"hash": "1124729db24dbc4f1d34614a52f351bc"
198+
},
199+
"/static/pdfs/web_almanac_2024_en_print_A5.pdf": {
200+
"date_published": "2025-03-03T00:00:00.000Z",
201+
"date_modified": "2025-03-03T00:00:00.000Z",
202+
"hash": "3fece0f716b2d344158a3ec175bbbef5",
203+
"size": 32
198204
},
199205
"en/2019/chapters/accessibility.html": {
200206
"date_published": "2019-11-11T00:00:00.000Z",

src/static/css/ebook.css

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,18 @@ section.chapter {
392392
string-set: chapter-subtitle content() " : ";
393393
}
394394

395+
/* Work around due to flex bug. */
396+
/* See: https://www.princexml.com/forum/topic/4525/image-flex-bug-in-prince-14?p=1#22775 */
395397
figure {
396-
margin: 0;
398+
margin: 0 auto;
399+
display: block;
400+
}
401+
402+
/* Work around due to flex bug. */
403+
/* See: https://www.princexml.com/forum/topic/4525/image-flex-bug-in-prince-14?p=1#22775 */
404+
.table-wrap {
405+
margin: 0 auto;
406+
display: block;
397407
}
398408

399409
figure,
@@ -468,18 +478,15 @@ section.chapter {
468478
width: 4.29rem;
469479
}
470480

471-
/* Prince does not yet support Grid https://www.princexml.com/roadmap/ */
472-
@supports not (display: grid) {
473-
.content .authors li {
474-
display: flex;
475-
margin-bottom: 10px;
476-
margin-bottom: 1rem;
477-
}
481+
.content .authors li {
482+
display: flex;
483+
margin-bottom: 10px;
484+
margin-bottom: 1rem;
485+
}
478486

479-
.authors .avatar-link {
480-
flex-basis: 60px;
481-
flex-shrink: 0;
482-
}
487+
.authors .avatar-link {
488+
flex-basis: 60px;
489+
flex-shrink: 0;
483490
}
484491

485492
.fn {

src/templates/base/base_ebook.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
{% if year == '2020' and lang == 'ja' %}{% set spine = 37.0 %}{% endif %}
124124
{% if year == '2021' %}{% set spine = 46.5 %}{% endif %}
125125
{% if year == '2022' %}{% set spine = 42.5 %}{% endif %}
126+
{% if year == '2024' %}{% set spine = 42.5 %}{% endif %}
126127
{% set pageWidth = 148 %}
127128
{% set pageHeight = 210 %}
128129
{% if request.args.get('unit') != None %}{% set unit = request.args.get('unit') %}{% endif %}

0 commit comments

Comments
 (0)