Skip to content

Commit

Permalink
fix: wrong jquery in default template (dotnet#8885)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih authored and p-kostov committed Jun 28, 2024
1 parent d3d2fac commit c9ce74d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ updates:
ignore:
# Ignore default template dependency update due to missing tests
- dependency-name: '@default/*'
- dependency-name: 'jquery'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
4 changes: 2 additions & 2 deletions templates/default/src/docfx.vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
require('@default/bootstrap/dist/css/bootstrap.css')
require('@default/highlight.js/styles/github.css')

window.$ = window.jQuery = require('@default/jquery')
window.$ = window.jQuery = require('jquery')

require('@default/bootstrap')
require('@default/twbs-pagination')
require('@default/mark.js/src/jquery.js')
require('@default/mark.js/src/jquery')

const AnchorJS = require('@default/anchor-js')
window.anchors = new AnchorJS()
Expand Down
25 changes: 7 additions & 18 deletions templates/package-lock.json

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

2 changes: 1 addition & 1 deletion templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@default/anchor-js": "npm:[email protected]",
"@default/bootstrap": "npm:[email protected]",
"@default/highlight.js": "npm:[email protected]",
"@default/jquery": "npm:[email protected]",
"@default/lunr": "npm:[email protected]",
"@default/mark.js": "npm:[email protected]",
"@default/twbs-pagination": "josecebe/twbs-pagination#1.3.1",
Expand All @@ -31,6 +30,7 @@
"bootstrap": "^5.3.0",
"bootstrap-icons": "^1.10.5",
"highlight.js": "^11.8.0",
"jquery": "3.6.3",
"lit-html": "^2.7.4",
"lunr": "2.3.9",
"mathjax": "^3.2.2",
Expand Down

0 comments on commit c9ce74d

Please sign in to comment.