fix(aio): do not create ToC for `file-not-found` and `fetching-error` documents
Related to #16078.
This commit is contained in:
parent
7b94f493b9
commit
c04e51cb15
|
@ -3,7 +3,7 @@
|
|||
<div class="nf-container l-flex-wrap flex-center">
|
||||
<img src="assets/images/support/angular-404.svg" width="300px" height="300px"/>
|
||||
<div class="nf-response l-flex-wrap">
|
||||
<h1>Page Not Found</h1>
|
||||
<h1 class="no-toc">Page Not Found</h1>
|
||||
<p>We're sorry. The page you are looking for cannot be found.</p>
|
||||
</div>
|
||||
</div>
|
|
@ -19,13 +19,16 @@ export const FETCHING_ERROR_ID = 'fetching-error';
|
|||
|
||||
const CONTENT_URL_PREFIX = 'content/docs/';
|
||||
const FETCHING_ERROR_CONTENTS = `
|
||||
<div class="nf-container l-flex-wrap flex-center">
|
||||
<div class="nf-icon material-icons">error_outline</div>
|
||||
<div class="nf-response l-flex-wrap">
|
||||
<h1>Request for document failed.</h1>
|
||||
<p>We are unable to retrieve the "<current-location></current-location>" page at this time.
|
||||
Please check your connection and try again later.</p>
|
||||
</div></div>
|
||||
<div class="nf-container l-flex-wrap flex-center">
|
||||
<div class="nf-icon material-icons">error_outline</div>
|
||||
<div class="nf-response l-flex-wrap">
|
||||
<h1 class="no-toc">Request for document failed.</h1>
|
||||
<p>
|
||||
We are unable to retrieve the "<current-location></current-location>" page at this time.
|
||||
Please check your connection and try again later.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@Injectable()
|
||||
|
|
Loading…
Reference in New Issue