Skip to content

Commit

Permalink
Merge pull request #734 from johanrd/missing-code-snippet-in-docs
Browse files Browse the repository at this point in the history
docs: Fix that code snippets were rendered as [object Object]
  • Loading branch information
mkszepp authored Jan 7, 2024
2 parents beb6f01 + d1c2013 commit 74e6f7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/app/templates/public-pages/docs/styles.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@
There is only four variables you can tweak (Sass syntax)
</p>

{{get-code-snippet "styles-1.scss"}}
{{#let (get-code-snippet "styles-1.scss") as |snippet|}}
<CodeBlock @language="scss" @code={{snippet.source}} />
{{/let}}

<p>
If by example you want to change the colour of the overlay to be blue, you
could do this in your
<code>app.scss</code>/<code>app.less</code>.
</p>

{{get-code-snippet "styles-2.scss" }}
{{#let (get-code-snippet "styles-2.scss") as |snippet|}}
<CodeBlock @language="scss" @code={{snippet.source}} />
{{/let}}

<p>
In the next sections we'll give in more involved customizations.
Expand Down

0 comments on commit 74e6f7d

Please sign in to comment.