-
Notifications
You must be signed in to change notification settings - Fork 236
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
Add Dependabot support and update KaTeX #3298
Conversation
@mahrud Could you review this PR? |
I'm not very familiar with dependabot, but few suggestions that come to mind:
|
Yeah, less frequent updates is probably better. The examples all use weekly, so I just ran with it. I think Visualize and Style support would be good, too. I have draft branches for both. |
I've changed the interval to monthly and also set the PR's to be grouped. |
I went ahead and added the KaTeX update to this PR. Visualize is going to need quite a bit of work to update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try this for a while, worse case we can disable it if there are too many PRs.
Bumps the prism-dependencies group in /M2/Macaulay2/editors/prism with 2 updates: [css-loader](https://github.com/webpack-contrib/css-loader) and [style-loader](https://github.com/webpack-contrib/style-loader). Updates `css-loader` from 6.11.0 to 7.1.2 - [Release notes](https://github.com/webpack-contrib/css-loader/releases) - [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/css-loader@v6.11.0...v7.1.2) Updates `style-loader` from 3.3.4 to 4.0.0 - [Release notes](https://github.com/webpack-contrib/style-loader/releases) - [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/style-loader@v3.3.4...v4.0.0) --- updated-dependencies: - dependency-name: css-loader dependency-type: direct:development update-type: version-update:semver-major dependency-group: prism-dependencies - dependency-name: style-loader dependency-type: direct:development update-type: version-update:semver-major dependency-group: prism-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
It was removed in KaTeX 0.16.0
This was formerly used in the Style package but was replaced by Prism some time ago. Also simplify the highlightjs README by pointing to the highlightjs-macaulay2 repository.
I realized that we don't need all the dependencies for the highlight.js any more -- that was just cruft left over from before we switched to prism for syntax highlighting the documentation. I went ahead and removed all that. |
``` | ||
|
||
Both build systems will save the file in `Macaulay2/editors/highlightjs`. | ||
See https://github.com/d-torrance/highlightjs-macaulay2 for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's just a README file and no actual generation code then maybe just delete this directory and put a link to your repo on wiki.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need macaulay2.js.in to re-generate the source with new symbols every release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't actually use highlight.js anymore, does that need to be in this repository? We could even move the generateGrammar
function from make-M2-symbols.m2
to Style so that any M2 binary can generate macaulay2.js, without needing the whole repository, and it doesn't have to be at release, just whenever someone wants it, with whatever preloaded packages they desire.
- "*" | ||
|
||
- package-ecosystem: "npm" | ||
directory: "/M2/Macaulay2/editors/prism" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to also move every file other than macaulay2.js.in
and perhaps README.md
to Style? Then prism and katex can update together and the build target in this directory will generate the grammar file and copy it into the Style package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I though about that too. I'll play around with it.
Here's a suggestion:
|
We add support for Dependabot to keep our GitHub actions and the npm modules used for the two Javascript syntax highlighting lexers up-to-date.
Once the file
.github/dependabot.yml
has been merged into themaster
branch, we will get automated PR's on occasion when any of these modules are updated.For example, here are the PR's that I got on my branch when I tested it out:
I went ahead merged all these and included the commits in this PR.