Skip to content

Commit 670ded7

Browse files
author
Juuso Backman
committed
Merge pull request #202 from hannu/use-readme-overview
Use Github readme as a demo project overview page
2 parents 535f042 + 0ef6b1c commit 670ded7

File tree

4 files changed

+7
-58
lines changed

4 files changed

+7
-58
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,11 @@ When sassVariables is defined and styleguide is served with the built-in server,
279279

280280
## Demo
281281

282-
Build demo styleguide and start a server
282+
Build demo styleguide and start a server on port 3000
283283

284-
gulp demo
284+
npm run demo
285285

286-
Note: If you installed styleguide by cloning repository directly instead of npm you need to run `gulp build` first
287-
You can change the default port (3000) with `--port`;
286+
Note: If you installed styleguide by cloning repository directly instead of npm you need to run `npm run build` first
288287

289288
The demo generates styleguide to `demo-output` directory.
290289

lib/app/overview.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/app/styleguide_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "SC5 Styleguide",
3-
"overviewPath": "overview.md",
3+
"overviewPath": "../../README.md",
44
"styleVariables": "sass/_styleguide_variables.scss",
55
"sass": {
66
"src": "lib/app/sass/app.scss",

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
"scripts": {
8989
"test": "node_modules/istanbul/lib/cli.js cover --config=test/istanbul.conf.json --dir=coverage/mocha node_modules/mocha/bin/_mocha && node_modules/karma/bin/karma start test/karma.conf.js && node_modules/gulp/bin/gulp.js jscs",
9090
"coverage-report": "node_modules/istanbul/lib/cli.js report --root ./coverage --dir ./coverage/report lcov",
91-
"prepublish": "node_modules/gulp/bin/gulp.js build"
91+
"prepublish": "node_modules/gulp/bin/gulp.js build",
92+
"build": "node_modules/gulp/bin/gulp.js build",
93+
"demo": "node_modules/gulp/bin/gulp.js demo"
9294
}
9395
}

0 commit comments

Comments
 (0)