mirror of
https://github.com/axios/axios.git
synced 2026-04-11 14:21:59 +08:00
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:
parent
2f52f6b13b
commit
71f14b7fdc
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user