docs: bun deno changes (#10653)

* docs: update deno and bun support

* docs: improve responsiveness

* docs: improve deno to better match conventions
This commit is contained in:
Jay 2026-04-05 17:55:45 +02:00 committed by GitHub
parent 2f52f6b13b
commit 71f14b7fdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 29 additions and 4 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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