docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.78k stars 5.68k forks source link

chore: update miscellaneous parts of the source to reasonably modern language alternatives, remove polyfills, improve some JSDoc comments, remove traces of IE #2114

Closed trusktr closed 1 year ago

trusktr commented 1 year ago

Continues from

Part of

Summary

Updated a bunch of pieces of code to using modern patterns. Avoided refactoring, mostly changes happened inline, or were small refactorings only.

Some things that we updated:

Deleted

BREAKING: In a minority of cases syntax updates may break apps running in very old browsers (such as Internet Explorer), or apps that build Docsify in a custom way with old build tools. To upgrade, build Docsify for older browsers in a custom way, or update existing build tools to handle newer syntax.

DEPRECATED: $docsify.themeColor is deprecated and will be eventually removed, use a --theme-color CSS variable in your style sheet.

What kind of change does this PR introduce?

Code style update Refactor Docs

For any code change,

Does this PR introduce a breaking change? (check one)

Related issue, if any:

Simplification and modernization issue: https://github.com/docsifyjs/docsify/issues/2104

Tested in the following browsers:

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docsify-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2023 5:30pm
codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b621e0e4e7bedcef6d647947d4662d455e45048e:

Sandbox Source
docsify-template Configuration
trusktr commented 1 year ago

If someone disapproves and prefers to remove changes like for(;;)->for(of), etc, we can do that.

All the current features are well supported in browsers today, all tests pass, and the deployment looks good!

Note: The Vue feature has not been working in Vercel deployments for quite some time. It has been broken in Vercel since before any of my recent changes (before delete-ssr). I'm not sure if it was always broken or when it broke.