Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 65a5f89

Browse files
committed
fix bad filename errors
1 parent db7c819 commit 65a5f89

File tree

13 files changed

+32
-24
lines changed

13 files changed

+32
-24
lines changed

public/_includes/_util-fns.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
//- NgModule related
4848
- var _AppModuleVsAppComp = 'AppModule'
49-
- var _appModuleTsVsAppCompTs = 'app/app.module.ts'
50-
- var _appModuleTsVsMainTs = 'app/app.module.ts'
49+
- var _appModuleTsVsAppCompTs = 'src/app/app.module.ts'
50+
- var _appModuleTsVsMainTs = 'src/app/app.module.ts'
5151
- var _bootstrapModule = 'bootstrapModule'
5252
- var _declsVsDirectives = 'declarations'
5353
- var _moduleVsComp = 'module'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"server": {
3+
"baseDir": "src",
4+
"routes": {
5+
"/node_modules": "node_modules"
6+
}
7+
}
8+
}

public/docs/ts/latest/cookbook/aot-compiler.jade

+4-4
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ a#toh
420420
Here they are for comparison:
421421

422422
+makeTabs(
423-
`toh-6/ts/src/index.html,
424-
toh-6/ts/src/index-jit.html`,
423+
`toh-6/ts/aot/index.html,
424+
toh-6/ts/src/index.html`,
425425
null,
426-
`src/index.html (AOT),
427-
src/index-jit.html (JIT)`
426+
`aot/index.html (AOT),
427+
src/index.html (JIT)`
428428
)
429429

430430
:marked

public/docs/ts/latest/cookbook/i18n.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ a#text-plugin
461461
You'll need it to import the language translation file.
462462

463463
SystemJS doesn't ship with a raw text plugin but it's easy to add.
464-
Create the following `systemjs-text-plugin.js` in the root folder:
465-
+makeExample('cb-i18n/ts/systemjs-text-plugin.js', null, 'systemjs-text-plugin.js')(format='.')
464+
Create the following `systemjs-text-plugin.js` in the `src/` folder:
465+
+makeExample('cb-i18n/ts/src/systemjs-text-plugin.js', null, 'src/systemjs-text-plugin.js')(format='.')
466466
:marked
467467
### Create translation providers
468468

public/docs/ts/latest/guide/deployment.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ a#node-modules
104104
loads `systemjs.config.server.js`.
105105
+makeExample('deployment/ts/src/index.html', 'systemjs-config', '')(format=".")
106106
:marked
107-
(3) Add `systemjs.config.server.js` (shown in the code sample below) to the root folder.
107+
(3) Add `systemjs.config.server.js` (shown in the code sample below) to the `src/` folder.
108108
This alternative version configures _SystemJS_ to load _UMD_ versions of Angular
109109
(and other third-party packages) from the web.
110110

public/docs/ts/latest/guide/displaying-data.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ figure.image-display
7777
The CSS `selector` in the `@Component` !{_decorator} specifies an element named `<my-app>`.
7878
That element is a placeholder in the body of your `index.html` file:
7979

80-
+makeExcerpt('index.html', 'body')
80+
+makeExcerpt('src/index.html', 'body')
8181

8282
:marked
8383
When you bootstrap with the `AppComponent` class (in <ngio-ex path="main.ts"></ngio-ex>), Angular looks for a `<my-app>`

public/docs/ts/latest/guide/forms.jade

+4-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ figure.image-display
236236
:marked
237237
Let's add the stylesheet. Open `index.html` and add the following link to the `<head>`:
238238

239-
+makeExcerpt('index.html', 'bootstrap')
239+
+makeExcerpt('src/index.html', 'bootstrap')
240240

241241
.l-main-section
242242
:marked
@@ -427,12 +427,12 @@ figure.image-display
427427
We achieve this effect by adding these class definitions to a new `forms.css` file
428428
that we add to our project as a sibling to `index.html`:
429429

430-
+makeExample('forms.css')
430+
+makeExample('src/forms.css')
431431

432432
:marked
433433
Update the `<head>` of `index.html` to include this style sheet:
434434

435-
+makeExcerpt('index.html', 'styles')
435+
+makeExcerpt('src/index.html', 'styles')
436436

