0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/docs/src/config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.5 KiB
TypeScript
Raw Normal View History

2021-08-13 19:58:00 -05:00
export const SITE = {
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
// 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',
} as const;
export const KNOWN_LANGUAGE_CODES = Object.values(KNOWN_LANGUAGES);
2021-08-26 17:02:38 -05:00
export const GITHUB_EDIT_URL = `https://github.com/withastro/astro/tree/main/examples/docs`;
export const COMMUNITY_INVITE_URL = `https://astro.build/chat`;
2021-08-26 17:02:38 -05:00
// See "Algolia" section of the README for more information.
export const ALGOLIA = {
indexName: 'XXXXXXXXXX',
appId: 'XXXXXXXXXX',
apiKey: 'XXXXXXXXXX',
};
2021-08-26 17:02:38 -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
};