mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
feat: create leaderboard
This commit is contained in:
@@ -1,102 +1,113 @@
|
||||
import starlight from '@astrojs/starlight';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import svelte from '@astrojs/svelte';
|
||||
|
||||
export const locales = {
|
||||
root: {
|
||||
label: 'English',
|
||||
lang: 'en',
|
||||
lang: 'en'
|
||||
},
|
||||
es: {
|
||||
label: 'Español',
|
||||
lang: 'es',
|
||||
lang: 'es'
|
||||
},
|
||||
fr: {
|
||||
label: 'Français',
|
||||
lang: 'fr',
|
||||
lang: 'fr'
|
||||
},
|
||||
pt: {
|
||||
label: 'Português',
|
||||
lang: 'pt',
|
||||
lang: 'pt'
|
||||
},
|
||||
ru: {
|
||||
label: 'Русский',
|
||||
lang: 'ru',
|
||||
},
|
||||
lang: 'ru'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
starlight({
|
||||
title: 'Angular Challenges',
|
||||
logo: {
|
||||
src: './public/angular-challenge.webp',
|
||||
alt: 'angular challenges logo',
|
||||
integrations: [starlight({
|
||||
title: 'Angular Challenges',
|
||||
logo: {
|
||||
src: './public/angular-challenge.webp',
|
||||
alt: 'angular challenges logo'
|
||||
},
|
||||
favicon: './angular-challenge.ico',
|
||||
social: {
|
||||
github: 'https://github.com/tomalaforge/angular-challenges',
|
||||
linkedin: 'https://www.linkedin.com/in/thomas-laforge-2b05a945/',
|
||||
twitter: 'https://twitter.com/laforge_toma'
|
||||
},
|
||||
customCss: ['./src/styles/custom-css.css'],
|
||||
sidebar: [{
|
||||
label: 'Guides',
|
||||
autogenerate: {
|
||||
directory: 'guides'
|
||||
},
|
||||
favicon: './angular-challenge.ico',
|
||||
social: {
|
||||
github: 'https://github.com/tomalaforge/angular-challenges',
|
||||
linkedin: 'https://www.linkedin.com/in/thomas-laforge-2b05a945/',
|
||||
twitter: 'https://twitter.com/laforge_toma',
|
||||
translations: {
|
||||
es: 'Guías',
|
||||
fr: 'Guides',
|
||||
pt: 'Guias',
|
||||
ru: 'Руководство'
|
||||
}
|
||||
},
|
||||
// {
|
||||
// label: 'Leaderboard',
|
||||
// autogenerate: {
|
||||
// directory: 'leaderboard',
|
||||
// collapsed: true
|
||||
// },
|
||||
// translations: {
|
||||
// es: 'Leaderboard',
|
||||
// fr: 'Leaderboard',
|
||||
// pt: 'Leaderboard',
|
||||
// ru: 'Leaderboard'
|
||||
// }
|
||||
// },
|
||||
{
|
||||
label: 'Challenges',
|
||||
autogenerate: {
|
||||
directory: 'challenges'
|
||||
},
|
||||
customCss: ['./src/styles/custom-css.css'],
|
||||
sidebar: [
|
||||
{
|
||||
label: 'Guides',
|
||||
autogenerate: { directory: 'guides' },
|
||||
translations: {
|
||||
es: 'Guías',
|
||||
fr: 'Guides',
|
||||
pt: 'Guias',
|
||||
ru: 'Руководство',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Challenges',
|
||||
autogenerate: { directory: 'challenges' },
|
||||
translations: {
|
||||
es: 'Desafíos',
|
||||
fr: 'Challenges',
|
||||
pt: 'Desafios',
|
||||
ru: 'Задачи',
|
||||
},
|
||||
},
|
||||
],
|
||||
head: [
|
||||
{
|
||||
tag: 'script',
|
||||
attrs: {
|
||||
src: 'https://www.googletagmanager.com/gtag/js?id=G-6BXJ62W6G5',
|
||||
async: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
tag: 'script',
|
||||
content: `
|
||||
translations: {
|
||||
es: 'Desafíos',
|
||||
fr: 'Challenges',
|
||||
pt: 'Desafios',
|
||||
ru: 'Задачи'
|
||||
}
|
||||
}],
|
||||
head: [{
|
||||
tag: 'script',
|
||||
attrs: {
|
||||
src: 'https://www.googletagmanager.com/gtag/js?id=G-6BXJ62W6G5',
|
||||
async: true
|
||||
}
|
||||
}, {
|
||||
tag: 'script',
|
||||
content: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-6BXJ62W6G5');
|
||||
`,
|
||||
},
|
||||
{
|
||||
tag: 'script',
|
||||
attrs: {
|
||||
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2438923752868254',
|
||||
async: true,
|
||||
}
|
||||
}
|
||||
],
|
||||
components: {
|
||||
MarkdownContent: './src/components/Content.astro',
|
||||
TableOfContents: './src/components/TableOfContents.astro',
|
||||
PageTitle: './src/components/PageTitle.astro',
|
||||
MobileMenuFooter: './src/components/MobileMenuFooter.astro',
|
||||
SiteTitle: './src/components/SiteTitle.astro',
|
||||
},
|
||||
defaultLocale: 'root',
|
||||
locales,
|
||||
}),
|
||||
],
|
||||
`
|
||||
}, {
|
||||
tag: 'script',
|
||||
attrs: {
|
||||
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2438923752868254',
|
||||
async: true
|
||||
}
|
||||
}],
|
||||
components: {
|
||||
MarkdownContent: './src/components/Content.astro',
|
||||
TableOfContents: './src/components/TableOfContents.astro',
|
||||
PageTitle: './src/components/PageTitle.astro',
|
||||
MobileMenuFooter: './src/components/MobileMenuFooter.astro',
|
||||
SiteTitle: './src/components/SiteTitle.astro'
|
||||
},
|
||||
defaultLocale: 'root',
|
||||
locales
|
||||
}), svelte()]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user