Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JS deps to latest non-breaking version #2067

Merged
merged 10 commits into from
Mar 15, 2023
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Added keyboard shortcuts for search box (`Ctrl + /` or `Cmd + /` to focus into the search box, `Esc` to focus out of it). (#1536), (#2027)

* KaTeX has been updated from `v0.13.24` to `v0.16.4` (major version bump).
* The various JS and font dependencies of the HTML backend have been updated to the latest non-breaking versions. (#2066, #2067)

- KaTeX has been updated from `v0.13.24` to `v0.16.4` (major version bump).
- highlight.js has been updated from `v11.5.1` to `v11.7.0`.
- JuliaMono has been updated from `v0.045` to `v0.048`.
- jQuery UI has been updated from `v1.12.1` to `v1.13.2`.
- jquery has been updated from `v3.6.0` to `v3.6.4`.
- MathJax 2 has been updated from `v2.7.7` to `v2.7.9`.

### Fixed

Expand Down
1 change: 1 addition & 0 deletions assets/html/scss/highlightjs/a11y-dark.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* https://github.com/highlightjs/highlight.js/blob/11.7.0/src/styles/a11y-dark.css */
/*!
Theme: a11y-dark
Author: @ericwbailey
Expand Down
12 changes: 7 additions & 5 deletions assets/html/scss/highlightjs/default.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* https://github.com/highlightjs/highlight.js/blob/11.7.0/src/styles/default.css */
/*!
Theme: Default
Description: Original highlight.js style
Expand All @@ -17,6 +18,7 @@ Typically this "required" baseline CSS is added by `makestuff.js` during build.
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em;
}

code.hljs {
Expand All @@ -25,7 +27,7 @@ code.hljs {
/* end baseline CSS */

.hljs {
background: #F0F0F0;
background: #F3F3F3;
color: #444;
}

Expand All @@ -42,7 +44,7 @@ code.hljs {
.hljs-params {}

.hljs-comment {
color: #888888;
color: #697070;
}
.hljs-tag,
.hljs-punctuation {
Expand Down Expand Up @@ -93,13 +95,13 @@ code.hljs {
.hljs-selector-attr,
.hljs-operator,
.hljs-selector-pseudo {
color: #BC6060;
color: #ab5656;
}

/* Language color: hue: 90; */

.hljs-literal {
color: #78A960;
color: #695;
}

.hljs-built_in,
Expand All @@ -117,7 +119,7 @@ code.hljs {
}

.hljs-meta .hljs-string {
color: #4d99bf;
color: #38a;
}


Expand Down
1 change: 1 addition & 0 deletions assets/html/themes/documenter-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions assets/html/themes/documenter-light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/html/RD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ module RD

const requirejs_cdn = "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"
const lato = "https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css"
const juliamono = "https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css"
const juliamono = "https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.048/juliamono.min.css"
const fontawesome_version = "5.15.4"
const fontawesome_css = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/$(fontawesome_version)/css/fontawesome.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/$(fontawesome_version)/css/solid.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/$(fontawesome_version)/css/brands.min.css",
]

const jquery = RemoteLibrary("jquery", "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js")
const jqueryui = RemoteLibrary("jqueryui", "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js")
const jquery = RemoteLibrary("jquery", "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js")
const jqueryui = RemoteLibrary("jqueryui", "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js")
const lunr = RemoteLibrary("lunr", "https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min.js")
const lodash = RemoteLibrary("lodash", "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js")

Expand All @@ -34,7 +34,7 @@ module RD
# NOTE: the CSS themes for hightlightjs are compiled into the Documenter CSS
# When updating this dependency, it is also necessary to update the the CSS
# files the CSS files in assets/html/scss/highlightjs
hljs_version = "11.5.1"
hljs_version = "11.7.0"
push!(r, RemoteLibrary(
"highlight",
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/$(hljs_version)/highlight.min.js"
Expand Down Expand Up @@ -86,7 +86,7 @@ module RD
))
end
function mathengine!(r::RequireJS, engine::MathJax2)
url = isempty(engine.url) ? "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML" : engine.url
url = isempty(engine.url) ? "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS_HTML" : engine.url
push!(r, RemoteLibrary(
"mathjax",
url,
Expand Down