Skip to content

Commit 416bd97

Browse files
authored
Merge branch 'production' into browser-rendering-more-more-more
2 parents 6423087 + 33911b5 commit 416bd97

File tree

231 files changed

+3808
-4182
lines changed

Some content is hidden

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

231 files changed

+3808
-4182
lines changed

.github/styles/config/vocabularies/cloudflare/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cloudflared
77
Datadog
88
GitHub
99
GitLab
10+
HashiCorp
1011
Hono
1112
HTTP
1213
HTTPS

astro.config.ts

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,35 @@ import starlightLinksValidator from "starlight-links-validator";
88
import icon from "astro-icon";
99
import sitemap from "@astrojs/sitemap";
1010
import react from "@astrojs/react";
11+
import { readdir } from "fs/promises";
1112

1213
import rehypeTitleFigure from "rehype-title-figure";
1314
import rehypeMermaid from "./src/plugins/rehype/mermaid.ts";
1415
import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
1516
import rehypeExternalLinks from "./src/plugins/rehype/external-links.ts";
1617
import rehypeHeadingSlugs from "./src/plugins/rehype/heading-slugs.ts";
18+
import { fileURLToPath } from "url";
1719

18-
import { sidebar } from "./src/util/sidebar.ts";
20+
async function autogenSections() {
21+
const sections = (
22+
await readdir("./src/content/docs/", {
23+
withFileTypes: true,
24+
})
25+
)
26+
.filter((x) => x.isDirectory())
27+
.map((x) => x.name);
28+
return sections.map((x) => {
29+
return {
30+
label: x,
31+
autogenerate: {
32+
directory: x,
33+
collapsed: true,
34+
},
35+
};
36+
});
37+
}
38+
39+
const sidebar = await autogenSections();
1940

2041
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
2142

@@ -35,8 +56,6 @@ export default defineConfig({
3556
},
3657
experimental: {
3758
contentIntellisense: true,
38-
contentLayer: true,
39-
directRenderScript: true,
4059
},
4160
server: {
4261
port: 1111,
@@ -70,13 +89,10 @@ export default defineConfig({
7089
Footer: "./src/components/overrides/Footer.astro",
7190
Head: "./src/components/overrides/Head.astro",
7291
Hero: "./src/components/overrides/Hero.astro",
73-
LastUpdated: "./src/components/overrides/LastUpdated.astro",
7492
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
7593
Sidebar: "./src/components/overrides/Sidebar.astro",
76-
PageSidebar: "./src/components/overrides/PageSidebar.astro",
7794
PageTitle: "./src/components/overrides/PageTitle.astro",
7895
SocialIcons: "./src/components/overrides/SocialIcons.astro",
79-
SkipLink: "./src/components/overrides/SkipLink.astro",
8096
TableOfContents: "./src/components/overrides/TableOfContents.astro",
8197
},
8298
sidebar,
@@ -149,4 +165,16 @@ export default defineConfig({
149165
}),
150166
react(),
151167
],
168+
vite: {
169+
resolve: {
170+
alias: {
171+
"./Page.astro": fileURLToPath(
172+
new URL("./src/components/overrides/Page.astro", import.meta.url),
173+
),
174+
"../components/Page.astro": fileURLToPath(
175+
new URL("./src/components/overrides/Page.astro", import.meta.url),
176+
),
177+
},
178+
},
179+
},
152180
});

0 commit comments

Comments
 (0)