Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import starlightDocSearch from "@astrojs/starlight-docsearch";
import starlightImageZoom from "starlight-image-zoom";
import liveCode from "astro-live-code";
Expand Down Expand Up @@ -45,7 +44,8 @@ async function autogenStyles() {
})
)
.filter((x) => x.isFile())
.map((x) => x.parentPath + x.name);
.map((x) => x.parentPath + x.name)
.sort((a) => (a === "./src/styles/tailwind.css" ? -1 : 1));

return styles;
}
Expand Down Expand Up @@ -90,11 +90,19 @@ export default defineConfig({
src: "./src/assets/logo.svg",
},
favicon: "/favicon.png",
social: {
github: "https://github.com/cloudflare/cloudflare-docs",
"x.com": "https://x.com/cloudflare",
youtube: "https://www.youtube.com/cloudflare",
},
social: [
{
label: "GitHub",
icon: "github",
href: "https://github.com/cloudflare/cloudflare-docs",
},
{ label: "X.com", icon: "x.com", href: "https://x.com/cloudflare" },
{
label: "YouTube",
icon: "youtube",
href: "https://www.youtube.com/cloudflare",
},
],
editLink: {
baseUrl:
"https://github.com/cloudflare/cloudflare-docs/edit/production/",
Expand Down Expand Up @@ -143,9 +151,9 @@ export default defineConfig({
starlightImageZoom(),
],
lastUpdated: true,
}),
tailwind({
applyBaseStyles: false,
markdown: {
headingLinks: false,
},
}),
liveCode({}),
icon(),
Expand Down
Loading
Loading