Skip to content

Commit d62f20c

Browse files
doc(all): fix formatting and styling issues
1 parent e204949 commit d62f20c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

doc/article/en-US/app-configuration-and-startup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ The root component is set by calling `aurelia.setRoot()`. If no values are provi
143143

144144
This causes the `my-root${context.language.fileExtension}`/`my-root.html` to be loaded as the root component and injected into the `some-element` HTML element.
145145

146-
> Note: The content of the app host element, the one marked with `aurelia-app` or passed to `Aurelia.prototype.setRoot`, will be replaced when `Aurelia.prototype.setRoot` completes.
146+
> Info
147+
> The content of the app host element, the one marked with `aurelia-app` or passed to `Aurelia.prototype.setRoot`, will be replaced when `Aurelia.prototype.setRoot` completes.
147148
148149
> Warning: When using the `<body>` element as the app host, bear in mind that any content added prior to the completion of `Aurelia.prototype.setRoot` will be removed.
149150
@@ -154,7 +155,7 @@ Aurelia was originally designed for Evergreen Browsers. This includes Chrome, Fi
154155
In case you are using Webpack, create a file, e.g. `ie-polyfill.js`:
155156

156157
<code-listing heading="Polyfill Configuration">
157-
<source-code lang="JS">
158+
<source-code lang="JavaScript">
158159
import 'mutationobserver-shim/MutationObserver'; // IE10 MutationObserver polyfill
159160
import 'raf/polyfill'; // IE9 requestAnimationFrame polyfill
160161
</source-code>
@@ -163,13 +164,12 @@ In case you are using Webpack, create a file, e.g. `ie-polyfill.js`:
163164
After you have created the file, add it as the first file in your `aurelia-bootstrapper` bundle. You can find bundle configuration in the `webpack.config.js` file, something like:
164165

165166
<code-listing heading="Polyfill Configuration">
166-
<source-code lang="JS">
167+
<source-code lang="JavaScript">
167168
entry: {
168169
'app': ['./ie-polyfill', 'aurelia-bootstrapper'],
169170
</source-code>
170171
</code-listing>
171172

172-
173173
If you are using JSPM change your `index.html` startup code as follows:
174174

175175
<code-listing heading="Polyfill Configuration">
@@ -196,7 +196,7 @@ If you are using JSPM change your `index.html` startup code as follows:
196196
</source-code>
197197
</code-listing>
198198

199-
> Note: Module Loaders and Bundlers
199+
> Info: Module Loaders and Bundlers
200200
> The code in this article demonstrates loading via SystemJS. However, these techniques can be accomplished with other module loaders just as readily. Be sure to lookup the appropriate APIs for your chosen loader or bundler in order to translate these samples into the required code for your own app.
201201
202202
> Warning: Promises in Edge

doc/article/en-US/contact-manager-tutorial.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For this tutorial, we're going to use the Aurelia CLI. If you've already setup y
2828
2929
Once you have the prerequisites installed, you can install the Aurelia CLI itself. From the command line, use npm to install the CLI globally:
3030

31-
```
31+
```Shell
3232
npm install aurelia-cli -g
3333
```
3434

@@ -91,7 +91,7 @@ To begin, we're going to setup our `App` class by configuring it with a router.
9191
</source-code>
9292
<source-code lang="TypeScript">
9393
import {Router, RouterConfiguration} from 'aurelia-router';
94-
94+
9595
export class App {
9696
router: Router;
9797

@@ -151,13 +151,13 @@ We're almost done setting up the application shell. Before we're done, we need t
151151

152152
To get Bootstrap setup, we begin by installing the library itself with NPM. Execute the following on the command line to do this:
153153

154-
```
154+
```Shell
155155
npm install bootstrap --save
156156
```
157157

158158
Next, because Bootstrap uses jQuery, we want to install jQuery as well, like this:
159159

160-
```
160+
```Shell
161161
npm install jquery@^2.2.4 --save
162162
```
163163

@@ -194,7 +194,7 @@ After you have modified the aurelia.json file, it is necessary to restart the `a
194194

195195
If you run the application now, you'll see a blank screen and the browser's console will display the following message:
196196

197-
```
197+
```Output
198198
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/src/no-selection.js
199199
ERROR [app-router] Error: Script error for "no-selection"
200200
```
@@ -372,7 +372,7 @@ If you go ahead and run the application, you should now see something like this:
372372

373373
Ok, things are starting to come together, but we still can't view an individual contact. If you try selecting something from the list, you'll see an error like the following in the console:
374374

375-
```
375+
```Output
376376
ERROR [app-router] Error: Script error for "contact-detail"
377377
```
378378

@@ -908,7 +908,7 @@ Let's add one more final touch to this application. Whenever we're navigating fr
908908

909909
Begin by installing the `nprogress` library with the following command:
910910

911-
```
911+
```Shell
912912
npm install nprogress --save
913913
```
914914

doc/article/en-US/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ Yes, that's it. This is the only HTML page in our application. With this in plac
8484

8585
First, you can see that this document is setup as a standard HTML5 document with a doctype, html, head and body. The items of interest to us lie within (and on) the body tag. Let's look at each script tag in turn:
8686

87-
```
87+
```HTML
8888
<script src="scripts/system.js"></script>
8989
```
9090

9191
This tag is used to load SystemJS, a modern JavaScript module loader. Because Aurelia is a modern framework, it's written as modules and encourages you to create your code in a modular fashion. To use modules in ${context.language.name} you need a loader that understands modular code. That's what SystemJS does. It locates modules, understands their dependencies and ensures that everything is properly loaded at runtime. Aurelia supports a variety of module loaders. Besides SystemJS, Aurelia supports all AMD-based loaders such as RequireJS, Cajon and Dojo. Aurelia also supports module-based build systems like Webpack.
9292

93-
```
93+
```HTML
9494
<script src="scripts/config-typescript.js"></script>
9595
```
9696

@@ -99,13 +99,13 @@ As discussed previously, this line of code configures the programming language y
9999
> Info
100100
> In a production app, you wouldn't use a transpiler to transform code on-the-fly in the browser like we're doing here. That would perform quite poorly and require you to distribute an entire transpiler with your app. We're using this technique here to enable you to get started without any tooling or build setup needed. In a later guide, we'll show you how to use the CLI to setup a production-ready project, complete with automatic application builds and bundling.
101101
102-
```
102+
```HTML
103103
<script src="scripts/aurelia-core.min.js"></script>
104104
```
105105

106106
This is the core of Aurelia itself, in a single script file. You need to add that to use the framework. That's what's going to enable all the cool capabilities we'll use in this guide.
107107

108-
```
108+
```JavaScript
109109
SystemJS.import('aurelia-bootstrapper');
110110
```
111111

0 commit comments

Comments
 (0)