Skip to content

Conversation

@trusktr
Copy link
Member

@trusktr trusktr commented Dec 6, 2025

Summary

Remove warning that was unintentionally included in

Related issue, if any:

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe): delete console warning

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

Copilot AI review requested due to automatic review settings December 6, 2025 00:52
@vercel
Copy link

vercel bot commented Dec 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docsify-preview Ready Ready Preview Comment Dec 6, 2025 0:52am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes an unintentionally added deprecation warning for the global window.$docsify config variable. The warning was mistakenly included in PR #2392 and is now being properly removed as per issue #2645.

Key Changes

  • Removed console warning that incorrectly deprecated the global window.$docsify variable
  • Preserved the actual functionality of window.$docsify which is still actively used throughout the codebase

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@paulhibbitts paulhibbitts self-requested a review December 6, 2025 00:54
Copy link
Collaborator

@paulhibbitts paulhibbitts left a comment

Choose a reason for hiding this comment

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

Thanks very much @trusktr , looking at the PR Preview build the message is no longer being displayed.

console.warn(
'DEPRECATION: The global $docsify config variable is deprecated. See the latest getting started docs. https://docsify.js.org/#/quickstart',
);
}
Copy link
Member Author

@trusktr trusktr Dec 6, 2025

Choose a reason for hiding this comment

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

For reference, we chatted about not deprecating this when I was making the type definition update in #2392 (I forgot to delete one of two console warnings before merging), because in 5.0 $docsify is still the default documented way to configure and consume Docsify that is already part of 5.0-rc and that everyone is still using.

In the future we will document our new prefered way of using Docsify (perhaps in v6, or at least not in 5.0 because that's already release candidate).

As a reminder (or in case you haven't caught up with other conversations), the new new Docsify(options) API is a path path forward that:

  • currently provides a type checked and IDE intellisense-enabled experience (f.e. using Docsify with TypeScript)
  • in the future will be backwards compatible with a new Custom-Element-based API:
    • in JS:
      • const el = new Docsify(options) (same as current usage)
      • or const el = document.createElement('docsify-app'); el.setAttribute('option', 'value') (create element via JS, set options on the DOM element)
    • in HTML:
      • <docsify-app option="value" ...> (define all options in HTML, or in any templating of frameworks like React/Vue/Svelte/Solid.js/Angular/etc)

@trusktr trusktr merged commit 72b21d1 into develop Dec 6, 2025
14 checks passed
@trusktr trusktr deleted the delete-accidental-deprecation-warning branch December 6, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove $docsify deprecation warning for v5 release

3 participants