Skip to content

Commit 2b2a551

Browse files
authored
docs: add versions and remove v1 alerts (react-bootstrap#3428)
1 parent 8703cbb commit 2b2a551

File tree

3 files changed

+24
-75
lines changed

3 files changed

+24
-75
lines changed

www/src/components/NavMain.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import Link from 'gatsby-link';
44

55
import Navbar from 'react-bootstrap/lib/Navbar';
66
import Nav from 'react-bootstrap/lib/Nav';
7+
import NavItem from 'react-bootstrap/lib/NavItem';
78
import FormControl from 'react-bootstrap/lib/FormControl';
89

10+
import config from '../config';
11+
912
const NAV_LINKS = {
1013
documentation: {
1114
link: '/getting-started/introduction',
@@ -69,6 +72,7 @@ function NavMain({ activePage }) {
6972
</li>
7073
</Wrapper>
7174
</Nav>
75+
7276
<Navbar.Form pullRight>
7377
<FormControl
7478
type="search"
@@ -78,6 +82,14 @@ function NavMain({ activePage }) {
7882
inputRef={attachSearch}
7983
/>
8084
</Navbar.Form>
85+
<Nav pullRight>
86+
<NavItem href="https://github.com/react-bootstrap/react-bootstrap/releases">
87+
v{config.version}
88+
</NavItem>
89+
<NavItem href="https://getbootstrap.com/docs/3.3/css/">
90+
Supports Bootstrap v{config.bootstrapVersion}
91+
</NavItem>
92+
</Nav>
8193
</Navbar.Collapse>
8294
</Navbar>
8395
);

www/src/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
version: require('../../package.json').version,
3+
bootstrapVersion: '3.3.x'
4+
};

www/src/pages/index.js

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,16 @@
11
import React from 'react';
22

3-
import Grid from 'react-bootstrap/lib/Grid';
4-
import Alert from 'react-bootstrap/lib/Alert';
5-
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
6-
import Label from 'react-bootstrap/lib/Label';
7-
83
export default class HomePage extends React.Component {
94
render() {
105
return (
11-
<div>
12-
<main className="bs-docs-masthead" id="content" role="main">
13-
<div className="container">
14-
<span className="bs-docs-booticon bs-docs-booticon-lg bs-docs-booticon-outline" />
15-
<p className="lead">
16-
The most popular front-end framework, rebuilt for React.
17-
</p>
18-
</div>
19-
</main>
20-
21-
<Grid>
22-
<Alert bsStyle="info">
23-
<p>
24-
<Glyphicon glyph="warning-sign" /> React-Bootstrap currently
25-
targets Bootstrap v3. We are actively working on Bootstrap v4
26-
support in{' '}
27-
<a href="https://github.com/react-bootstrap/react-bootstrap/pull/2752">
28-
#2752
29-
</a>
30-
.
31-
</p>
32-
</Alert>
33-
<Alert bsStyle="warning">
34-
<p>
35-
<Glyphicon glyph="bullhorn" /> We are actively working to reach a
36-
1.0.0 release, and we would love your help to get there.
37-
</p>
38-
<p>
39-
<Glyphicon glyph="check" /> Check out the{' '}
40-
<a href="https://github.com/react-bootstrap/react-bootstrap/wiki#100-roadmap">
41-
1.0.0 roadmap
42-
</a>{' '}
43-
and{' '}
44-
<a href="https://github.com/react-bootstrap/react-bootstrap/blob/master/CONTRIBUTING.md">
45-
contributing guidelines
46-
</a>{' '}
47-
to see where you can help out.
48-
</p>
49-
<p>
50-
<Glyphicon glyph="sunglasses" /> A great place to start is any{' '}
51-
<a
52-
target="_blank"
53-
rel="noopener noreferrer"
54-
href="https://github.com/react-bootstrap/react-bootstrap/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22"
55-
>
56-
issue
57-
</a>{' '}
58-
with a <Label bsStyle="success">help-wanted</Label> label.
59-
</p>
60-
<p>
61-
<Glyphicon glyph="ok" /> We are open to pull requests that address
62-
bugs, improve documentation, enhance accessibility, add test
63-
coverage, or bring us closer to feature parity with{' '}
64-
<a
65-
target="_blank"
66-
rel="noopener noreferrer"
67-
href="http://getbootstrap.com/"
68-
>
69-
Bootstrap
70-
</a>
71-
.
72-
</p>
73-
<p>
74-
<Glyphicon glyph="user" /> We actively seek to invite frequent
75-
pull request authors to join the organization.{' '}
76-
<Glyphicon glyph="thumbs-up" />
77-
</p>
78-
</Alert>
79-
</Grid>
80-
</div>
6+
<main className="bs-docs-masthead" id="content" role="main">
7+
<div className="container">
8+
<span className="bs-docs-booticon bs-docs-booticon-lg bs-docs-booticon-outline" />
9+
<p className="lead">
10+
The most popular front-end framework, rebuilt for React.
11+
</p>
12+
</div>
13+
</main>
8114
);
8215
}
8316
}

0 commit comments

Comments
 (0)