From 0a82289425fdf551e279e5a9e337c234de62b8e3 Mon Sep 17 00:00:00 2001 From: Souparna_COCO <115988950+SouparnaChatterjee@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:47:40 +0530 Subject: [PATCH] Update kiwix-serve.rst - Added region-specific adjustments: >= 5% in CN for China and >= 5% in NG for Nigeria to ensure newer versions used in these regions are included. - Covered modern browsers to ensure compatibility with Chrome 80+, Edge 80+, Safari 14+, and Firefox 70+. - Removed old/unmaintained browsers by using the 'not dead' rule to exclude browsers like IE11 and outdated mobile browsers. --- docs/kiwix-serve.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/kiwix-serve.rst b/docs/kiwix-serve.rst index 588b60ce..f1897332 100644 --- a/docs/kiwix-serve.rst +++ b/docs/kiwix-serve.rst @@ -19,6 +19,25 @@ search database. ``kiwix-serve`` supports Web browsers `Firefox >= 70, Chrome >= 80, Edge >= 80, ChromeAndroid >= 80, Safari >= 14, iOS >= 14 `_. + +The full browserslist configuration is as follows: +```json +"browserslist": [ + "> 0.5%", + "last 2 versions", + "not dead", + "supports es6-module", + "Firefox >= 70", + "Chrome >= 80", + "Edge >= 80", + "ChromeAndroid >= 80", + "Safari >= 14", + "iOS >= 14", + ">= 5% in CN", // China-specific adjustment + ">= 5% in NG" // Nigeria-specific adjustment +] + + Usage =====