Skip to content

Commit 5c131d7

Browse files
committed
Merge remote-tracking branch 'upstream/next' into next
2 parents 549cd38 + d211af2 commit 5c131d7

29 files changed

+1164
-1481
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
- [ ] Check the current issues to ensure you aren't creating a duplicate.
22
- [ ] Consider making small typo fixes and such directly as pull requests.
3+
- [ ] For the voting application, go to https://github.com/webpack-contrib/voting-app.
4+
- [ ] For loader/plugin docs, consider opening an issue in the corresponding repository.
35
- [ ] No existing issue? Go ahead and open a new one.
46
- __Remove these instructions from your PR as they are for your eyes only.__

README.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,61 @@
11
# webpack.js.org
22

3-
[![build status](https://secure.travis-ci.org/webpack/webpack.js.org.svg)](http://travis-ci.org/webpack/webpack.js.org)
4-
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
3+
[![Build Status][13]][10]
4+
[![Standard Version][12]][11]
55

66
Guides, documentation, and all things webpack.
77

88

99
## Content Progress
1010

11-
Now that we've covered much of the backlog of _missing documentation_, we are starting
12-
to heavily review each section of the site's content to sort and structure it appropriately.
13-
The following issues should provide a pretty good idea of where things are, and where
14-
they are going:
11+
Now that we've covered much of the backlog of _missing documentation_, we are
12+
starting to heavily review each section of the site's content to sort and
13+
structure it appropriately. The following issues should provide a pretty good
14+
idea of where things are, and where they are going:
1515

1616
- [Guides - Review and Simplify][1]
17-
- [Concepts - Review, Organize, Define Clear Goals][2]
17+
- [Concepts - Review and Organize][2]
18+
- [API - v4 Rewrite][8]
1819

19-
We haven't created issues for the other sections yet, but they will be coming soon. For
20-
dev-related work please see [General - Current Longterm Plan][3], which will soon be
21-
replaced by a more dev-specific issue.
20+
We haven't created issues for the other sections yet, but they will be coming
21+
soon. For dev-related work please see [General - Updates & Fixes][3].
2222

2323

2424
## Translation
2525

26-
If you hope to localize this documentation please jump to the [translate branch][4].
26+
To help translate this documentation please jump to the [translate branch][4].
2727

2828

2929
## Contributing
3030

31-
Read through the [writer's guide][7] if you're interested in editing the content on this
32-
site. See the [contributors page][5] to learn how to set up and start working on the site
33-
locally.
31+
Read through the [writer's guide][7] if you're interested in editing the
32+
content on this site. See the [contributors page][5] to learn how to set up and
33+
start working on the site locally.
3434

3535

3636
## License
3737

3838
The content is available under the [Creative Commons BY 4.0][6] license.
3939

4040

41+
## Special Thanks
42+
43+
_BrowserStack_ has graciously allowed us to do cross-browser and cross-os
44+
testing of the site at no cost...
45+
46+
[![BrowserStackLogo](./browserstack-logo.png)][9]
47+
48+
4149
[1]: https://github.com/webpack/webpack.js.org/issues/1258
4250
[2]: https://github.com/webpack/webpack.js.org/issues/1386
43-
[3]: https://github.com/webpack/webpack.js.org/issues/1380
51+
[3]: https://github.com/webpack/webpack.js.org/issues/1525
4452
[4]: https://github.com/webpack/webpack.js.org/tree/translation
4553
[5]: https://github.com/webpack/webpack.js.org/blob/master/.github/CONTRIBUTING.md
4654
[6]: https://creativecommons.org/licenses/by/4.0/
4755
[7]: https://webpack.js.org/writers-guide
56+
[8]: https://github.com/webpack/webpack.js.org/pull/1754
57+
[9]: http://browserstack.com/
58+
[10]: http://travis-ci.org/webpack/webpack.js.org
59+
[11]: https://github.com/conventional-changelog/standard-version
60+
[12]: https://img.shields.io/badge/release-standard%20version-brightgreen.svg
61+
[13]: https://secure.travis-ci.org/webpack/webpack.js.org.svg

browserstack-logo.png

35.3 KB
Loading

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@
4545
"antwar-helpers": "^0.19.0",
4646
"antwar-interactive": "^0.19.0",
4747
"async": "^2.5.0",
48-
"autoprefixer": "^7.1.3",
48+
"autoprefixer": "^7.2.3",
4949
"babel-core": "^6.26.0",
5050
"babel-eslint": "^7.2.3",
5151
"babel-loader": "^7.1.2",
5252
"babel-plugin-transform-class-properties": "^6.24.1",
5353
"babel-plugin-transform-object-rest-spread": "^6.26.0",
5454
"babel-preset-env": "^1.6.0",
5555
"babel-preset-react": "^6.24.1",
56-
"copy-webpack-plugin": "^4.0.1",
56+
"copy-webpack-plugin": "^4.3.0",
5757
"css-loader": "^0.28.5",
5858
"duplexer": "^0.1.1",
5959
"eslint": "4.5.0",
6060
"eslint-loader": "^1.9.0",
61-
"eslint-plugin-markdown": "^1.0.0-beta.6",
61+
"eslint-plugin-markdown": "^1.0.0-beta.7",
6262
"extract-text-webpack-plugin": "^3.0.0",
6363
"file-loader": "^0.11.2",
6464
"fontgen-loader": "^0.2.1",
@@ -67,22 +67,22 @@
6767
"github": "^10.0.0",
6868
"html-webpack-plugin": "^2.30.1",
6969
"http-server": "^0.10.0",
70-
"hyperlink": "^3.0.0",
70+
"hyperlink": "^3.0.1",
7171
"loader-utils": "^1.1.0",
7272
"lodash": "^4.17.4",
7373
"markdown-loader": "^2.0.1",
7474
"markdownlint": "^0.6.0",
7575
"markdownlint-cli": "^0.3.1",
76-
"marked": "^0.3.6",
76+
"marked": "^0.3.7",
7777
"mkdirp": "^0.5.1",
7878
"modularscale-sass": "^3.0.3",
79-
"moment": "^2.18.1",
79+
"moment": "^2.20.1",
8080
"ncp": "^2.0.0",
8181
"node-sass": "^4.5.3",
8282
"npm-run-all": "^4.1.1",
8383
"postcss-loader": "^2.0.6",
8484
"prism-languages": "^0.3.3",
85-
"prismjs": "^1.6.0",
85+
"prismjs": "^1.9.0",
8686
"raw-loader": "^0.5.1",
8787
"request": "^2.81.0",
8888
"sass-loader": "^6.0.6",
@@ -92,21 +92,22 @@
9292
"tap-parser": "^6.0.1",
9393
"through2": "^2.0.3",
9494
"url-loader": "^0.5.9",
95-
"webpack": "^3.5.5",
96-
"webpack-dev-server": "^2.7.1",
95+
"webpack": "^3.10.0",
96+
"webpack-dev-server": "^2.9.7",
9797
"webpack-merge": "^4.1.0",
9898
"yaml-frontmatter-loader": "^0.1.0"
9999
},
100100
"dependencies": {
101-
"ajv": "^5.2.2",
102-
"preact": "^8.2.5",
101+
"ajv": "^5.5.2",
102+
"preact": "^8.2.7",
103103
"preact-compat": "3.17.0",
104104
"prop-types": "^15.5.10",
105105
"react": "^15.6.1",
106106
"react-dom": "^15.6.1",
107107
"react-router": "^4.2.0",
108108
"react-router-dom": "^4.2.2",
109109
"tool-list": "^0.11.0",
110+
"webpack.vote": "^0.1.2",
110111
"whatwg-fetch": "^2.0.3"
111112
}
112113
}

src/assets/homepage-modules.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/Navigation/Links.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
"title": "Contribute",
1616
"url": "contribute"
1717
},
18+
{
19+
"title": "Vote",
20+
"url": "vote"
21+
},
1822
{
1923
"title": "Blog",
2024
"url": "//medium.com/webpack"
2125
}
22-
]
26+
]

