-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
93 lines (92 loc) · 2.65 KB
/
Copy pathastro.config.mjs
File metadata and controls
93 lines (92 loc) · 2.65 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
integrations: [
starlight({
title: 'ResourceLoader.js',
description: 'A lightweight, zero-dependency JavaScript library for dynamically loading any resource type in the browser.',
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/peterbenoit/ResourceLoader.js' },
],
components: {
Footer: './src/components/Footer.astro',
},
customCss: [
// Load custom styles if available
'./src/styles/custom.css',
],
head: [
{
tag: 'script',
attrs: {
src: '/resourceLoader.js',
defer: true,
}
},
{
tag: 'meta',
attrs: {
name: 'author',
content: 'Peter Benoit',
}
},
{
tag: 'meta',
attrs: {
name: 'twitter:creator',
content: '@peterbenoit',
}
},
{
tag: 'meta',
attrs: {
property: 'og:type',
content: 'website',
}
}
],
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'Installation', link: '/getting-started/installation/' },
{ label: 'Quick Start', link: '/getting-started/quick-start/' },
],
},
{
label: 'Guides',
items: [
{ label: 'Loading Scripts & CSS', link: '/guides/loading-scripts-and-css/' },
{ label: 'Loading JSON', link: '/guides/loading-json/' },
{ label: 'Loading Media & Files', link: '/guides/loading-media-and-files/' },
{ label: 'Concurrency & Priority', link: '/guides/concurrency-and-priority/' },
{ label: 'Retries & Timeouts', link: '/guides/retries-and-timeouts/' },
{ label: 'Cache Busting', link: '/guides/cache-busting/' },
{ label: 'Error Handling', link: '/guides/error-handling/' },
],
},
{
label: 'API Reference',
items: [
{ label: 'include()', link: '/api/include/' },
{ label: 'cancelResource()', link: '/api/cancel-resource/' },
{ label: 'cancelAll()', link: '/api/cancel-all/' },
{ label: 'unloadResource()', link: '/api/unload-resource/' },
{ label: 'getResourceState()', link: '/api/get-resource-state/' },
{ label: 'setLoggingLevel()', link: '/api/set-logging-level/' },
],
},
{
label: 'Reference',
items: [
{ label: 'Options Object', link: '/reference/options/' },
{ label: 'Supported Types', link: '/reference/supported-types/' },
{ label: 'Error Types', link: '/reference/error-types/' },
{ label: 'Changelog', link: '/reference/changelog/' },
{ label: 'Contributing', link: '/reference/contributing/' },
],
},
],
}),
],
});