Skip to content

Commit

Permalink
Merge pull request #1379 from ember-learn/use-shiki
Browse files Browse the repository at this point in the history
feat: use `ember-showdown-shiki` for syntax highlighting
  • Loading branch information
mansona authored Jun 21, 2024
2 parents 1f633d8 + 7b92073 commit 09d4734
Show file tree
Hide file tree
Showing 5 changed files with 807 additions and 1,867 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
11 changes: 11 additions & 0 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ module.exports = function (environment) {
algoliaId: 'Y1OMR4C7MF',
algoliaKey: '5d01c83734dc36754d9e94cbf6f8964d',
},

'ember-showdown-shiki': {
languages: [
'javascript',
'typescript',
'handlebars',
'json',
'diff',
'bash',
],
},
};

if (environment === 'development') {
Expand Down
10 changes: 10 additions & 0 deletions config/fastboot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* global atob */
module.exports = function () {
return {
buildSandboxGlobals(defaultGlobals) {
return Object.assign({}, defaultGlobals, {
atob: atob,
});
},
};
};
Loading

0 comments on commit 09d4734

Please sign in to comment.