-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathastro.config.mjs
118 lines (116 loc) · 3.35 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
const site = "https://fakeapi.platzi.com";
// https://astro.build/config
export default defineConfig({
site,
integrations: [
starlight({
title: "Platzi Fake Store API",
favicon: "/icon.png",
head: [
{
tag: "meta",
attrs: { property: "og:image", content: `${site}/cover.png?v=1` },
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: `${site}/cover-tw.png?v=1`,
},
},
{
tag: "link",
attrs: { rel: "preconnect", href: "https://fonts.googleapis.com" },
},
{
tag: "link",
attrs: {
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: true,
},
},
{
tag: "link",
attrs: {
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;500&display=swap",
},
},
{
tag: "script",
attrs: {
src: "https://www.googletagmanager.com/gtag/js?id=G-TS6JSW87G9",
async: true,
},
},
{
tag: "script",
content: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TS6JSW87G9');`,
},
],
logo: {
src: "./src/assets/icon.png",
},
social: {
github: "https://github.com/PlatziLabs/fake-api-backend",
},
defaultLocale: "en",
locales: {
en: {
label: "English",
},
},
sidebar: [
{
label: "About",
items: [
{ label: "Introduction", link: "about/introduction/" },
{ label: "Showcase", link: "about/showcase/" },
],
},
{
label: "REST API",
items: [
{ label: "Products", link: "rest/products/" },
{ label: "Filter products", link: "rest/products-filter/" },
{ label: "Categories", link: "rest/categories/" },
{ label: "Users", link: "rest/users/" },
{ label: "Auth JWT", link: "rest/auth-jwt/" },
{ label: "Locations", link: "rest/locations/" },
{ label: "Files", link: "rest/files/" },
{ label: "Swagger Docs", link: "rest/swagger/" },
],
},
{
label: "GraphQL",
items: [
{ label: "Products", link: "gql/products/" },
{ label: "Filter products", link: "gql/products-filter/" },
{ label: "Categories", link: "gql/categories/" },
{ label: "Users", link: "gql/users/" },
{ label: "Auth JWT", link: "gql/auth-jwt/" },
{ label: "Playground", link: "gql/playground/" },
],
},
{
label: "Resources",
items: [
{ label: "Postman", link: "resources/postman/" },
{ label: "Insomnia", link: "resources/insomnia/" },
],
},
],
customCss: [
"@fontsource/ibm-plex-serif/400.css",
"@fontsource/ibm-plex-serif/600.css",
"./src/styles/custom.css",
],
}),
],
});