Skip to content

Commit

Permalink
docs: add disclaimers
Browse files Browse the repository at this point in the history
  • Loading branch information
ignace committed Sep 1, 2023
1 parent acb7a78 commit bcd6927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-app/app/controllers/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ import { service } from '@ember/service';
export default class ApplicationRoute extends Route {
@service shiki;
beforeModel() {
this.loadCustomGrammar();
async beforeModel() {
await this.loadCustomGrammar();
}
async loadCustomGrammar() {
Expand Down
2 changes: 2 additions & 0 deletions docs-app/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ function foo(x, y) {
@code={{this.loadCustomGrammar}}
@language="js"
/>
<p>Note: this is just an example way of how it's made possible, but not the recommended approach per se. In the future a more ergonomic, officially recommended way might be added.</p>

<SectionSubtitle @text="Custom theme" />
<p>Shiki ships with 29 themes available by default, but any VS Code theme
Expand All @@ -381,6 +382,7 @@ function foo(x, y) {
@theme="Night Owl"
style="--ember-shiki-background-color: #011627"
/>
<p>Note: this is just an example way of how it's made possible, but not the recommended approach per se. In the future a more ergonomic, officially recommended way might be added.</p>

<SectionSubtitle @text="Fastboot" />
<p>The
Expand Down

0 comments on commit bcd6927

Please sign in to comment.