Skip to content

Commit

Permalink
docs: import hljs styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Feb 21, 2024
1 parent 01be687 commit a583f97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"polyfills": ["zone.js"],
"tsConfig": "apps/docs/tsconfig.app.json",
"assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"],
"styles": ["apps/docs/src/styles.css"],
"styles": ["apps/docs/src/styles.css", "node_modules/highlight.js/styles/github.min.css"],
"scripts": []
},
"configurations": {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/components/code-block.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ hljs.registerLanguage('xml', xml);
export class CodeBlockComponent {
private readonly clipboard = inject(Clipboard);

autodetect = input(false);
autodetect = input(true);
language = input('');
ignoreIllegals = input(true);
code = input.required<string>();
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/components/usage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { usageSnippet } from './code-snippets';
<div>
<h2>Usage</h2>
<p>Render the toaster in the root of your app.</p>
<docs-code-block [code]="usageSnippet" language="javascript" />
<docs-code-block [code]="usageSnippet" />
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down

0 comments on commit a583f97

Please sign in to comment.