mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03: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:
+20
-3
@@ -3,8 +3,8 @@
|
|||||||
layout: home
|
layout: home
|
||||||
|
|
||||||
hero:
|
hero:
|
||||||
name: "axios docs"
|
name: 'axios docs'
|
||||||
text: "axios is a simple HTTP client for the browser and Node.js"
|
text: 'axios is a simple HTTP client for the browser and Node.js'
|
||||||
image:
|
image:
|
||||||
dark: /logo.svg
|
dark: /logo.svg
|
||||||
light: /logo-light.svg
|
light: /logo-light.svg
|
||||||
@@ -43,6 +43,20 @@ onMounted(() => {
|
|||||||
gap: 10,
|
gap: 10,
|
||||||
snap: true,
|
snap: true,
|
||||||
pagination: false,
|
pagination: false,
|
||||||
|
breakpoints: {
|
||||||
|
1200: {
|
||||||
|
perPage: 4,
|
||||||
|
},
|
||||||
|
960: {
|
||||||
|
perPage: 3,
|
||||||
|
},
|
||||||
|
640: {
|
||||||
|
perPage: 2,
|
||||||
|
},
|
||||||
|
480: {
|
||||||
|
perPage: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
).mount();
|
).mount();
|
||||||
});
|
});
|
||||||
@@ -116,12 +130,15 @@ const capitalizeFirstLetter = (word) => {
|
|||||||
border: 1px solid var(--vp-c-gutter) !important;
|
border: 1px solid var(--vp-c-gutter) !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: var(--card-background-color) !important;
|
background-color: var(--card-background-color) !important;
|
||||||
width: 11.5rem;
|
width: 100%;
|
||||||
|
max-width: 11.5rem;
|
||||||
scroll-snap-align: center;
|
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);
|
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;
|
flex-shrink: 0 !important;
|
||||||
margin-bottom: 0.5rem !important;
|
margin-bottom: 0.5rem !important;
|
||||||
margin-top: 0.5rem !important;
|
margin-top: 0.5rem !important;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgWrapper {
|
.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.
|
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
|
## Additional features
|
||||||
|
|
||||||
- Supports the Promise API
|
- Supports the Promise API
|
||||||
|
|||||||
@@ -27,7 +27,13 @@ yarn add axios
|
|||||||
#### Using bun
|
#### Using bun
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun install axios
|
bun add axios
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Using deno
|
||||||
|
|
||||||
|
```bash
|
||||||
|
deno install npm:axios
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Using jsDelivr
|
#### Using jsDelivr
|
||||||
|
|||||||
Reference in New Issue
Block a user