-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to latest astro and starlight
Adding expressive code package
- Loading branch information
1 parent
de92050
commit 942112d
Showing
3 changed files
with
162 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()] | ||
}); |
Oops, something went wrong.