buckram 1.8.1 → 1.8.3

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.
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 14
1
+ 18
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.8.3"
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.3](https://github.com/pressbooks/buckram/compare/v1.8.2...v1.8.3) (2024-10-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * mathjax footnote support ([#364](https://github.com/pressbooks/buckram/issues/364)) ([6560bf7](https://github.com/pressbooks/buckram/commit/6560bf7aa05b32b78bb4891398870e3bade3dadc))
9
+
10
+ ## [1.8.2](https://github.com/pressbooks/buckram/compare/v1.8.1...v1.8.2) (2023-07-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * update release instructions ([#332](https://github.com/pressbooks/buckram/issues/332)) ([b60dda3](https://github.com/pressbooks/buckram/commit/b60dda36f6858f2bb55e4f536abdf1080194fac0))
16
+
3
17
  ## [1.8.1](https://github.com/pressbooks/buckram/compare/v1.8.0...v1.8.1) (2023-01-04)
4
18
 
5
19
 
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Buckram
2
2
 
3
- [![License](https://badgen.net/github/license/pressbooks/buckram)](https://github.com/pressbooks/buckram/blob/main/LICENSE) [![Build Status](https://badgen.net/github/status/pressbooks/buckram)](https://github.com/pressbooks/buckram/actions) [![Latest Release](https://badgen.net/npm/v/buckram)](https://www.npmjs.com/package/buckram)
3
+ [![License](https://badgen.net/github/license/pressbooks/buckram)](https://github.com/pressbooks/buckram/blob/production/LICENSE)
4
+ [![Build Status](https://badgen.net/github/checks/pressbooks/buckram)](https://github.com/pressbooks/buckram/actions)
5
+ [![Latest Release](https://badgen.net/npm/v/buckram)](https://www.npmjs.com/package/buckram)
4
6
 
5
7
  Opinionated SCSS components for books (web, EPUB and PDF).
6
8
 
@@ -23,8 +25,12 @@ npm test
23
25
 
24
26
  ## Releasing
25
27
 
26
- [release-please](https://github.com/googleapis/release-please) will generate release notes in a PR automatically based on commits to `dev`.
28
+ Buckram uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), enforced with [commitlint](https://commitlint.js.org/).
29
+ This facilitates releasing new versions of the package via [Release Please](https://github.com/googleapis/release-please).
30
+ Release notes will be automatically added to a PR based on commits to `dev`.
27
31
 
28
- Merging the PR to tag a new GitHub release and update [CHANGELOG.md](CHANGELOG.md).
32
+ To cut a release, merge the current [release pull request](https://github.com/google-github-actions/release-please-action#whats-a-release-pr).
33
+ This will tag a new GitHub release and update [CHANGELOG.md](CHANGELOG.md).
29
34
 
30
- Then, run `npm publish`.
35
+ Then, run `npm publish` from the root of the package and enter your one-time password when prompted. For more
36
+ information on publishing to npm, see the [npm publish documentation](https://docs.npmjs.com/cli/publish).
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Name: Buckram
3
3
  * x-release-please-start-version
4
- * Version: 1.8.1
4
+ * Version: 1.8.2
5
5
  * x-release-please-end
6
6
  * Description: Opinionated SCSS components for books (web, EPUB and PDF).
7
7
  */
@@ -62,7 +62,8 @@
62
62
  .pullquote--outside + p,
63
63
  .pullquote-inside + p,
64
64
  .pullquote--inside + p,
65
- .sidebar + p {
65
+ .sidebar + p,
66
+ .textbox--sidebar + p {
66
67
  margin-top: $para-margin-top;
67
68
  text-indent: $para-indent;
68
69
  }
@@ -199,23 +200,6 @@
199
200
  hyphens: none;
200
201
  }
201
202
 
202
- // When paragraphs follow a floated element, make sure indents work as expected.
203
- // NOTE: this should only happen when paragraph separators = indent.
204
-
205
- .wp-caption.alignleft + p,
206
- .wp-nocaption.alignleft + p,
207
- .wp-caption.alignright + p,
208
- .wp-nocaption.alignright + p,
209
- .float-top + p,
210
- .float-bottom + p,
211
- .pullquote + p,
212
- .pullquote-right + p,
213
- .pullquote-left + p,
214
- .pullquote-outside + p,
215
- .sidebar + p {
216
- margin-top: $para-margin-top;
217
- text-indent: $para-indent;
218
- }
219
203
 
220
204
  // Hanging Indents
221
205
  .hanging-indent {
@@ -41,6 +41,12 @@
41
41
  footnote-style-position: outside;
42
42
  }
43
43
 
44
+ .mathjax {
45
+ width: $footnote-mathjax-width;
46
+ padding-bottom: $footnote-mathjax-padding-bottom;
47
+ }
48
+
49
+
44
50
  // Footnote & Endnote number markers (in body text)
45
51
 
46
52
  .endnote::footnote-call,
@@ -212,7 +212,7 @@
212
212
  margin-inside: $textbox-sidebar-margin-inside;
213
213
  }
214
214
 
215
- max-width: 25%;
215
+ max-width: $textbox-sidebar-max-width;
216
216
  }
217
217
 
218
218
  @if $type == 'epub' {
@@ -164,6 +164,8 @@ $footnote-blockquote-font-size: 0.95em !default;
164
164
  /// @type String
165
165
  $footnote-number-marker-font-size: $sup-sub-font-size !default;
166
166
  $footnote-number-marker-line-height: $sup-sub-line-height !default;
167
+ $footnote-mathjax-width: 3em !default;
168
+ $footnote-mathjax-padding-bottom: 0.4em !default;
167
169
 
168
170
  // Endnotes
169
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buckram",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "Opinionated SCSS components for books (web, EPUB and PDF).",
5
5
  "scripts": {
6
6
  "build": "composer install && composer test",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/pressbooks/buckram#readme",
23
23
  "engines": {
24
- "node": ">= 14"
24
+ "node": ">= 18"
25
25
  },
26
26
  "devDependencies": {
27
27
  "chai": "^4.1.2",
@@ -29,7 +29,7 @@
29
29
  "pixelmatch": "^5.2.1",
30
30
  "polyserve": "^0.27.15",
31
31
  "pressbooks-build-tools": "^4.0.0",
32
- "puppeteer": "^19.0.0",
32
+ "puppeteer": "^21.1.1",
33
33
  "sassdoc": "^2.7.1",
34
34
  "type-detect": "^4.0.8"
35
35
  },
@@ -0,0 +1,17 @@
1
+ {
2
+ "packages": {
3
+ ".": {
4
+ "changelog-path": "CHANGELOG.md",
5
+ "release-type": "node",
6
+ "bump-minor-pre-major": false,
7
+ "bump-patch-for-minor-pre-major": false,
8
+ "draft": false,
9
+ "prerelease": false,
10
+ "package-name": "buckram",
11
+ "extra-files": [
12
+ "assets/styles/buckram.scss"
13
+ ]
14
+ }
15
+ },
16
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
17
+ }