437437
:marked
438438
## Show and hide validation error messages
@@ -685,7 +685,7 @@ figure.image-display
685685
forms/ts/src/app/app.component.ts,
686686
forms/ts/src/main.ts,
687687
forms/ts/src/index.html,
688-
forms/ts/forms.css`,
688+
forms/ts/src/forms.css`,
689689
'final, final,,,,,',
690690
`hero-form.component.ts,
691691
hero-form.component.html,

public/docs/ts/latest/guide/router.jade

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ include ../../../_includes/_see-addr-bar
8383
If the `app` folder is the application root, as it is for the sample application,
8484
set the `href` value *exactly* as shown here.
8585

86-
+makeExcerpt('index.html', 'base-href')
86+
+makeExcerpt('src/index.html', 'base-href')
8787

8888
:marked
8989
### Router imports
@@ -389,7 +389,7 @@ a#base-href
389389
If the `app` folder is the application root, as it is for this application,
390390
set the `href` value in **`index.html`** *exactly* as shown here.
391391

392-
+makeExcerpt('index.html', 'base-href')
392+
+makeExcerpt('src/index.html', 'base-href')
393393

394394
.callout.is-important
395395
header Live example note
@@ -2770,7 +2770,7 @@ code-example(format="nocode").
27702770
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base" target="_blank" title="base href">&lt;base href&gt; element</a>
27712771
tag in the `<head>` of the `index.html`.
27722772

2773-
+makeExcerpt('index.html', 'base-href', '')
2773+
+makeExcerpt('src/index.html', 'base-href', '')
27742774

27752775
:marked
27762776
Without that tag, the browser may not be able to load resources

public/docs/ts/latest/guide/server-communication.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ a#in-mem-web-api
665665
## Appendix: Tour of Heroes _in-memory web api_
666666

667667
If the app only needed to retrieve data, you could get the heroes from a `heroes.json` file:
668-
- var _heroesJsonPath = (_docsFor == 'dart' ? 'web' : 'app') + '/heroes.json';
668+
- var _heroesJsonPath = (_docsFor == 'dart' ? 'web' : 'src/app') + '/heroes.json';
669669
+makeJson('server-communication/' + _docsFor + '/' + _heroesJsonPath, null, _heroesJsonPath)(format=".")
670670
.l-sub-section
671671
:marked

public/docs/ts/latest/guide/style-guide.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ a(href="#toc") Back to top
12391239

12401240
.s-rule.do
12411241
:marked
1242-
**Do** create an Angular module in the app's root folder (e.g., in `/app`).
1242+
**Do** create an Angular module in the app's root folder (e.g., in `/src/app`).
12431243

12441244
.s-why
12451245
:marked

public/docs/ts/latest/guide/upgrade.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ code-example(format="").
11071107
This file has been configured as the application entrypoint in `systemjs.config.js`,
11081108
so it is already being loaded by the browser.
11091109

1110-
+makeExample('upgrade-phonecat-2-hybrid/ts/main.ts', 'bootstrap')
1110+
+makeExample('upgrade-phonecat-2-hybrid/ts/app/main.ts', 'bootstrap')
11111111

11121112
:marked
11131113
The arguments used here are the root element of the application (which is
@@ -1459,7 +1459,7 @@ code-example(format="").
14591459
Now we can drop `upgrade.bootstrap` from our application bootstrap, and remove the
14601460
`ngDoBootstrap()` override from `app.module.ts`
14611461

1462-
+makeExample('upgrade-phonecat-3-final/ts/main.ts', null, 'main.ts')
1462+
+makeExample('upgrade-phonecat-3-final/ts/app/main.ts', null, 'main.ts')
14631463
+makeExample('upgrade-phonecat-3-final/ts/app/app.module.ts', null, 'app.module.ts')
14641464

14651465
:marked

public/docs/ts/latest/guide/webpack.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ code-example(language="sh" class="code-shell").
156156

157157
+makeTabs(
158158
`webpack/ts/package.webpack.json,
159-
webpack/ts/src/tsconfig.1.json,
159+
webpack/ts/tsconfig.1.json,
160160
webpack/ts/webpack.config.js,
161161
webpack/ts/karma.webpack.conf.js,
162162
webpack/ts/config/helpers.js`,

public/docs/ts/latest/tutorial/toh-pt5.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ block style-urls
879879
These correspond to the full set of master styles that we installed earlier during [setup](../guide/setup.html).
880880
Here is an excerpt:
881881

882-
+makeExcerpt('styles.css (excerpt)', 'toh')
882+
+makeExcerpt('src/styles.css (excerpt)', 'toh')
883883

884884
- var styles_css = 'https://raw.githubusercontent.com/angular/angular.io/master/public/docs/_examples/_boilerplate/styles.css'
885885

@@ -889,7 +889,7 @@ block style-urls
889889

890890
If necessary, also edit <span ngio-ex>index.html</span> to refer to this stylesheet.
891891

892-
+makeExcerpt('index.html (link ref)', 'css')
892+
+makeExcerpt('src/index.html (link ref)', 'css')
893893

894894
:marked
895895
Look at the app now. Our dashboard, heroes, and navigation links are styling!

0 commit comments

Comments
 (0)