Skip to content

Commit

Permalink
fix(aio): do not create ToC for file-not-found and fetching-error
Browse files Browse the repository at this point in the history
… documents

Related to angular#16078.
  • Loading branch information
gkalpak authored and juleskremer committed Aug 24, 2017
1 parent 37d51e6 commit b4cf3c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions aio/content/file-not-found.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
</div>
17 changes: 10 additions & 7 deletions aio/src/app/documents/document.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b4cf3c5

Please sign in to comment.