Skip to content

Commit 441f62f

Browse files
committed
Merge branch 'tutorials-page' of https://github.com/localstack/localstack-docs into tutorials-page
2 parents c2a01f6 + ce03ff4 commit 441f62f

File tree

81 files changed

+1084
-347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1084
-347
lines changed

astro.config.mjs

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import { defineConfig, envField } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightUtils from '@lorenzo_lewis/starlight-utils';
5+
import starlightDocSearch from '@astrojs/starlight-docsearch';
6+
import starlightLinksValidator from 'starlight-links-validator'
57

68
import markdoc from '@astrojs/markdoc';
79

@@ -34,16 +36,61 @@ export default defineConfig({
3436

3537
integrations: [
3638
starlight({
37-
title: 'LocalStack Docs',
39+
title: 'Docs',
40+
favicon: '/images/favicons/favicon.ico',
3841
customCss: ['./src/styles/global.css'],
42+
head: [
43+
{
44+
tag: 'script',
45+
attrs: {
46+
type: 'text/javascript',
47+
id: 'hs-script-loader',
48+
async: true,
49+
defer: true,
50+
src: '//js-eu1.hs-scripts.com/26596507.js',
51+
},
52+
},
53+
{
54+
tag: 'script',
55+
attrs: {
56+
async: true,
57+
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
58+
'data-website-id': '3dfbd0ac-9e56-4664-8315-032e17917ab6',
59+
'data-project-name': 'LocalStack',
60+
'data-project-color': '#281763',
61+
'data-project-logo': 'https://avatars.githubusercontent.com/u/28732122?s=280&v=4',
62+
'data-user-analytics-fingerprint-enabled': 'true',
63+
'data-modal-disclaimer': 'This is a custom LocalStack LLM to help you find the information you need by searching across all LocalStack documentation. Give it a try and let us know what you think!',
64+
},
65+
},
66+
],
3967
social: [
4068
{
4169
icon: 'github',
4270
label: 'GitHub',
43-
href: 'https://github.com/withastro/starlight',
71+
href: 'https://github.com/localstack/localstack',
72+
},
73+
{
74+
icon: 'linkedin',
75+
label: 'LinkedIn',
76+
href: 'https://www.linkedin.com/company/localstack-cloud/',
77+
},
78+
{
79+
icon: 'youtube',
80+
label: 'YouTube',
81+
href: 'https://www.youtube.com/@localstack',
4482
},
4583
],
84+
logo: {
85+
light: './src/assets/Logo_Light.svg',
86+
dark: './src/assets/Logo_Dark.svg',
87+
alt: 'LocalStack',
88+
},
4689
plugins: [
90+
starlightLinksValidator({
91+
errorOnRelativeLinks: false,
92+
errorOnLocalLinks: false,
93+
}),
4794
starlightUtils({
4895
multiSidebar: {
4996
switcherStyle: 'dropdown',
@@ -52,6 +99,11 @@ export default defineConfig({
5299
leading: { useSidebarLabelled: 'TopNav' },
53100
},
54101
}),
102+
starlightDocSearch({
103+
appId: 'XBW1JU7CW5',
104+
apiKey: '6b0341e2f50196d328d088dbb5cd6166',
105+
indexName: 'localstack',
106+
}),
55107
],
56108
sidebar: [
57109
{
@@ -76,7 +128,7 @@ export default defineConfig({
76128
},
77129
{
78130
label: 'Local AWS Services',
79-
slug: 'aws/aws-services',
131+
slug: 'aws/services',
80132
},
81133
{
82134
label: 'Sample Apps',

ec.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers';
2+
3+
/** @type {import('@astrojs/starlight/expressive-code').StarlightExpressiveCodeOptions} */
4+
export default {
5+
plugins: [pluginLineNumbers()],
6+
defaultProps: {
7+
showLineNumbers: false,
8+
},
9+
};

0 commit comments

Comments
 (0)