src/components/NotificationBar/NotificationBar.jsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import Container from '../Container/Container';
33
import testLocalStorage from '../../utilities/test-local-storage';
44

5-
const version = '1';
5+
const version = '2';
66
const localStorageIsEnabled = testLocalStorage() !== false;
77

88
export default class NotificationBar extends React.Component {
@@ -13,17 +13,16 @@ export default class NotificationBar extends React.Component {
1313
<div className={ `notification-bar ${dismissedMod}` }>
1414
<Container className="notification-bar__inner">
1515
<p>
16-
Sponsor webpack and get apparel at the same time! Visit <a href="https://webpack.threadless.com">the official webpack shop!</a>&nbsp; All proceeds go to webpack's <a href="https://opencollective.com/webpack">Open Collective page!</a>
17-
</p>
18-
<p>
19-
Buy the brand-new webpack stickers at <a href="http://www.unixstickers.com/tag/webpack">Unixstickers!</a>
20-
{localStorageIsEnabled ?
21-
<button
22-
className="notification-bar__close icon-cross"
23-
onClick={ this._close.bind(this) } /> :
24-
null
25-
}
16+
Sponsor webpack and get apparel from the <a href="https://webpack.threadless.com">official shop</a>&nbsp;
17+
or get stickers <a href="http://www.unixstickers.com/tag/webpack">here</a>! All proceeds go to our&nbsp;
18+
<a href="https://opencollective.com/webpack">open collective</a>!
2619
</p>
20+
{ localStorageIsEnabled ?
21+
<button
22+
className="notification-bar__close icon-cross"
23+
onClick={ this._close.bind(this) } /> :
24+
null
25+
}
2726
</Container>
2827
</div>
2928
);

src/components/NotificationBar/NotificationBar.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
color: getColor(white);
66
background: getColor(emperor);
77

8-
p:not(:last-child) {
9-
padding-bottom: 1em;
10-
}
11-
128
a {
139
color: getColor(malibu);
1410

@@ -32,15 +28,15 @@
3228
}
3329

3430
.notification-bar__close {
35-
color: getColor(white);
36-
font-size: 16px;
37-
padding: 0;
38-
background: none;
39-
border: none;
4031
position: absolute;
32+
font-size: 16px;
4133
top: 10px;
4234
right: 1em;
35+
padding: 0;
36+
border: none;
4337
cursor: pointer;
38+
color: getColor(white);
39+
background: none;
4440
transition: color 250ms;
4541

4642
&:hover {

src/components/Site/Site.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ const Site = ({
4444
title: section.path.title,
4545
url: section.url,
4646
pages: section.pages.map(page => ({
47+
file: page.file,
4748
title: page.file.title,
4849
url: page.url
49-
}))
50+
})).sort(({ file: { attributes: a }}, { file: { attributes: b }}) => {
51+
let group1 = a.group.toLowerCase();
52+
let group2 = b.group.toLowerCase();
53+
54+
if (group1 < group2) return -1;
55+
if (group1 > group2) return 1;
56+
return a.sort - b.sort;
57+
})
5058
}))
5159
} />
5260

