buckram 1.9.0 → 1.9.1

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.9.0"
2
+ ".": "1.9.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.1](https://github.com/pressbooks/buckram/compare/v1.9.0...v1.9.1) (2026-04-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** bump pressbooks-build-tools to v6 ([#408](https://github.com/pressbooks/buckram/issues/408)) ([893d388](https://github.com/pressbooks/buckram/commit/893d38867cc0ce6b703438ea212ce824c7c939d6))
9
+ * set tag types for TOC properly in PDF exports ([#395](https://github.com/pressbooks/buckram/issues/395)) ([b9ecded](https://github.com/pressbooks/buckram/commit/b9ecdedd5366a0bb982b20eed3283224ac3ccef8))
10
+
3
11
  ## [1.9.0](https://github.com/pressbooks/buckram/compare/v1.8.8...v1.9.0) (2026-04-15)
4
12
 
5
13
 
@@ -36,6 +36,16 @@
36
36
 
37
37
  @if $type == 'prince' {
38
38
  #toc {
39
+ ul {
40
+ /* stylelint-disable-next-line value-keyword-case */
41
+ -prince-pdf-tag-type: TOC;
42
+ }
43
+
44
+ li {
45
+ /* stylelint-disable-next-line value-keyword-case */
46
+ -prince-pdf-tag-type: TOCI;
47
+ }
48
+
39
49
  a::after {
40
50
  display: $toc-center-page-number-display;
41
51
  }
@@ -50,4 +60,4 @@
50
60
  display: $toc-center-chapter-number-display;
51
61
  }
52
62
  }
53
- }
63
+ }
@@ -252,10 +252,14 @@
252
252
  }
253
253
 
254
254
  ul {
255
+ /* stylelint-disable-next-line value-keyword-case */
256
+ -prince-pdf-tag-type: TOC;
255
257
  counter-reset: chapter;
256
258
  }
257
259
 
258
260
  li {
261
+ /* stylelint-disable-next-line value-keyword-case */
262
+ -prince-pdf-tag-type: TOCI;
259
263
  page-break-inside: avoid;
260
264
  position: relative;
261
265
  }
@@ -52,6 +52,16 @@
52
52
 
53
53
  @if $type == 'prince' {
54
54
  #toc {
55
+ ul {
56
+ /* stylelint-disable-next-line value-keyword-case */
57
+ -prince-pdf-tag-type: TOC;
58
+ }
59
+
60
+ li {
61
+ /* stylelint-disable-next-line value-keyword-case */
62
+ -prince-pdf-tag-type: TOCI;
63
+ }
64
+
55
65
  a::after {
56
66
  display: $toc-left-page-number-display;
57
67
  position: absolute;
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "buckram",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Opinionated SCSS components for books (web, EPUB and PDF).",
5
5
  "scripts": {
6
6
  "build": "composer install && composer test",
7
- "diff": "npm run -s build && mocha",
7
+ "diff": "run-s build mocha",
8
8
  "docs": "cross-env NODE_ENV=development node_modules/sassdoc/bin/sassdoc assets/styles --config sassdoc.json",
9
- "lint": "npm run -s lint:styles",
10
- "lint:styles": "stylelint 'assets/styles/**/*.scss'",
11
- "test": "npm run -s lint && npm run -s build"
9
+ "lint": "pressbooks-build-tools lint:styles 'assets/styles/**/*.scss'",
10
+ "fix": "pressbooks-build-tools fix:styles 'assets/styles/**/*.scss'",
11
+ "mocha": "mocha",
12
+ "test": "run-s lint build"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",
@@ -26,18 +27,16 @@
26
27
  "devDependencies": {
27
28
  "chai": "^4.1.2",
28
29
  "mocha": "^10.0.0",
30
+ "npm-run-all2": "^8.0.4",
29
31
  "pixelmatch": "^5.2.1",
30
32
  "polyserve": "^0.27.15",
31
- "pressbooks-build-tools": "^4.0.0",
33
+ "pressbooks-build-tools": "^6.0.0",
32
34
  "puppeteer": "^23.6.0",
33
35
  "sassdoc": "^2.7.1",
34
36
  "type-detect": "^4.0.8"
35
37
  },
36
- "eslintConfig": {
37
- "extends": "./node_modules/pressbooks-build-tools/config/eslint.js"
38
- },
39
38
  "stylelint": {
40
- "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js",
39
+ "extends": "pressbooks-build-tools/stylelint",
41
40
  "rules": {
42
41
  "no-descending-specificity": null,
43
42
  "no-duplicate-at-import-rules": null,