-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
docsify 5.0 roadmap #657
Comments
what about generate diagrams and flowcharts from text using Mermaid ? |
@MythRen there is a paragrah about mermaid support: https://docsify.js.org/#/markdown?id=supports-mermaid |
My 2 cents:
|
I think it makes sense to add some test and fix some bugs which already lead to breaking changes by affecting the HTML output. Tests should be too hard since we can just have md as input and expect some HTMl as output. Is it correct that currently there are no automatic tests at all? Another suggestion for 5.0 is to merge some features of doczify to the docsify CLI. BTW: I've just pushed it, but I've already written the code a week ago. |
I have another proposal which is not affecting the features itself, it's more the deployment. Currently the lib directory is part of the master branch. Committing generated files into the source repository is actually an anti pattern. IMHO we should delete the lib directory from the repo and generate these files only to publish them to npm. |
@timaschew it's already in their plan if you check the "Breaking changes" part inside the first post: "Remove lib and themes folder from the repo". :) |
@sansnom true... 🙈thanks @QingWei-Li |
A few additional proposals for 5.x:
Happy to help with the effort. It's good to see docsify getting some attention. 😄 |
Given Microsoft has all but given up on IE and even their own rendering engine in Edge, I think Docsify should ditch IE support. Firefox & Chromium browsers remain the only browsers actually used. Getting docsify themeable into the core would be awesome 🎉 |
@jthegedus -- Surprisingly, IE still holds a substantial market share. It's typically ranked the second or third most popular desktop browser globally.
Dropping IE support will almost certainly affect an appreciable number of docsify site visitors, but continuing to do so comes at a cost. Is it worth it? I dunno. That's why I posed the question as something to consider for the next major release, especially given the current issues with IE. My $0.02 is that docsify should continue to support IE in 5.x, but only if the current IE bugs are fixed and the team can prioritize compatibility moving forward. If not, then it's better to drop support and remove "Compatible with IE10+" from docsify's list of features. Another option is to fix the existing IE issues, drop official support in 5.x, and direct users who are concerned with IE compatibility to load v4 instead of v5. |
This is surprising! I was under the impression since Win8 had mainstream support dropped by MS that few would still be using it. Fewer still in our industry. You have proposed a number of reasonable solutions, personally I would favour
over the others as I do not think it's a cost a project currently looking for maintainers needs to support, especially not with v4 existing and already being mostly compatible. |
Triage existing issues firstVery good idea, I had actually the same. I would also like to adapt the template for creating issues. There are some issues which are not written in english. I would like to add this as a requirement and mark all non english issues with a label and ask the people to translate it. And for these issues and every other issues which require additional context to understand we close them after 30 days (or so) of inactivity. I've removed some label which were not used and created a new one wait for information. Reevaluate official support for IE10/11
Let's focus on http://gs.statcounter.com/ which is also used on https://caniuse.com/usage-table I vote to drop support for IE (I guess Edge is not affected) and also remove it from the list of features. Consider adopting a theme system similar to docsify-themeableSounds great! |
I don't want to start discouraging non-english speakers to contribute, although I did find it difficult to find the reasoning/discussion on this particular issue ( #720 ) as it hadn't been raised in English prior to this. I used Google translate (built into Chrome) to translate the page and read it, and it was extremely legible. My suggestion here is that we request in the Issue template that users who don't know English well, write in their own language and use Google Translate more heavily (maybe not an option in China though... I dunno) |
I agree with @jhildenbiddle. Would be interesting to clarify about IE support. Ideally for me, it would be nice if the project could keep the support of IE 11 on 5.x (some users are locked on it...). If it cost too much then drop the support and if possible fix the issues in 4.x and/or write down incompatible plug-in. @timaschew about GFM, marked (used by docsify) seems to already support it: https://marked.js.org/#/USING_ADVANCED.md It's not working for you ? |
I brought this up because @QingWei-Li is mentioning this:
And I would just like to understand what exactly he mean with that. |
@timaschew
|
I have long wanted to give up IE. Maybe we can provide a polyfill for IE if necessary. |
Official statement from Microsoft regarding IE10:
Seems like a good justification for dropping IE10 support. If we need another reason, consider the fact that docsify plugins don't work in IE10 (#514). IE11 is another story. If we stick with stats from gs.statcounter.com per @timaschew's suggestion, IE still holds 5.73% desktop marketshare in January 2019 (mobile, tablet, and console browsers excluded). That's more than Safari or Edge, and I don't think anyone would propose we drop support for either of those browsers. The good news is that docsify actually works fine in IE11. Docsify plugins are the issue. For example, the docsify website is broken (#515) because it uses docsify-plugin-codefund which has been written using ES6 syntax that has not been transpiled to ES5 for legacy browsers. This has been a common issue with plugins that led me to create PRs for medium-zoom, docsify-copy-code, and docsify-pagination to get them working with IE. So far these have all been easy fixes--most devs simply weren't aware that they needed to support IE or that their code would break IE. Here's my vote for IE support moving forward:
To help support the effort:
Apologies for the lengthy comment. Just wanted to get this out there and hopefully move this discussion closer to a decision. I'm happy to create a separate issue to discuss further and reduce the noise in this thread of preferred. |
I've been considering making some plugin templates that have standard build
and compilation setups for ES+ and TS. If others are open to it, we can add
them to the official repo making and point people to them. It would reduce
the burden of newcomers and our need to validate them so thoroughly and
manually.
…On Thu., 31 Jan. 2019, 18:37 John Hildenbiddle ***@***.*** wrote:
Official statement from Microsoft regarding IE10
<https://www.microsoft.com/en-us/windowsforbusiness/end-of-ie-support>:
Beginning January 12, 2016, only the most current version of Internet
Explorer available for a supported operating system will receive technical
supports and security updates. Internet Explorer 11 is the last version of
Internet Explorer, and will continue to receive security updates,
compatibility fixes, and technical support on Windows 7, Windows 8.1, and
Windows 10.
Seems like a good justification for dropping IE10 support. If we need
another reason, consider the fact that docsify plugins don't work in IE10 (
#514 <#514>).
IE11 is another story. If we stick with stats from gs.statcounter.com
<http://gs.statcounter.com/browser-market-share/desktop/worldwide/#monthly-201901-201901-bar>
per @timaschew <https://github.com/timaschew>'s suggestion, IE still
holds 5.73% *desktop* marketshare in January 2019 (mobile, tablet, and
console browsers excluded). That's more than Safari or Edge, and I don't
think anyone would propose we drop support for either of those browsers.
The good news is that docsify actually works fine in IE11. Docsify plugins
are the issue. For example, the docsify website is broken (#515
<#515>) because it uses
docsify-plugin-codefund
<https://github.com/njleonzhang/docsify-plugin-codefund> which has been
written using ES6 syntax that has not been transpiled to ES5 for legacy
browsers. This has been a common issue with plugins that led me to create
PRs for medium-zoom <https://github.com/francoischalifour/medium-zoom>,
docsify-copy-code <https://github.com/jperasmus/docsify-copy-code>, and
docsify-pagination <https://github.com/imyelo/docsify-pagination> to get
them working with IE. So far these have all been easy fixes--most devs
simply weren't aware that they needed to support IE or that their code
would break IE.
Here's my vote for IE support moving forward:
- Drop IE10 support now (since it doesn't work anyway)
- Fix IE11 issues in 4.x (before 5.x release)
- Continue IE11 support for 5.x (since breaking changes are not
planned)
- Assume IE11 support will be dropped for 6.x
To help support the effort:
- Adding browser requirements to the plugin docs
- Create a boilerplate plugin repo that incorporate best practices
- Make docsify's plugin system more resilient by incorporating try{}
catch{} blocks around calls
- Require plugins to be tested in IE before listing them in official
docs
- Test all plugins listed in official docs for IE11 issues and reach
out to authors as needed.
Apologies for the lengthy comment. Just wanted to get this out there and
hopefully move this discussion closer to a decision. I'm happy to create a
separate issue to discuss further and reduce the noise in this thread of
preferred.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#657 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT1cLgsJwtxUjBEuGQGVMf0feQw27yTTks5vIp0pgaJpZM4X9tWT>
.
|
So is everybody fine with dropping IE 10 and support only IE 11? |
It seems like this may be a good time to discuss #386 as well. @timaschew mentioned the need for adding tests to docsify which I whole-heartedly agree with. Writing tests isn't the most exciting work for most devs, and without a framework in place there is very little motivation to do so. Agreeing on a testing framework and implementing tests for even a small percentage of the codebase would go a long way towards setting the standard moving forward. All four of the new features proposed for 5.0 are good candidates for automated testing. We could limit the initial set of tests to these features only to improve the reliability of the 5.x launch and reduce the delay imposed by adding a testing framework. Presumably these new features will need some kind of testing anyway, so the impact on the release could be negligible. Like the other issues, happy to create a new PR for further discussion if needed. |
Let's start with unit testing or whatever we call it what I've already setup in this PR: #760 |
Hamburger menuIt hides menu entries of the sidebar (if that has many entries) on larger screens and overlaps the full length of the left side of the main area on smaller screens. Search
Readability & NavigationMaybe it would make sense to sometimes more closely match layout and behaviour of vuepress?
PWA functionality
dynamic themeNot sure if there's a way to detect it on Windows. |
@jrappen -- Some good ideas in there, but it's unlikely that they will be managed well when added as a bundle of issues to an existing issue. Creating separate issues will allow each one to be tracked and triaged for upcoming releases much more easily. |
I could do that. |
Why is the removal of the All other proposed changes are additions, so it seems like a minor version bump should suffice. Also, I recommend adding #780 to the target list for 5.x. It's a small amount of work that can prevent a lot of headaches when the next major version is released. |
Docsify needs a new markdown parser. I think github uses the c++ version of this |
I'm pretty sure you won't be able to use it out of the box in the browser because of its native bindings. |
Yes I am considering markdownit only #823 (comment) Although it would have been better to get the GitHub parser to work in js as it would render consistently in docsify. |
Closing this in favor of #1061 (which links to each feature as a separate issue) so that we only have one issue for this. If you have any ideas, please meet us there. :) Also see the 5.0! project board for progress. @anikethsaha Maybe some things from here need to be moved over there? |
What I'll do is re-open this, put it in the |
Yes we can do it, already my plugin docsify-darklight-theme enabled this feature for docsify sites. |
With V4 and Themeable, you can already load dark or light themes without any plugin based on the OS preferences. <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css">
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css"> Same for syntax highlighting <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/light.css">
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="//cdn.jsdelivr.net/npm/[email protected]/build/style.css"> This behavior is really simple now and devs can handle it in many ways, without any opinionated plugin limitation. As a docsify user and CSS developer, I would never use an integrated plugin. The only missing feature about this topic, is a three-state switcher which let user to use a light, dark or automatic theme (auto should rely on the OS preferences)
The stats you're mentioning are about all the IE versions. In fact, IE 11 only have 2.29%: |
How about dropping IE support altogether? When counting all browsers (incl. mobile), IE11 usage is now below 0.65%.
Even if mobile browsers are excluded, IE11's market share is still below 2% worldwide.src Popular frameworks and libraries are dropping IE11 support as well including Bootstrap, Angular, and Vue.js. I assume the remaining users are mainly companies. However, major business software vendors are abandoning IE11 this year:
Today, with the new MS Edge (Chromium), IE-only websites can be added to the Enterprise Mode Site List (Watch intro and guide) which Edge then renders in the IE-mode within the same single browser. At the same time, Edge is now also available for all supported Windows versions (7, 8.1, 10, Server, etc.) unlike the classic Edge. I see no reason to support IE11 in 2021. Update: today (May 19, 2021), Microsoft officially announced the EOL of the IE11 support.
|
New Features
Breaking Changes
lib
andthemes
folder from the repoDeadline
DecembermaybeFebruarySoonThe text was updated successfully, but these errors were encountered: