Skip to content

Commit 6b15e0a

Browse files
committed
Cleanup
1 parent f4f5024 commit 6b15e0a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Line numbers are enabled by default, but you can turn them off like so.
213213

214214
| Input Name | Input Typing | Default Value | Description |
215215
| ------------------------ | ------------------------------------ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
216-
| **codeTheme** | `HilightJsTheme` | `'default'` | The `highlight.js` code theme to use and display. Note: Only _one_ theme can be loaded on a single page at a time! The first theme to load will apply to all gists on the page. |
216+
| **codeTheme** | `HighlightJsTheme` (string) | `'default'` | The `highlight.js` code theme to use and display. Note: Only _one_ theme can be loaded on a single page at a time! The first theme to load will apply to all gists on the page. |
217217
| **displayOnlyFileNames** | `string \| string[] \| undefined` | `undefined` | Display in the DOM only the selected filename(s) from the gists files array. Can be either a string or string array. File names much match exactly, be sure to remove any leading or trailing whitespace in the provided strings. |
218218
| **gist** | `NgxGist \| undefined` | `undefined` | Provide a static gist model here directly which will be displayed if no `gistId` is provided for remote fetching. Also this model will be displayed should a fetch fail when retrieving `gistId`, or overwritten once the pertaining `gistId` data is fetched. |
219219
| **gistId** | `string` | `undefined` | Provide the GitHub gist id to be fetched and loaded. This can be found in URL of the gists you create. For example the id `TH1515TH31DT0C0PY` in: https://gist.github.com/YourUserName/TH1515TH31DT0C0PY. Alternatively, provide a value directly in the sibling input `gist`. |

src/app/public/ngx-gist-theme.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class NgxGistThemeService {
1313
hilightJsTheme,
1414
}: {
1515
materialTheme?: MaterialPrebuiltTheme;
16-
hilightJsTheme?: HilightJsTheme;
16+
hilightJsTheme?: HighlightJsTheme;
1717
} = {}): void {
1818
if (!materialTheme && !hilightJsTheme) {
1919
throw new Error('You must provide a theme.');
@@ -72,7 +72,7 @@ export type MaterialPrebuiltTheme =
7272
| 'pink-bluegrey'
7373
| 'purple-green';
7474

75-
export type HilightJsTheme =
75+
export type HighlightJsTheme =
7676
| 'a11y-dark'
7777
| 'a11y-light'
7878
| 'agate'

src/app/public/ngx-gist.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DOCUMENT } from '@angular/common';
88
import { NgxGistLineNumbersService } from './ngx-gist-line-numbers.service';
99
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
1010
import {
11-
HilightJsTheme,
11+
HighlightJsTheme,
1212
MaterialPrebuiltTheme,
1313
NgxGistThemeService,
1414
} from './ngx-gist-theme.service';
@@ -118,7 +118,7 @@ export class NgxGistComponent implements OnInit {
118118
* Note: Only _one_ theme can be loaded on a single page at a time! The first
119119
* theme to load will apply to all gists on the page.
120120
*/
121-
@Input() public codeTheme: HilightJsTheme = 'default';
121+
@Input() public codeTheme: HighlightJsTheme = 'default';
122122
/**
123123
* Define a material core theme to apply. Ideally, you should already have
124124
* your global material theme set at the root of your project so try to

src/app/public/public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** Public API Exports for Node Package */
22

33
export {
4-
HilightJsTheme,
4+
HighlightJsTheme,
55
MaterialPrebuiltTheme,
66
} from './ngx-gist-theme.service';
77
export * from './ngx-gist.component';

0 commit comments

Comments
 (0)