Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2b7f9a

Browse files
Affix side nav and add SubNavs
1 parent 5c1a35b commit e2b7f9a

File tree

9 files changed

+37
-21559
lines changed

9 files changed

+37
-21559
lines changed

‎README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,37 @@ If you are working on the site, you will want to install and run a local copy of
1212
All dependencies are installed with npm, just:
1313

1414
```sh
15-
$ cd react-bootstrap
15+
$ cd react-bootstrap/docs
1616
$ npm install
1717
```
1818

1919
### Instructions
2020

21-
The site uses React bootstrap components, so first make sure you've built the project (via `grunt`). Then:
21+
#### Development
22+
23+
The site uses React bootstrap components, so first make sure you've installed and built the project (via `grunt`). Then:
2224

2325
```sh
24-
$ cd react-bootstrap
25-
$ grunt serveDocs
26+
$ cd react-bootstrap/docs
27+
$ npm start
2628
$ open http://localhost:4000/
2729
```
2830

29-
After making any modifications you will need to regenerate the site. Like:
31+
This will start an express based node server which will generate static html content and the js bundle on request. After making any modifications the server should restart and regenerate any necessary files on the next request.
32+
33+
#### Production
34+
35+
This site is statically published on github pages, to do this the static assets need to be generated.
36+
37+
```sh
38+
$ cd react-bootstrap/docs
39+
$ npm run build
40+
```
41+
42+
To test the static files you can use the included express based static file server.
3043

3144
```sh
32-
$ cd react-bootstrap
33-
$ grunt watch:docs # Automatically compiles as needed
34-
$ grunt build:docs # Single compile
45+
$ cd react-bootstrap/docs
46+
$ npm run start-prod
47+
$ open http://localhost:4000/
3548
```

‎assets/bundle.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /