Skip to content

Commit 138c0a1

Browse files
authored
Merge branch 'master' into image-zoom
2 parents 296b6b1 + e5dac7d commit 138c0a1

File tree

142 files changed

+493
-417
lines changed

Some content is hidden

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

142 files changed

+493
-417
lines changed

astro.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import starlightUtils from '@lorenzo_lewis/starlight-utils';
55
import starlightDocSearch from '@astrojs/starlight-docsearch';
66
import starlightLinksValidator from 'starlight-links-validator'
77
import starlightImageZoom from 'starlight-image-zoom'
8+
import sitemap from '@astrojs/sitemap';
9+
import starlightFullViewMode from 'starlight-fullview-mode'
10+
import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer'
811

912
import markdoc from '@astrojs/markdoc';
1013

@@ -24,6 +27,7 @@ const latestVersion = data.tag_name.replace('v', '');
2427

2528
// https://astro.build/config
2629
export default defineConfig({
30+
site: 'https://docs.localstack.cloud',
2731
env: {
2832
schema: {
2933
LOCALSTACK_VERSION: envField.string({
@@ -40,10 +44,20 @@ export default defineConfig({
4044
title: 'Docs',
4145
favicon: '/images/favicons/favicon.ico',
4246
customCss: ['./src/styles/global.css'],
47+
editLink: {
48+
baseUrl: 'https://github.com/localstack/localstack-docs/edit/master/',
49+
},
4350
components: {
4451
PageTitle: './src/components/PageTitleWithBadges.astro',
4552
},
4653
head: [
54+
{
55+
tag: 'link',
56+
attrs: {
57+
rel: 'sitemap',
58+
href: '/sitemap-index.xml',
59+
},
60+
},
4761
{
4862
tag: 'script',
4963
content: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]); posthog.init('phc_6bea9iRqN9iwiwf5aM3dVXrKmAQGGMahouBRMIyQfnE', { api_host: 'https://us.i.posthog.com', person_profiles: 'always' });`,
@@ -98,6 +112,12 @@ export default defineConfig({
98112
starlightImageZoom({
99113
showCaptions: true,
100114
}),
115+
starlightTocOverviewCustomizer({
116+
overviewTitle: "Back to top",
117+
}),
118+
starlightFullViewMode({
119+
leftSidebarEnabled: false,
120+
}),
101121
starlightLinksValidator({
102122
errorOnRelativeLinks: false,
103123
errorOnLocalLinks: false,
@@ -407,6 +427,7 @@ export default defineConfig({
407427
}),
408428
markdoc(),
409429
react(),
430+
sitemap(),
410431
],
411432

412433
vite: {

package-lock.json

Lines changed: 44 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/markdoc": "^0.14.2",
1414
"@astrojs/react": "^4.2.7",
15+
"@astrojs/sitemap": "^3.4.1",
1516
"@astrojs/starlight": "^0.34.0",
1617
"@astrojs/starlight-docsearch": "^0.6.0",
1718
"@astrojs/starlight-markdoc": "^0.4.0",
@@ -30,7 +31,9 @@
3031
"react-dom": "^19.1.0",
3132
"sharp": "^0.32.5",
3233
"starlight-image-zoom": "^0.12.0",
34+
"starlight-fullview-mode": "^0.2.3",
3335
"starlight-links-validator": "^0.17.0",
36+
"starlight-toc-overview-customizer": "^0.1.0",
3437
"tailwind-merge": "^3.2.0",
3538
"tailwindcss": "^4.1.6"
3639
},

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://docs.localstack.cloud/sitemap-index.xml

src/content/docs/aws/capabilities/chaos-engineering/chaos-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ When active, rules are evaluated sequentially on every request to LocalStack unt
4949

5050
The schema for the configuration is as follows.
5151

52-
```json
52+
```json showshowLineNumbers
5353
[
5454
{
5555
"region": "(str) Region name, e.g. 'ap-south-1'. If omitted, all regions are affected.",

src/content/docs/aws/capabilities/config/podman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ podman machine set --rootful
101101
For the Docker Compose setup, use the following configuration.
102102
When running in rootless mode, ensure to comment out the HTTPS gateway port, as it is unable to bind to privileged ports below 1024.
103103

104-
```yaml
104+
```yaml showshowLineNumbers
105105
services:
106106
localstack:
107107
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

src/content/docs/aws/capabilities/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Capabilities
33
description: This section describes the capabilities of LocalStack, that go beyond the core cloud service emulation, and provide additional features and capabilities for LocalStack users.
44
template: doc
5+
editUrl: false
56
sidebar:
67
order: 5
78
---

src/content/docs/aws/capabilities/networking/accessing-endpoint-url.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ docker run --rm -it --dns 172.27.0.2 --network ls <arguments> <image name>
130130
```
131131
</TabItem>
132132
<TabItem label="docker-compose.yml">
133-
```yaml
133+
```yaml showshowLineNumbers
134134
services:
135135
localstack:
136136
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
@@ -200,7 +200,7 @@ docker run --rm it --network my-network <image name>
200200
```
201201
</TabItem>
202202
<TabItem label="docker-compose.yml">
203-
```yaml
203+
```yaml showshowLineNumbers
204204
services:
205205
localstack:
206206
# other configuration here

src/content/docs/aws/capabilities/networking/external-port-range.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ GATEWAY_LISTEN=0.0.0.0:4766 EXTERNAL_SERVICE_PORTS_START=4710 EXTERNAL_SERVICE_P
5252
```
5353
</TabItem>
5454
<TabItem label="docker-compose">
55-
```yaml
55+
```yaml showshowLineNumbers
5656
services:
5757
localstack-main-1:
5858
container_name: localstack-main-1

src/content/docs/aws/capabilities/security-testing/custom-tls-certificates.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you run LocalStack in a docker container (which includes using [the CLI](/aws
3434

3535
Create a `Dockerfile` containing the following commands:
3636

37-
```yaml
37+
```yaml showshowLineNumbers
3838
FROM localstack/localstack:latest
3939
# or if using the pro image:
4040
FROM localstack/localstack-pro:latest
@@ -74,7 +74,7 @@ docker run <docker arguments> <image name>
7474
```
7575
</TabItem>
7676
<TabItem label="docker-compose.yml">
77-
```yaml
77+
```yaml showshowLineNumbers
7878
services:
7979
localstack:
8080
image: <image name>

0 commit comments

Comments
 (0)