src/components/SplashViz/SplashViz.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
import Cube from '../Cube/Cube';
44
import TextRotator from '../TextRotater/TextRotater';
5-
import Modules from '../../assets/homepage-modules.svg';
5+
import homeSVG from './SplashVizSVG';
66

77
export default class SplashViz extends React.Component {
88

@@ -18,9 +18,7 @@ export default class SplashViz extends React.Component {
1818
<span> styles </span>
1919
</TextRotator>
2020
</h1>
21-
<div className="splash-viz__modules">
22-
<img src={ Modules } alt="dependency bundling graphic"/>
23-
</div>
21+
<div className="splash-viz__modules" dangerouslySetInnerHTML={{__html: homeSVG.body}}></div>
2422
<Cube className="splash-viz__cube" depth={ 120 } repeatDelay={ 5000 } continuous/>
2523
</section>
2624
);

src/components/SplashViz/SplashViz.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@
2727
position: absolute;
2828
left: 0;
2929
right: 0;
30-
top: 0;
30+
top: 50%; // vertical center
3131
bottom: 0;
3232
width: 75vw;
3333
min-width: 550px;
3434
max-width: map-get($screens, large);
35-
margin: auto;
35+
margin: 0 auto;
36+
transform: translateY(-50%); // vertical center
3637
display: none;
3738

3839
@include break {
39-
display: block;
40+
display: table; // Get height of its child svg
4041
}
4142

4243
img {

0 commit comments

Comments
 (0)