Skip to content

Commit c04e51c

Browse files
gkalpakpetebacondarwin
authored andcommitted
fix(aio): do not create ToC for file-not-found and fetching-error documents
Related to angular#16078.
1 parent 7b94f49 commit c04e51c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

aio/content/file-not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="nf-container l-flex-wrap flex-center">
44
<img src="assets/images/support/angular-404.svg" width="300px" height="300px"/>
55
<div class="nf-response l-flex-wrap">
6-
<h1>Page Not Found</h1>
6+
<h1 class="no-toc">Page Not Found</h1>
77
<p>We're sorry. The page you are looking for cannot be found.</p>
88
</div>
9-
</div>
9+
</div>

aio/src/app/documents/document.service.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ export const FETCHING_ERROR_ID = 'fetching-error';
1919

2020
const CONTENT_URL_PREFIX = 'content/docs/';
2121
const FETCHING_ERROR_CONTENTS = `
22-
<div class="nf-container l-flex-wrap flex-center">
23-
<div class="nf-icon material-icons">error_outline</div>
24-
<div class="nf-response l-flex-wrap">
25-
<h1>Request for document failed.</h1>
26-
<p>We are unable to retrieve the "<current-location></current-location>" page at this time.
27-
Please check your connection and try again later.</p>
28-
</div></div>
22+
<div class="nf-container l-flex-wrap flex-center">
23+
<div class="nf-icon material-icons">error_outline</div>
24+
<div class="nf-response l-flex-wrap">
25+
<h1 class="no-toc">Request for document failed.</h1>
26+
<p>
27+
We are unable to retrieve the "<current-location></current-location>" page at this time.
28+
Please check your connection and try again later.
29+
</p>
30+
</div>
31+
</div>
2932
`;
3033

3134
@Injectable()

0 commit comments

Comments
 (0)