Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 9bbe0f4

Browse files
Merge pull request #1100 from deckgo/release-css-hightli
release: highlight code
2 parents f10576f + a81691b commit 9bbe0f4

File tree

11 files changed

+36
-18
lines changed

11 files changed

+36
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
# [4.3.0](https://github.com/deckgo/deckdeckgo/compare/v4.2.0...v4.3.0) (In progress...)
44

5+
### Applications
6+
7+
- docs: v2.9.2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/docs/CHANGELOG.md))
8+
59
### Web Components
610

711
- core: v8.1.3 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md))
8-
- highlight-code: v2.5.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))
12+
- highlight-code: v2.5.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))
913

1014
### Others
1115

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.9.2 (2021-03-07)
2+
3+
### Docs
4+
5+
- new highlight code CSS variable `--deckgo-highlight-code-line-height`
6+
17
# 2.9.1 (2021-01-14)
28

39
### Docs

docs/docs/components/app-components-highlight-code/app-components-highlight-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ The `<deckgo-highlight-code/>` could be styled using the following CSS4 variable
152152
| --deckgo-highlight-code-margin-bottom | 16px 0 or 0 0 16px | Margin bottom of the code |
153153
| --deckgo-highlight-code-zoom | 1 | If you wish to manually zoom the code |
154154
| --deckgo-highlight-code-white-space | pre-wrap | The attribute white-space of the displayed |
155-
| code |
156155
| --deckgo-highlight-code-font-size | | The size of the font for the code |
156+
| --deckgo-highlight-code-line-height | | The line height of the font for the code |
157157
| --deckgo-highlight-code-font-family | monospace | The family of the font for the code |
158158
| --deckgo-highlight-code-line-background | #3E4564 | The background of the lines you wish to highlight |
159159
| --deckgo-highlight-code-line-numbers | #999999 | The color of the line numbers and divider |

docs/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deckdeckgo-docs",
3-
"version": "2.9.1",
3+
"version": "2.9.2",
44
"description": "The Progressive Web App alternative for simple presentations",
55
"license": "MIT",
66
"files": [
@@ -20,7 +20,7 @@
2020
"@deckdeckgo/deck-utils": "^3.4.0",
2121
"@deckdeckgo/demo": "^2.0.1",
2222
"@deckdeckgo/drag-resize-rotate": "^2.0.1",
23-
"@deckdeckgo/highlight-code": "^2.4.0",
23+
"@deckdeckgo/highlight-code": "^2.5.1",
2424
"@deckdeckgo/inline-editor": "^3.0.2",
2525
"@deckdeckgo/lazy-img": "^3.0.0",
2626
"@deckdeckgo/markdown": "^2.0.1",

docs/prerender.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {PrerenderHydrateOptions} from '@stencil/core/internal/stencil-public-com
44
export const config: PrerenderConfig = {
55
hydrateOptions(url?: URL): PrerenderHydrateOptions {
66
const hydrate: PrerenderHydrateOptions = {
7-
excludeComponents: ['deckgo-highlight-code', 'deckgo-slide-poll', 'deckgo-word-cloud'],
7+
excludeComponents: ['deckgo-highlight-code', 'deckgo-deck', 'deckgo-slide-poll', 'deckgo-word-cloud', 'deckgo-demo', 'deckgo-gif'],
88
};
99
return hydrate;
1010
},

docs/src/app/pages/docs/components/app-components-highlight-code/app-components-highlight-code.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,14 +436,14 @@ export class AppComponentsHighlightCode {
436436
<td>The attribute white-space of the displayed</td>
437437
</tr>
438438
<tr>
439-
<td>code</td>
440-
<td></td>
439+
<td>--deckgo-highlight-code-font-size</td>
441440
<td></td>
441+
<td>The size of the font for the code</td>
442442
</tr>
443443
<tr>
444-
<td>--deckgo-highlight-code-font-size</td>
444+
<td>--deckgo-highlight-code-line-height</td>
445445
<td></td>
446-
<td>The size of the font for the code</td>
446+
<td>The line height of the font for the code</td>
447447
</tr>
448448
<tr>
449449
<td>--deckgo-highlight-code-font-family</td>

webcomponents/highlight-code/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.5.1 (2021-03-07)
2+
3+
### Styles
4+
5+
- add new CSS variable `--deckgo-highlight-code-line-height`
6+
17
# 2.5.0 (2021-02-17)
28

39
### Features

webcomponents/highlight-code/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webcomponents/highlight-code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deckdeckgo/highlight-code",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "A Web Component to highlight your code",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)