diff --git a/docs/index.md b/docs/index.md index ed452155..e7aeebf9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,8 +3,8 @@ layout: home hero: - name: "axios docs" - text: "axios is a simple HTTP client for the browser and Node.js" + name: 'axios docs' + text: 'axios is a simple HTTP client for the browser and Node.js' image: dark: /logo.svg light: /logo-light.svg @@ -43,6 +43,20 @@ onMounted(() => { gap: 10, snap: true, pagination: false, + breakpoints: { + 1200: { + perPage: 4, + }, + 960: { + perPage: 3, + }, + 640: { + perPage: 2, + }, + 480: { + perPage: 1, + }, + }, } ).mount(); }); @@ -116,12 +130,15 @@ const capitalizeFirstLetter = (word) => { border: 1px solid var(--vp-c-gutter) !important; text-align: center; background-color: var(--card-background-color) !important; - width: 11.5rem; + width: 100%; + max-width: 11.5rem; scroll-snap-align: center; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); flex-shrink: 0 !important; margin-bottom: 0.5rem !important; margin-top: 0.5rem !important; + margin-left: auto; + margin-right: auto; } .imgWrapper { diff --git a/docs/pages/getting-started/features.md b/docs/pages/getting-started/features.md index 7b48b76e..b50805a3 100644 --- a/docs/pages/getting-started/features.md +++ b/docs/pages/getting-started/features.md @@ -20,6 +20,8 @@ axios supports all modern and select older browsers, including Chrome, Firefox, axios also supports a wide range Node.js versions with tested compatibility as far back as v12.x, making it a good choice in environments where upgrading to the latest Node.js version might not be possible or practical. +In addition to Node.js, axios has Bun and Deno smoke tests that validate key runtime behavior and improve confidence in cross-runtime compatibility. + ## Additional features - Supports the Promise API diff --git a/docs/pages/getting-started/first-steps.md b/docs/pages/getting-started/first-steps.md index a3ea04a3..16021c91 100644 --- a/docs/pages/getting-started/first-steps.md +++ b/docs/pages/getting-started/first-steps.md @@ -27,7 +27,13 @@ yarn add axios #### Using bun ```bash -bun install axios +bun add axios +``` + +#### Using deno + +```bash +deno install npm:axios ``` #### Using jsDelivr