umberto 8.0.1 → 8.0.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [8.0.2](https://github.com/cksource/umberto/compare/v8.0.1...v8.0.2) (July 31, 2025)
5
+
6
+ ### Bug fixes
7
+
8
+ * Fixed an issue where code blocks appeared empty when displayed inside a `details` element in Chrome.
9
+ * Changed from `overscroll-behavior: none` to `overscroll-behavior-y: none` on `<html>` and `<body>` elements to allow Mac trackpad swipe gestures for browser navigation.
10
+ * Code blocks in API descriptions are no longer duplicated when there are multiple code blocks withing the same description.
11
+
12
+
4
13
  ## [8.0.1](https://github.com/cksource/umberto/compare/v8.0.0...v8.0.1) (July 28, 2025)
5
14
 
6
15
  ### Bug fixes
@@ -54,17 +63,6 @@ Changelog
54
63
  * Removed dependencies that can be replaced with native APIs or other already used dependencies. ([commit](https://github.com/cksource/umberto/commit/28d74364207ab055ad76c2857d58cccb1866559b))
55
64
  * Sitemaps will be generated separately for each project. Closes [#1254](https://github.com/cksource/umberto/issues/1254). ([commit](https://github.com/cksource/umberto/commit/7968755b2a4b1c23768a9420292eb1d168b898b3))
56
65
 
57
-
58
- ## [7.0.0](https://github.com/cksource/umberto/compare/v6.1.2...v7.0.0) (2025-05-05)
59
-
60
- ### BREAKING CHANGES
61
-
62
- * Rendering TypeScript-based API pages requires an input file generated by Typedoc in version `0.28.0` or later.
63
-
64
- ### Features
65
-
66
- * Support for rendering TypeScript API pages based on output from `typedoc@0.28`. Closes [#1188](https://github.com/cksource/umberto/issues/1188). ([commit](https://github.com/cksource/umberto/commit/561f94c6b025a0f1dbcc01c0c0e70ee5eeae387e))
67
-
68
66
  ---
69
67
 
70
68
  To see all releases, visit the [release page](https://github.com/cksource/umberto/releases).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umberto",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -387,28 +387,29 @@ module.exports = class DescriptionParser {
387
387
  const theme = options.theme;
388
388
 
389
389
  if ( theme === 'gloria' ) {
390
- const $code = $( 'pre code' );
390
+ $( 'pre' ).each( function() {
391
+ const $code = $( this ).find( 'code' );
391
392
 
392
- if ( !$code.length ) {
393
- return null;
394
- }
393
+ if ( !$code || !$code.length ) {
394
+ return;
395
+ }
395
396
 
396
- // Get the language from the class (e.g., "language-js" -> "js")
397
- const language = $code.attr( 'class' ) ?
398
- $code.attr( 'class' ).replace( 'doc', '' ).replace( 'language-', '' ).replace( 'ts', 'typescript' ).trim() :
399
- null;
397
+ // Get the language from the class (e.g., "language-js" -> "js")
398
+ const language = $code.attr( 'class' ) ?
399
+ $code.attr( 'class' ).replace( 'doc', '' ).replace( 'language-', '' ).replace( 'ts', 'typescript' ).trim() :
400
+ null;
400
401
 
401
- // Get the code content
402
- const code = $code.html();
402
+ // Get the code content
403
+ const code = $code.html();
403
404
 
404
- // Use the render-pug-component utility
405
- const html = renderCodeBlockPug( {
406
- language,
407
- code
408
- } );
405
+ // Use the render-pug-component utility
406
+ const html = renderCodeBlockPug( {
407
+ language,
408
+ code
409
+ } );
409
410
 
410
- $( this ).html( html );
411
- $( 'pre' ).replaceWith( html );
411
+ $( this ).replaceWith( html );
412
+ } );
412
413
  } else {
413
414
  $( 'pre[class~="source"]' ).each( function() {
414
415
  let code = $( this ).html();
@@ -3,7 +3,7 @@
3
3
  @layer layout {
4
4
  html {
5
5
  height: 100%;
6
- overscroll-behavior: none;
6
+ overscroll-behavior-y: none; /* Prevent vertical bounce, allow horizontal trackpad gestures. */
7
7
  overflow-x: hidden;
8
8
  }
9
9
 
@@ -12,6 +12,6 @@
12
12
  line-height: var(--line-height-base);
13
13
  font-family: var(--font-family-text);
14
14
  text-wrap: pretty;
15
- overscroll-behavior: none;
15
+ overscroll-behavior-y: none; /* Prevent vertical bounce, allow horizontal trackpad gestures. */
16
16
  }
17
17
  }