-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagidoc.mjs
39 lines (38 loc) · 1.1 KB
/
magidoc.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
import { fileURLToPath } from 'node:url';
import * as dotenv from 'dotenv';
dotenv.config();
const { pages } = await import(`./pages.mjs?id=${Math.random()}`);
export default {
introspection: {
type: 'url',
url: 'https://api.rasayel.io/api/graphql',
headers: {
Authorization: process.env.RASAYEL_API_KEY,
},
},
website: {
template: 'carbon-multi-page',
staticAssets: fileURLToPath(new URL('./assets', import.meta.url)),
options: {
appTitle: 'Rasayel Developer Documentation',
appLogo: '/logo-shape.svg',
appFavicon: '/favicon.ico',
customStyles: ['/rasayelStyle.css'],
pages: pages,
siteMeta: {
description: 'The API Documentation for Rasayel',
keywords: 'whatsapp, sms, api, rasayel, graphql, facebook, instagram',
},
queryGenerationFactories: {
Phone: '+353800000000',
MdString: '**test** __testing__ `testing`', // Markdown
},
},
},
dev: {
watch: [
fileURLToPath(new URL('./pages', import.meta.url)),
fileURLToPath(new URL('./pages.mjs', import.meta.url)),
],
},
};