2021-08-13 19:58:00 -05:00
|
|
|
export const SITE = {
|
2022-05-10 16:59:56 -05:00
|
|
|
title: 'Documentation',
|
2021-08-26 17:02:38 -05:00
|
|
|
description: 'Your website description.',
|
|
|
|
defaultLanguage: 'en_US',
|
2021-08-13 19:58:00 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export const OPEN_GRAPH = {
|
|
|
|
image: {
|
2021-11-23 17:47:05 -05:00
|
|
|
src: 'https://github.com/withastro/astro/blob/main/assets/social/banner.jpg?raw=true',
|
2021-08-13 19:58:00 -05:00
|
|
|
alt:
|
|
|
|
'astro logo on a starry expanse of space,' +
|
|
|
|
' with a purple saturn-like planet floating in the right foreground',
|
2021-05-27 09:17:27 -05:00
|
|
|
},
|
2021-08-13 19:58:00 -05:00
|
|
|
twitter: 'astrodotbuild',
|
|
|
|
};
|
2021-08-26 17:02:38 -05:00
|
|
|
|
2022-08-29 11:00:08 -05:00
|
|
|
// This is the type of the frontmatter you put in the docs markdown files.
|
|
|
|
export type Frontmatter = {
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
layout: string;
|
|
|
|
image?: { src: string; alt: string };
|
|
|
|
dir?: 'ltr' | 'rtl';
|
|
|
|
ogLocale?: string;
|
|
|
|
lang?: string;
|
|
|
|
};
|
|
|
|
|
2021-08-26 17:02:38 -05:00
|
|
|
export const KNOWN_LANGUAGES = {
|
|
|
|
English: 'en',
|
2022-08-29 11:00:08 -05:00
|
|
|
} as const;
|
|
|
|
export const KNOWN_LANGUAGE_CODES = Object.values(KNOWN_LANGUAGES);
|
2021-08-26 17:02:38 -05:00
|
|
|
|
2022-08-29 11:00:08 -05:00
|
|
|
export const GITHUB_EDIT_URL = `https://github.com/withastro/astro/tree/main/examples/docs`;
|
2021-08-26 17:18:45 -05:00
|
|
|
|
2022-08-29 11:00:08 -05:00
|
|
|
export const COMMUNITY_INVITE_URL = `https://astro.build/chat`;
|
2021-08-26 17:18:45 -05:00
|
|
|
|
2021-08-26 17:02:38 -05:00
|
|
|
// See "Algolia" section of the README for more information.
|
2022-08-29 11:00:08 -05:00
|
|
|
export const ALGOLIA = {
|
|
|
|
indexName: 'XXXXXXXXXX',
|
|
|
|
appId: 'XXXXXXXXXX',
|
|
|
|
apiKey: 'XXXXXXXXXX',
|
|
|
|
};
|
2021-08-26 17:02:38 -05:00
|
|
|
|
2022-08-29 11:00:08 -05:00
|
|
|
export type Sidebar = Record<
|
|
|
|
typeof KNOWN_LANGUAGE_CODES[number],
|
|
|
|
Record<string, { text: string; link: string }[]>
|
|
|
|
>;
|
|
|
|
export const SIDEBAR: Sidebar = {
|
|
|
|
en: {
|
|
|
|
'Section Header': [
|
|
|
|
{ text: 'Introduction', link: 'en/introduction' },
|
|
|
|
{ text: 'Page 2', link: 'en/page-2' },
|
|
|
|
{ text: 'Page 3', link: 'en/page-3' },
|
|
|
|
],
|
|
|
|
'Another Section': [{ text: 'Page 4', link: 'en/page-4' }],
|
|
|
|
},
|
2021-08-26 17:02:38 -05:00
|
|
|
};
|