-
Notifications
You must be signed in to change notification settings - Fork 16
/
astro.config.mjs
54 lines (53 loc) · 1.64 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { defineConfig } from 'astro/config';
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
// https://astro.build/config
export default defineConfig({
integrations: [starlight({
favicon: '/favicon.ico',
title: 'Docs and Guides',
disable404Route: true,
logo: {
src: './src/assets/logo.svg',
},
components: {
Header: './src/components/Header/HeaderWithSearch.astro',
PageTitle: './src/components/PageTitleDocs/PageTitle.astro',
},
sidebar: [
{
label: 'Docs',
// Collapse the group and its autogenerated subgroups by default.
collapsed: true,
autogenerate: { directory: 'docs' },
},
{
label: 'Api',
// Collapse the group and its autogenerated subgroups by default.
collapsed: true,
autogenerate: { directory: 'api' },
},
],
customCss: [
// Relative path to your custom CSS file
'./src/layouts/colorvars.css',
],
plugins: [
// Generate the documentation.
starlightTypeDoc({
entryPoints: ['./fabric.js/fabric.ts'],
tsconfig: './fabric.js/typedoc.config.json',
typeDoc: {
plugin: ['typedoc-plugin-no-inherit'],
readme: 'none',
gitRemote: 'https://github.com/fabricjs/fabric.js/blob',
entryFileName: 'index.md',
includeVersion: true,
sourceLinkExternal: true,
sourceLinkTemplate: 'https://github.com/fabricjs/fabric.js/blob/{gitRevision}/{path}#L{line}',
},
}),
],
}), react()],
});