Skip to content

Commit

Permalink
feat(routing): fix 404 github page
Browse files Browse the repository at this point in the history
  • Loading branch information
SvetlanaMuravlova committed Jul 2, 2021
1 parent 8c18fbf commit ea1c07d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 36 deletions.
11 changes: 0 additions & 11 deletions apps/ngx-bootstrap-docs/src/404.html

This file was deleted.

10 changes: 0 additions & 10 deletions apps/ngx-bootstrap-docs/src/assets/js/gh-404-redirect-for-index.js

This file was deleted.

11 changes: 0 additions & 11 deletions apps/ngx-bootstrap-docs/src/assets/js/gh-404-redirect.js

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ngx-bootstrap-docs/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
<meta name="msapplication-navbutton-color" content="#1d1d2b">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="msapplication-starturl" content="/">
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript" src="./assets/js/gh-404-redirect-for-index.js"></script>
<!-- End Single Page Apps for GitHub Pages -->
</head>
<body>
<bs-demo>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
"nx": "nx",
"start": "ng serve",
"build": "ng build --with-deps",
"build": "ng build --with-deps && node ./scripts/create-404-file-gh-pages.js",
"test": "nx run-many --all --target=test",
"lint": "nx run-many --all --target=lint",
"e2e": "ng e2e --with-deps",
Expand Down
4 changes: 4 additions & 0 deletions scripts/create-404-file-gh-pages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

const fs = require('fs-extra');
fs.copyFileSync('./dist/apps/ngx-bootstrap/index.html', './dist/apps/ngx-bootstrap/404.html');

0 comments on commit ea1c07d

Please sign in to comment.