Skip to content

Commit f2cf96b

Browse files
josephperrottamishne
authored andcommitted
fix(docs-infra): use public folder instead of assets folder for static files in adev tutorials
Use public folder rather than assets folder after the change in angular-cli's defaults for angular.json Fixes angular#58981
1 parent 849b840 commit f2cf96b

66 files changed

Lines changed: 59 additions & 55 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

adev/shared-docs/pipeline/tutorials/common/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"polyfills": ["zone.js"],
4848
"tsConfig": "tsconfig.app.json",
4949
"inlineStyleLanguage": "scss",
50-
"assets": ["src/favicon.ico", "src/assets"],
50+
"assets": ["src/favicon.ico", "src/assets", "src/public"],
5151
"styles": ["src/styles.css"],
5252
"scripts": []
5353
},

adev/shared-docs/pipeline/tutorials/common/src/public/.gitkeep

Whitespace-only changes.

adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/location-pin.svg renamed to adev/src/content/tutorials/first-app/steps/01-hello-world/src/public/location-pin.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/01-hello-world/src/assets/logo.svg renamed to adev/src/content/tutorials/first-app/steps/01-hello-world/src/public/logo.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/02-Home/src/assets/location-pin.svg renamed to adev/src/content/tutorials/first-app/steps/02-Home/src/public/location-pin.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/02-Home/src/assets/logo.svg renamed to adev/src/content/tutorials/first-app/steps/02-Home/src/public/logo.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Home} from './home/home';
77
template: `
88
<main>
99
<header class="brand-name">
10-
<img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="true" />
10+
<img class="brand-logo" src="/public/logo.svg" alt="logo" aria-hidden="true" />
1111
</header>
1212
<section class="content">
1313
<app-home />

adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/assets/location-pin.svg renamed to adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/public/location-pin.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/assets/logo.svg renamed to adev/src/content/tutorials/first-app/steps/03-HousingLocation/src/public/logo.svg

File renamed without changes.

adev/src/content/tutorials/first-app/steps/04-interfaces/src/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Home} from './home/home';
77
template: `
88
<main>
99
<header class="brand-name">
10-
<img class="brand-logo" src="/assets/logo.svg" alt="logo" aria-hidden="true" />
10+
<img class="brand-logo" src="/public/logo.svg" alt="logo" aria-hidden="true" />
1111
</header>
1212
<section class="content">
1313
<app-home />

0 commit comments

Comments
 (0)