Skip to content

Commit 382e762

Browse files
Merge pull request #1618 from NullVoxPopuli/add-note-about-downloading-a-polaris-project
Add note about trying out Polaris
2 parents 6fcf991 + 51a99b3 commit 382e762

File tree

3 files changed

+65
-3
lines changed

3 files changed

+65
-3
lines changed

apps/tutorial/app/components/prose/highlight.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ export async function getHighlighter(): Promise<HLJSApi> {
1313
* since we now use hljs on initial page load, eagerly, we want to load
1414
* as little as possible
1515
*/
16-
let [hljs, glimmer, javascript, typescript, markdown, css] = await Promise.all([
16+
let [hljs, glimmer, javascript, typescript, markdown, css, bash] = await Promise.all([
1717
import('highlight.js/lib/core'),
1818
import('highlightjs-glimmer'),
1919
import('highlight.js/lib/languages/javascript'),
2020
import('highlight.js/lib/languages/typescript'),
2121
import('highlight.js/lib/languages/markdown'),
2222
import('highlight.js/lib/languages/css'),
23+
import('highlight.js/lib/languages/bash'),
2324
]);
2425

2526
HIGHLIGHT = hljs.default;
2627
HIGHLIGHT.registerLanguage('javascript', javascript.default);
2728
HIGHLIGHT.registerLanguage('typescript', typescript.default);
2829
HIGHLIGHT.registerLanguage('markdown', markdown.default);
2930
HIGHLIGHT.registerLanguage('css', css.default);
31+
HIGHLIGHT.registerLanguage('bash', bash.default);
3032

3133
glimmer.setup(HIGHLIGHT);
3234

apps/tutorial/public/docs/1-introduction/1-basics/prose.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@ However, manually typing in the editor for each example is a more effective way
5353

5454
On smaller screens, there is a button in the bottom right of the screen so that slides the tutorial text out of the way so that the editor can be interacted with.
5555

56+
<p class="call-to-play">
57+
Callouts like these will be present in tutorials to guide focus, and be clear about what you're expected to do in a particular exercise.
58+
</p>
59+
5660
This entire app is generated from [the docs folder][the-docs] and content can be edited, previewed, and created all within the GitHub UI. No need to download or install anything to contribute.
5761

58-
[the-docs]: https://github.com/NullVoxPopuli/limber/tree/main/apps/tutorial/docs
62+
[the-docs]: https://github.com/NullVoxPopuli/limber/tree/main/apps/tutorial/public/docs
5963

6064
## What are components?
6165

@@ -124,3 +128,24 @@ However, because there are a number of more foundational concepts to cover, this
124128
[Signals]: https://www.solidjs.com/tutorial/introduction_signals
125129
[Runes]: https://svelte.dev/blog/runes
126130
[tracked]: https://guides.emberjs.com/release/components/component-state-and-actions/#toc_tracked-properties
131+
132+
## How do I get started with a bleeding-edge Ember app today?
133+
134+
- For Webpack:
135+
```bash
136+
git clone --branch webpack git@github.com:NullVoxPopuli/polaris-starter.git
137+
cd polaris-starter
138+
pnpm install
139+
pnpm start
140+
```
141+
Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/webpack?file=README.md) (however, Stackblitz may be [broken with Webpack](https://github.com/stackblitz/core/issues/2926) atm)
142+
143+
- For Vite (alpha / unstable)
144+
```bash
145+
git clone git@github.com:NullVoxPopuli/polaris-starter.git
146+
cd polaris-starter
147+
pnpm install
148+
pnpm start
149+
```
150+
Or try it out on [Stackblitz](https://stackblitz.com/github/nullVoxPopuli/polaris-starter/tree/main?file=README.md)
151+

pnpm-lock.yaml

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)