Skip to content

Commit 723411c

Browse files
committed
chore(docs): update footer
1 parent 24d6923 commit 723411c

27 files changed

Lines changed: 22 additions & 200 deletions

File tree

.vitepress/config.mts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { defineConfig } from 'vitepress'
33
import { useSidebar } from 'vitepress-openapi'
44
import { collect } from 'collect.js'
55
import { groupIconVitePlugin } from 'vitepress-plugin-group-icons'
6-
import regions from './regions.json' assert { type: 'json' }
7-
import spec from '../public/argentina/openapi.json' assert { type: 'json' }
6+
import regions from './regions.json' with { type: 'json' }
7+
import spec from '../public/argentina/openapi.json' with { type: 'json' }
88

99
const sidebar = useSidebar({ spec })
1010

@@ -80,7 +80,11 @@ export default defineConfig({
8080
icon: 'github',
8181
link: 'https://github.com/enzonotario/criptoya-api-docs',
8282
}
83-
]
83+
],
84+
footer: {
85+
message: 'Contacto: <a mailto="contacto@criptoya.com" target="_blank" rel="noopener noreferrer">contacto@criptoya.com</a>',
86+
copyright: 'Copyright © 2020-presente <a href="https://criptoya.com" target="_blank" rel="noopener noreferrer">CriptoYa</a>'
87+
},
8488
},
8589

8690
head: [

.vitepress/scripts/generateDocs.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import spec from './templates/openapi.json' assert { type: 'json' };
2-
import specArgentina from './templates/openapi-argentina.json' assert { type: 'json' };
3-
import regions from '../regions.json' assert { type: 'json' };
1+
import spec from './templates/openapi.json' with { type: 'json' };
2+
import specArgentina from './templates/openapi-argentina.json' with { type: 'json' };
3+
import regions from '../regions.json' with { type: 'json' };
44
import fs from 'fs/promises';
55

66
async function init() {

.vitepress/scripts/templates/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,3 @@ La API pública de CriptoYa te permite obtener las cotizaciones de los exchanges
1515
```plaintext
1616
https://criptoya.com/api
1717
```
18-
19-
<div class="mt-20 flex justify-center flex-col items-center gap-4">
20-
21-
Documentación hecha con ❤️ por [Enzo Notario](https://github.com/enzonotario)
22-
23-
::: info Contacto
24-
25-
Por consultas relacionadas con la API, por favor contactar a [contacto@criptoya.com](mailto:contacto@criptoya.com).
26-
27-
:::
28-
29-
Copyright © 2020-presente [CriptoYa](https://criptoya.com)
30-
31-
</div>

.vitepress/scripts/templates/operations/[operationId].paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { usePaths } from 'vitepress-openapi'
2-
import spec from '../../public/REPLACE_REGION/openapi.json' assert { type: 'json' }
2+
import spec from '../../public/REPLACE_REGION/openapi.json' with { type: 'json' }
33

44
export default {
55
paths() {

argentina/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,3 @@ La API pública de CriptoYa te permite obtener las cotizaciones de los exchanges
1515
```plaintext
1616
https://criptoya.com/api
1717
```
18-
19-
<div class="mt-20 flex justify-center flex-col items-center gap-4">
20-
21-
Documentación hecha con ❤️ por [Enzo Notario](https://github.com/enzonotario)
22-
23-
::: info Contacto
24-
25-
Por consultas relacionadas con la API, por favor contactar a [contacto@criptoya.com](mailto:contacto@criptoya.com).
26-
27-
:::
28-
29-
Copyright © 2020-presente [CriptoYa](https://criptoya.com)
30-
31-
</div>

argentina/operations/[operationId].paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { usePaths } from 'vitepress-openapi'
2-
import spec from '../../public/argentina/openapi.json' assert { type: 'json' }
2+
import spec from '../../public/argentina/openapi.json' with { type: 'json' }
33

44
export default {
55
paths() {

bolivia/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,3 @@ La API pública de CriptoYa te permite obtener las cotizaciones de los exchanges
1515
```plaintext
1616
https://criptoya.com/api
1717
```
18-
19-
<div class="mt-20 flex justify-center flex-col items-center gap-4">
20-
21-
Documentación hecha con ❤️ por [Enzo Notario](https://github.com/enzonotario)
22-
23-
::: info Contacto
24-
25-
Por consultas relacionadas con la API, por favor contactar a [contacto@criptoya.com](mailto:contacto@criptoya.com).
26-
27-
:::
28-
29-
Copyright © 2020-presente [CriptoYa](https://criptoya.com)
30-
31-
</div>

bolivia/operations/[operationId].paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { usePaths } from 'vitepress-openapi'
2-
import spec from '../../public/bolivia/openapi.json' assert { type: 'json' }
2+
import spec from '../../public/bolivia/openapi.json' with { type: 'json' }
33

44
export default {
55
paths() {

brazil/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,3 @@ La API pública de CriptoYa te permite obtener las cotizaciones de los exchanges
1515
```plaintext
1616
https://criptoya.com/api
1717
```
18-
19-
<div class="mt-20 flex justify-center flex-col items-center gap-4">
20-
21-
Documentación hecha con ❤️ por [Enzo Notario](https://github.com/enzonotario)
22-
23-
::: info Contacto
24-
25-
Por consultas relacionadas con la API, por favor contactar a [contacto@criptoya.com](mailto:contacto@criptoya.com).
26-
27-
:::
28-
29-
Copyright © 2020-presente [CriptoYa](https://criptoya.com)
30-
31-
</div>

brazil/operations/[operationId].paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { usePaths } from 'vitepress-openapi'
2-
import spec from '../../public/brazil/openapi.json' assert { type: 'json' }
2+
import spec from '../../public/brazil/openapi.json' with { type: 'json' }
33

44
export default {
55
paths() {

0 commit comments

Comments
 (0)