8000 Remove `html5shiv` (#1482) · python-sidebar/python_rtd_theme@28c377f · GitHub
[go: up one dir, main page]

Skip to content

Commit 28c377f

Browse files
mix4242humitos
andauthored
Remove html5shiv (readthedocs#1482)
* Fix typo * Lock file changes after running 'npm install --lockfile-version 1' w/ Node 14 * Format file prior to change * Remove the html5shiv JS package & all references to it * Remove the copy-webpack-plugin JS package as no longer used --------- Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
1 parent 80de90a commit 28c377f

File tree

6 files changed

+33
-113
lines changed

6 files changed

+33
-113
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ sphinx_rtd_theme/static/fonts/RobotoSlab/
2323
.node-version
2424
.tool-versions
2525
.nvmrc
26-
sphinx_rtd_theme/static/js/html5shiv.min.js
27-
sphinx_rtd_theme/static/js/html5shiv-printshiv.min.js
2826
.direnv/
2927
.envrc
3028
# Used for dockerized builds

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This implicitely includes Python 3.10
1+
# This implicitly includes Python 3.10
22
FROM node:14-alpine
33

44
# Do not use --update since that will also fetch the

package-lock.json

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

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717
"url": "https://github.com/readthedocs/sphinx_rtd_theme/issues"
1818
},
1919
"homepage": "https://github.com/readthedocs/sphinx_rtd_theme",
20-
"dependencies": {},
2120
"devDependencies": {
2221
"bourbon": "~4.3",
2322
"bourbon-neat": "~1.9",
24-
"copy-webpack-plugin": "^5.1.2",
2523
"css-loader": "^3.6.0",
2624
"file-loader": "^3.0.1",
2725
"font-awesome": "^4.7.0",
28-
"html5shiv": "^3.7.3",
2926
"imports-loader": "^0.8.0",
3027
"jquery": "^3.6.0",
3128
"lato-font": "^3.0.0",

sphinx_rtd_theme/layout.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858

5959
{#- JAVASCRIPTS #}
6060
{%- block scripts %}
61-
<!--[if lt IE 9]>
62-
<script src="{{ pathto('_static/js/html5shiv.min.js', 1) }}"></script>
63-
<![endif]-->
6461
{%- if not embedded %}
6562
{%- for scriptfile in script_files %}
6663
{{ js_tag(scriptfile) }}

webpack.common.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require("path");
22
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3-
const CopyPlugin = require('copy-webpack-plugin');
43

54
module.exports = {
65
entry: {
@@ -66,11 +65,5 @@ module.exports = {
6665
filename: "css/[name].css?[hash]",
6766
chunkFilename: "css/[name].css?[hash]"
6867
}),
69-
new CopyPlugin([
70-
{
71-
from: 'node_modules/html5shiv/dist/*.min.js',
72-
flatten: true,
73-
to: path.resolve(__dirname,'sphinx_rtd_theme/static/js') },
74-
]),
7568
]
7669
};

0 commit comments

Comments
 (0)
0