umberto 4.2.4 → 4.2.6

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,20 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [4.2.6](https://github.com/cksource/umberto/compare/v4.2.5...v4.2.6) (2024-08-12)
5
+
6
+ ### Bug fixes
7
+
8
+ * Fixed the API dropdown lists (the "Properties", "Methods" and "Events" lists) to be rendered on top of the "See source" link. Closes [#1205](https://github.com/cksource/umberto/issues/1205). ([commit](https://github.com/cksource/umberto/commit/7bbb3d5fa4b46a6fe5df5887297e9225241829ba))
9
+
10
+
11
+ ## [4.2.5](https://github.com/cksource/umberto/compare/v4.2.4...v4.2.5) (2024-07-25)
12
+
13
+ ### Other changes
14
+
15
+ * Fixed SASS deprecation warnings when compiling CSS files. Closes [#1200](https://github.com/cksource/umberto/issues/1200). ([commit](https://github.com/cksource/umberto/commit/5aa1aa949670f846dba02d94575a94b56a22179a))
16
+
17
+
4
18
  ## [4.2.4](https://github.com/cksource/umberto/compare/v4.2.3...v4.2.4) (2024-07-17)
5
19
 
6
20
  Internal changes only (updated dependencies, documentation, etc.).
package/README.md CHANGED
@@ -688,28 +688,21 @@ E.g.
688
688
  MAIN
689
689
  ```
690
690
 
691
- ## Releasing package
691
+ ## Releasing the package
692
692
 
693
- ### Changelog
693
+ CircleCI automates the release process and can release both channels: stable (`X.Y.Z`) and pre-releases (`X.Y.Z-alpha.X`, etc.).
694
694
 
695
- Before starting the release process, you need to generate the changelog:
695
+ Before you start, you need to prepare the changelog entries.
696
696
 
697
- ```bash
698
- npm run changelog
699
- ```
700
-
701
- ### Publishing
697
+ 1. Make sure the `#master` branch is up-to-date: `git fetch && git checkout master && git pull`.
698
+ 1. Prepare a release branch: `git checkout -b release-[YYYYMMDD]` where `YYYYMMDD` is the current day.
699
+ 1. Generate the changelog entries: `yarn run changelog --branch release-[YYYYMMDD] [--from [GIT_TAG]]`.
700
+ * By default, the changelog generator uses the latest published tag as a starting point for collecting commits to process.
702
701
 
703
- After generating the changelog, you are able to release the package.
702
+ The `--from` modifier option allows overriding the default behavior. It is required when preparing the changelog entries for the next stable release while the previous one was marked as a prerelease, e.g., `@alpha`.
704
703
 
705
- First, you need to bump the version:
706
-
707
- ```bash
708
- npm run release:prepare-packages
709
- ```
710
-
711
- After bumping the version, you can publish the changes:
712
-
713
- ```bash
714
- npm run release:publish-packages
715
- ```
704
+ **Example**: Let's assume that the `v5.0.0-alpha.0` tag is our latest and that we want to release it on a stable channel. The `--from` modifier should be equal to `--from v4.0.0`.
705
+ * This task checks what changed in each package and bumps the version accordingly. It won't create a new changelog entry if nothing changes at all. If changes were irrelevant (e.g., only dependencies), it would make an "_internal changes_" entry.
706
+ * Scan the logs printed by the tool to search for errors (incorrect changelog entries). Incorrect entries (e.g., ones without the type) should be addressed. You may need to create entries for them manually. This is done directly in CHANGELOG.md (in the root directory). Make sure to verify the proposed version after you modify the changelog.
707
+ 1. Commit all changes and prepare a new pull request targeting the `#master` branch.
708
+ 1. Ping the `@ckeditor/ckeditor-5-devops` team to review the pull request and trigger the release process.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umberto",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "@ckeditor/jsdoc-plugins": "^32.0.1",
21
21
  "babel-loader": "^8.2.5",
22
22
  "chalk": "^4.1.0",
23
- "cheerio": "^1.0.0-rc.12",
23
+ "cheerio": "^1.0.0",
24
24
  "cpx": "^1.5.0",
25
25
  "del": "^6.1.1",
26
26
  "element-closest": "^3.0.2",
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
 
10
10
  const regexp = /(?<=>)utf8_encoded_content:([0-9,]+)(?=<\/code><\/pre>)/g;
11
11
  const textDecoder = new TextDecoder();
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
  const upath = require( 'upath' );
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
 
10
10
  /**
11
11
  * Make sure each page has a title.
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
 
10
10
  hexo.extend.helper.register( 'uSplitToTitleAndContent', data => {
11
11
  const $ = cheerio.load( data, null, false );
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
 
10
10
  hexo.extend.helper.register( 'uToc', ( data, options = {} ) => {
11
11
  const $ = cheerio.load( data, null, false );
@@ -7,7 +7,7 @@
7
7
 
8
8
  const upath = require( 'upath' );
9
9
  const fs = require( 'fs-extra' );
10
- const { default: cheerio } = require( 'cheerio' );
10
+ const cheerio = require( 'cheerio' );
11
11
  const FileNameManager = require( './classes/file-name-manager' );
12
12
  const HtmlFile = require( './classes/html-file' );
13
13
  const DocDataFactory = require( './classes/doc-data-factory' );
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
  const splitLongname = require( '../../helpers/split-longname' );
10
10
  const chalk = require( 'chalk' );
11
11
  const macroReplacer = require( '../../tasks/macro-replacer' );
@@ -334,7 +334,7 @@ module.exports = class DescriptionParser {
334
334
  const headerLevel = Number( item.name.slice( -1 ) );
335
335
  const newHeaderLevel = headerLevel + decreaseLevel <= 6 ? headerLevel + decreaseLevel : 6;
336
336
 
337
- return cheerio( `<h${ newHeaderLevel }></h${ newHeaderLevel }>` ).append( $( item ).html() );
337
+ return cheerio.load( `<h${ newHeaderLevel }></h${ newHeaderLevel }>` )( `h${ newHeaderLevel }` ).append( $( item ).html() );
338
338
  } );
339
339
 
340
340
  return $.html();
@@ -5,7 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { default: cheerio } = require( 'cheerio' );
8
+ const cheerio = require( 'cheerio' );
9
9
  const keyNameMap = {
10
10
  tagname: {
11
11
  name: 'kind',
@@ -8,7 +8,7 @@
8
8
  const fs = require( 'fs' );
9
9
  const upath = require( 'upath' );
10
10
  const glob = require( 'glob' );
11
- const { default: cheerio } = require( 'cheerio' );
11
+ const cheerio = require( 'cheerio' );
12
12
 
13
13
  const SDK_SELECTOR = 'meta[name="sdk-samples"]';
14
14
 
@@ -2,6 +2,14 @@
2
2
  // For licensing, see LICENSE.md or http://ckeditor.com/license
3
3
 
4
4
  div.api-props-filter {
5
+ right: 0;
6
+ left: $u-sidebar-width;
7
+ padding-top: u-spacing( -1 );
8
+ margin-bottom: 0;
9
+ text-align: center;
10
+
11
+ @include u-sticky-filter;
12
+
5
13
  h4 {
6
14
  @include u-micro-header;
7
15
  }
@@ -25,14 +33,6 @@ div.api-props-filter {
25
33
  }
26
34
  }
27
35
 
28
- @include u-sticky-filter;
29
-
30
- right: 0;
31
- left: $u-sidebar-width;
32
- padding-top: u-spacing( -1 );
33
- margin-bottom: 0;
34
- text-align: center;
35
-
36
36
  &__inner {
37
37
  text-align: left;
38
38
  margin: 0 auto;
@@ -8,15 +8,14 @@
8
8
 
9
9
  .api-subheader {
10
10
  display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ margin-bottom: 20px;
11
14
 
12
15
  &.hidden-loading {
13
16
  display: none;
14
17
  }
15
18
 
16
- justify-content: space-between;
17
- align-items: center;
18
- margin-bottom: 20px;
19
-
20
19
  @include u-responsive-mobile {
21
20
  flex-wrap: wrap;
22
21
  }
@@ -91,7 +90,8 @@
91
90
  min-width: 500px;
92
91
  max-height: 50vh;
93
92
 
94
- z-index: 1;
93
+ // Render the API dropdowns on top of the "See source" button.
94
+ z-index: 2;
95
95
 
96
96
  li {
97
97
  width: 50%;
@@ -46,6 +46,11 @@
46
46
 
47
47
  /* Public/Inherited/Mixed/Protected/Private/Deprecated Items filter. */
48
48
  .api-tree__filter {
49
+ text-align: center;
50
+ left: 0;
51
+ width: $u-sidebar-width;
52
+ border-right: 1px solid u-color( 'background-hue' );
53
+
49
54
  @include u-sticky-filter;
50
55
  @include u-unselectable;
51
56
 
@@ -53,11 +58,6 @@
53
58
  display: none;
54
59
  }
55
60
 
56
- text-align: center;
57
- left: 0;
58
- width: $u-sidebar-width;
59
- border-right: 1px solid u-color( 'background-hue' );
60
-
61
61
  input {
62
62
  display: none;
63
63
  }
@@ -140,16 +140,16 @@ ul.collapsing-list {
140
140
  }
141
141
 
142
142
  h3 {
143
+ margin-bottom: 0;
144
+ padding-top: 0;
145
+ width: 100%;
146
+
143
147
  @include u-baseline( 0 );
144
148
 
145
149
  code {
146
150
  font-weight: 400;
147
151
  }
148
152
 
149
- margin-bottom: 0;
150
- padding-top: 0;
151
- width: 100%;
152
-
153
153
  &:first-of-type {
154
154
  flex: 2;
155
155
  }
@@ -8,11 +8,13 @@ Note: there are also dedicated styles for API Tree and Guides & SDK Tree.
8
8
  See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
9
9
 
10
10
  .tree {
11
- @include u-unselectable;
11
+ list-style: none;
12
12
 
13
13
  // Make sure the filter never floats over the tree.
14
14
  padding-bottom: $u-line-height-base + em;
15
15
 
16
+ @include u-unselectable;
17
+
16
18
  // Generate styles for tree levels recursively.
17
19
  @include u-responsive-tablet-plus {
18
20
  @include levels( 1, 1 );
@@ -22,8 +24,6 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
22
24
  @include levels( 1, 0 );
23
25
  }
24
26
 
25
- list-style: none;
26
-
27
27
  &.guide-tree {
28
28
  opacity: 0; //prevents flickering when applying categories fold state
29
29
  }