Skip to content

Commit a26eb23

Browse files
committed
feat(demo): fixed index for bs4 theme
1 parent c9d447f commit a26eb23

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

demo/bs-config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"port": 4200,
3+
"server": { "baseDir": "./demo/dist" }
4+
}

demo/src/app/common/main-menu/main-menu.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="menu-content" *ngIf="routes && routes.length">
77
<div class="section">
88
<h3 *ngIf="isBs3"><a href="./index-bs4.html#{{hash}}">View in Bootstrap 4</a></h3>
9-
<h3 *ngIf="!isBs3"><a href="#{{hash}}">View in Bootstrap 3</a></h3>
9+
<h3 *ngIf="!isBs3"><a href="./#{{hash}}">View in Bootstrap 3</a></h3>
1010
</div>
1111
<div class="section"
1212
*ngFor="let route of routes | SearchFilter:search.text"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "angular2 bootstrap components",
55
"private": true,
66
"scripts": {
7+
"lite-server": "lite-server -c -c demo/bs-config.json",
78
"typedoc": "typedoc --exclude '**/*.spec.ts' ./src/",
9+
"demo.serve": "run-s build demo.build lite-server",
810
"demo.gh-pages": "run-s build demo.build demo.deploy",
911
"demo.build": "ng build -p --aot && npm run generate-bs4",
1012
"demo.deploy": "gh-pages -d demo/dist",

scripts/generate-bs4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const fs = require('fs');
22

33
const files = {
4-
initial: 'demo/src/index.html',
5-
generated: 'demo/src/index-bs4.html'
4+
initial: 'demo/dist/index.html',
5+
generated: 'demo/dist/index-bs4.html'
66
};
77

88
const toReplace = [

0 commit comments

Comments
 (0)