Skip to content

Commit 54a7db1

Browse files
committed
Getting the installation page working yay
1 parent 83f01cc commit 54a7db1

File tree

10 files changed

+376
-192
lines changed

10 files changed

+376
-192
lines changed

astro.config.mjs

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config';
2+
import { defineConfig, envField } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightUtils from '@lorenzo_lewis/starlight-utils';
55

6+
import markdoc from '@astrojs/markdoc';
7+
8+
// Fetch the latest release version from GitHub
9+
const response = await fetch(
10+
'https://api.github.com/repos/localstack/localstack/releases/latest',
11+
{
12+
headers: { Accept: 'application/vnd.github+json' },
13+
}
14+
);
15+
const data = await response.json();
16+
const latestVersion = data.tag_name.replace('v', '');
17+
618
// https://astro.build/config
719
export default defineConfig({
20+
env: {
21+
schema: {
22+
LOCALSTACK_VERSION: envField.string({
23+
context: 'server',
24+
access: 'public',
25+
default: latestVersion,
26+
optional: true,
27+
}),
28+
},
29+
},
830
integrations: [
931
starlight({
1032
title: 'LocalStack Docs',
@@ -249,14 +271,14 @@ export default defineConfig({
249271
collapsed: true,
250272
},
251273
{
252-
label: 'Capabilities',
274+
label: 'Services',
253275
collapsed: true,
254-
autogenerate: { directory: '/snowflake/capabilities' },
276+
autogenerate: { directory: '/snowflake/services' },
255277
},
256278
{
257-
label: 'Services',
279+
label: 'Capabilities',
258280
collapsed: true,
259-
autogenerate: { directory: '/snowflake/services' },
281+
autogenerate: { directory: '/snowflake/capabilities' },
260282
},
261283
{
262284
label: 'Tooling',
@@ -281,5 +303,6 @@ export default defineConfig({
281303
},
282304
],
283305
}),
306+
markdoc(),
284307
],
285308
});

markdoc.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineMarkdocConfig } from '@astrojs/markdoc/config';
2+
import starlightMarkdoc from '@astrojs/starlight-markdoc';
3+
4+
export default defineMarkdocConfig({
5+
extends: [starlightMarkdoc()],
6+
});

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13+
"@astrojs/markdoc": "^0.14.2",
1314
"@astrojs/starlight": "^0.34.0",
15+
"@astrojs/starlight-markdoc": "^0.4.0",
1416
"@lorenzo_lewis/starlight-utils": "^0.3.2",
1517
"astro": "^5.7.3",
1618
"sharp": "^0.32.5"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ To learn more about these configuration options, see [DNS Server]({{< ref "dns-s
434434
| Variable | Example Values | Description |
435435
|----------------------|----------------|-------------|
436436
| `ACTIVATE_PRO` | `0` \| `1`&nbsp;(default) | Whether Pro should be activated or not. This is set to true by default if using the `localstack/localstack-pro` container image. If set to `1`, LocalStack will fail to start if the license key activation did not work. If set to `0`, an attempt is made to start LocalStack without Pro features. |
437-
| `LOCALSTACK_AUTH_TOKEN` | | [Auth token]({{< ref "auth-token" >}}) to activate LocalStack Pro. |
437+
| `LOCALSTACK_AUTH_TOKEN` | | [Auth token](/aws/getting-started/auth-token) to activate LocalStack Pro. |
438438
| `LOCALSTACK_API_KEY` | | **Deprecated since 3.0.0** [API key]({{< ref "api-key" >}}) to activate LocalStack Pro.<br/> **Use the `LOCALSTACK_AUTH_TOKEN` instead (except for [CI environments]({{< ref "user-guide/ci/" >}})).** |
439439
| `LOG_LICENSE_ISSUES` | `0` \| `1`&nbsp;(default) | Whether to log issues with the license activation to the console. |
440440

src/content/docs/aws/capabilities/networking/accessing-resources-created.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar:
99
If you have created a resource using LocalStack, such as an OpenSearch cluster or RDS database, you may need to access it from your application.
1010
Typically, these resources are accessible through a URL or a hostname provided by LocalStack.
1111
By default, LocalStack returns the hostname `localhost.localstack.cloud`, which resolves to LocalStack using DNS.
12-
For special environments (e.g., proxies), the [configuration]({{< ref "configuration" >}}) `LOCALSTACK_HOST` customizes the URLs returned by LocalStack.
12+
For special environments (e.g., proxies), the [configuration](/aws/capabilities/config/configuration) `LOCALSTACK_HOST` customizes the URLs returned by LocalStack.
1313
This guide will explore different scenarios and provide detailed instructions on accessing resources created by LocalStack under different scenarios.
1414

1515
## From your host

src/content/docs/aws/getting-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ LocalStack supports a growing number of [AWS services]({{< ref "aws" >}}), like
1717
You can find a comprehensive list of supported APIs on our [Feature Coverage]({{< ref "references/coverage" >}}) page.
1818

1919
LocalStack also provides additional features to make your life as a cloud developer easier!
20-
Check out LocalStack's [Cloud Developer Tools]({{< ref "user-guide/tools" >}}).
20+
Check out LocalStack's [Cloud Developer Tools](/aws/tooling/).

0 commit comments

Comments
 (0)