Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';

export const locales = {
root: {
Expand Down Expand Up @@ -40,17 +40,15 @@ export default defineConfig({
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'
},
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/tomalaforge/angular-challenges' },
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://www.linkedin.com/in/thomas-laforge-2b05a945/' },
{ icon: 'x.com', label: 'X (Twitter)', href: 'https://twitter.com/laforge_toma' }
],
customCss: ['./src/styles/custom-css.css'],
sidebar: [{
label: 'Guides',
autogenerate: {
directory: 'guides'
},
items: [{ autogenerate: { directory: 'guides' } }],
translations: {
es: 'Guías',
fr: 'Guides',
Expand All @@ -59,12 +57,9 @@ export default defineConfig({
'zh-CN': '指南'
}
},
{
{
label: 'Leaderboard',
autogenerate: {
directory: 'leaderboard',
collapsed: true
},
items: [{ autogenerate: { directory: 'leaderboard', collapsed: true } }],
translations: {
es: 'Leaderboard',
fr: 'Leaderboard',
Expand All @@ -75,9 +70,7 @@ export default defineConfig({
},
{
label: 'Challenges',
autogenerate: {
directory: 'challenges'
},
items: [{ autogenerate: { directory: 'challenges' } }],
translations: {
es: 'Desafíos',
fr: 'Challenges',
Expand Down Expand Up @@ -119,6 +112,6 @@ export default defineConfig({
defaultLocale: 'root',
locales
}), svelte()],
output: "hybrid",
adapter: vercel()
output: "server",
adapter: vercel({ imageService: true })
});
16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
},
"packageManager": "pnpm@10.23.0",
"dependencies": {
"@astrojs/starlight": "^0.15.1",
"@astrojs/svelte": "^5.2.0",
"@astrojs/vercel": "^7.5.0",
"@fontsource/ibm-plex-serif": "^5.0.8",
"astro": "^4.0.0",
"sharp": "^0.32.5",
"svelte": "^4.2.12",
"typescript": "^5.4.3"
"@astrojs/starlight": "^0.41.7",
"@astrojs/svelte": "^9.0.1",
"@astrojs/vercel": "11.0.5",
"@fontsource/ibm-plex-serif": "^5.3.0",
"astro": "^7.2.2",
"sharp": "^0.35.3",
"svelte": "^5.56.9",
"typescript": "^5"
}
}
Loading
Loading