Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
Add deprecation warning to the old webpack doc site (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriid authored and SpaceK33z committed Jan 29, 2017
1 parent d9019d7 commit 96ec731
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/css/deprecation.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.deprecation
border 1px solid red
padding 2em
font-size 1.2em
font-weight 400
margin-bottom 1em
3 changes: 2 additions & 1 deletion app/css/doc.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
@import 'contents.styl';
@import 'code.styl';
@import 'anchor.styl';
@import 'deprecation.styl';

.loading
transition: opacity 1s linear, background 1s linear
background: white
opacity: 0

.wikieditlink
font-weight: bold
font-weight: bold
2 changes: 2 additions & 0 deletions app/css/landing.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
@import 'general.styl'
@import 'sidebar.styl';
@import 'logo.styl';
@import 'deprecation.styl';


.intro
margin: 30px 0 50px 0
Expand Down
2 changes: 2 additions & 0 deletions app/css/tutorial.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
@import 'sidebar.styl';
@import 'logo.styl';
@import 'code.styl';
@import 'deprecation.styl';


iframe.tutorial-iframe
width: 100%
Expand Down
13 changes: 13 additions & 0 deletions layouts/deprecation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class='row deprecation'>
<div class='col-md-12'>
webpack v1 is deprecated. We encourage all developers to upgrade to
webpack 2.
</div>
<div class='col-md-12'>
Follow our <a href="https://webpack.js.org/guides/migrating/"
title="Migration guide">migration guide</a>
or refer to <a href="https://webpack.js.org/concepts/"
title="webpack 2 documentation">webpack 2 documentation</a>
for more info.
</div>
</div>
2 changes: 2 additions & 0 deletions layouts/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ <h1 id="wikititle">{{title}}</h1>
</div>
</div>

{{include deprecation}}

<div class="row">
<div id="wiki" class="col-md-12">
{{wiki}}
Expand Down
2 changes: 2 additions & 0 deletions layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

{{include header}}

{{include deprecation}}

<div class="row">
<div class="col-md-12">
<h1>Webpack 1.x documentation</h1>
Expand Down
3 changes: 2 additions & 1 deletion layouts/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</div>

<div class="col-md-9">
{{include deprecation}}

<div class="row">
<div class="col-md-12">
Expand All @@ -38,4 +39,4 @@
</div>
<a href="https://github.com/webpack/webpack"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub"></a>
</body>
</html>
</html>

0 comments on commit 96ec731

Please sign in to comment.