cddb07a176
build container image / cpu (push) Waiting to run
build container image / cuda (push) Waiting to run
build container image / rocm (push) Waiting to run
frontend tests / frontend-tests (push) Waiting to run
openapi checks / openapi-checks (push) Waiting to run
python tests / py3.12: macos-default (push) Waiting to run
python tests / py3.11: windows-cpu (push) Waiting to run
python tests / py3.12: windows-cpu (push) Waiting to run
python tests / py3.11: linux-cpu (push) Waiting to run
python tests / py3.12: linux-cpu (push) Waiting to run
typegen checks / typegen-checks (push) Waiting to run
uv lock checks / uv-lock-checks (push) Waiting to run
frontend checks / frontend-checks (push) Waiting to run
lfs checks / lfs-check (push) Waiting to run
python checks / python-checks (push) Waiting to run
python tests / py3.11: macos-default (push) Waiting to run
docs / deploy (push) Has been cancelled
docs / changes (push) Has been cancelled
docs / check-and-build (push) Has been cancelled
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { defineCollection } from 'astro:content';
|
|
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
|
|
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
|
|
|
|
import { changelogsLoader } from 'starlight-changelogs/loader';
|
|
|
|
export const collections = {
|
|
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
|
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
|
|
changelogs: defineCollection({
|
|
loader: changelogsLoader([
|
|
{
|
|
title: "Releases",
|
|
provider: 'github',
|
|
base: 'releases',
|
|
owner: 'invoke-ai',
|
|
repo: 'InvokeAI',
|
|
pagefind: false,
|
|
// Authenticate GitHub API requests so the release changelog loader uses
|
|
// the 5000 req/hr authenticated rate limit instead of the 60 req/hr
|
|
// unauthenticated limit (shared per CI runner IP), which causes
|
|
// intermittent "403 - rate limit exceeded" build failures. The token is
|
|
// optional, so local builds without it fall back to unauthenticated.
|
|
token: process.env.GITHUB_TOKEN,
|
|
}
|
|
]),
|
|
})
|
|
};
|