Skip to content

Commit

Permalink
Upgrade to latest astro and starlight
Browse files Browse the repository at this point in the history
Adding expressive code package
  • Loading branch information
jamiefolsom committed May 15, 2024
1 parent de92050 commit 942112d
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 180 deletions.
68 changes: 35 additions & 33 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';

import expressiveCode from "astro-expressive-code";

// https://astro.build/config
export default defineConfig({
site: 'https://recogito.github.io/',
integrations: [
starlight({
title: 'Recogito v4.0.0',
defaultLocale: 'root', // optional
locales: {
root: {
label: 'English',
lang: 'en', // lang is required for root locales
},
},
logo: {
src: './src/assets/logo.svg',
},
social: {
github: 'https://github.com/recogito/',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', link: '/guides/example/' },
],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
}),
],
});
site: 'https://recogito.github.io/',
integrations: [starlight({
title: 'Recogito v4.0.0',
defaultLocale: 'root',
// optional
locales: {
root: {
label: 'English',
lang: 'en' // lang is required for root locales
}
},
logo: {
src: './src/assets/logo.svg'
},
social: {
github: 'https://github.com/recogito/'
},
sidebar: [{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Example Guide',
link: '/guides/example/'
}]
}, {
label: 'Reference',
autogenerate: {
directory: 'reference'
}
}]
}), expressiveCode()]
});
Loading

0 comments on commit 942112d

Please sign in to comment.