Skip to content

Format code & update CDN URLs & fix #269 (copy_tex for KaTeX)#543

Merged
stevenjoezhang merged 3 commits intotheme-next:masterfrom
stevenjoezhang:master
Dec 29, 2018
Merged

Format code & update CDN URLs & fix #269 (copy_tex for KaTeX)#543
stevenjoezhang merged 3 commits intotheme-next:masterfrom
stevenjoezhang:master

Conversation

@stevenjoezhang
Copy link
Contributor

@stevenjoezhang stevenjoezhang commented Dec 28, 2018

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.
  • Tests for the changes have been added (for bug fixes / features).
    • Muse | Mist have been tested.
    • Pisces | Gemini have been tested.
  • Docs have been added / updated (for bug fixes / features).

PR Type

What kind of change does this PR introduce?

  • Bugfix.
  • Feature.
  • Code style update (formatting, local variables).
  • Refactoring (no functional changes, no api changes).
  • Build related changes.
  • CI related changes.
  • Documentation content changes.
  • Other... Please describe:

What is the current behavior?

Issue Number(s): N/A

What is the new behavior?

Description about this pull, in several words...

  • Screens with this changes: N/A
  • Link to demo site with this changes: N/A

How to use?

In NexT _config.yml:

...

Does this PR introduce a breaking change?

  • Yes.
  • No.

@theme-next theme-next deleted a comment Dec 28, 2018
@theme-next theme-next deleted a comment Dec 28, 2018
_config.yml Outdated
# See: https://faisalman.github.io/ua-parser-js
# Example:
# ua_parser: //cdn.jsdelivr.net/npm/ua-parser-js@0.7.17/src/ua-parser.min.js
# ua_parser: //cdn.jsdelivr.net/npm/ua-parser-js@0.7.9/src/ua-parser.min.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest version is 0.7.19
image
Is it possible to use the latest version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this in _config.yml:

# Be aware that you should use the same version as internal ones to avoid potential problems.

So I'm not sure if we need to update the internal version, in /source/lib/ua-parser-js/dist ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dude, just enought to use:

//cdn.jsdelivr.net/npm/ua-parser-js@0/src/ua-parser.min.js – will be opened latest major version of any plugin (e.g. 0.7.19). It's info from jsdelivr.com, try to check it.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I have updated all links from cdn.jsdelivr.net in this way. Does anything else need to be done?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recheck it. Must be @x version. See my previous comment carefully.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It said omit the version completely to get the latest one in jsdelivr.com ... so do you think it's necessary to add a @x after the package name?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i tested it. Some libs not work without @x version. And in addition: major versions can broke all work, instead of minor versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then, in summary, if the internal version is 0.7.9, the latest version is 0.7.19, which one would you prefer?

cdn.jsdelivr.net/npm/ua-parser-js/src/ua-parser.min.js
cdn.jsdelivr.net/npm/ua-parser-js@0/src/ua-parser.min.js
cdn.jsdelivr.net/npm/ua-parser-js@0.7.9/src/ua-parser.min.js
cdn.jsdelivr.net/npm/ua-parser-js@0.7.19/src/ua-parser.min.js

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cdn.jsdelivr.net/npm/ua-parser-js@0/src/ua-parser.min.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, fixed

@stevenjoezhang stevenjoezhang changed the title Format code & update CDN links Format code & update CDN URLs & fix #269 Dec 28, 2018
@stevenjoezhang stevenjoezhang merged commit 31c0b5e into theme-next:master Dec 29, 2018
@stevenjoezhang stevenjoezhang added this to the v6.7.0 milestone Dec 29, 2018
@stevenjoezhang stevenjoezhang changed the title Format code & update CDN URLs & fix #269 Format code & update CDN URLs & fix #269 (copy_tex for KaTeX) Dec 31, 2018
@stevenjoezhang stevenjoezhang mentioned this pull request Jul 20, 2019
15 tasks
@stevenjoezhang stevenjoezhang mentioned this pull request Aug 16, 2019
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants