Skip to content

Commit 30b3bfd

Browse files
authored
[Docs Site] Optimize SVGs (#17350)
1 parent 06d7fee commit 30b3bfd

File tree

251 files changed

+1006
-147818
lines changed

Some content is hidden

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

251 files changed

+1006
-147818
lines changed

astro.config.mjs renamed to astro.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import starlightImageZoom from "starlight-image-zoom";
66
import liveCode from "astro-live-code";
77
import rehypeSlug from "rehype-slug";
88
import rehypeMermaid from "rehype-mermaid";
9-
import rehypeAutolinkHeadings from "rehype-autolink-headings";
9+
import rehypeAutolinkHeadings, {
10+
type Options as rehypeAutolinkHeadingsOptions,
11+
} from "rehype-autolink-headings";
1012
import rehypeExternalLinks from "rehype-external-links";
1113
import starlightLinksValidator from "starlight-links-validator";
1214
import { h } from "hastscript";
@@ -55,7 +57,7 @@ const AnchorLinkIcon = h(
5557
}),
5658
),
5759
);
58-
const autolinkConfig = {
60+
const autolinkConfig: rehypeAutolinkHeadingsOptions = {
5961
properties: {
6062
class: "anchor-link",
6163
},
@@ -95,6 +97,7 @@ export default defineConfig({
9597
],
9698
rehypeSlug,
9799
[rehypeAutolinkHeadings, autolinkConfig],
100+
// @ts-expect-error TODO: fix types
98101
rehypeTitleFigure,
99102
],
100103
},
@@ -214,7 +217,7 @@ export default defineConfig({
214217
icon(),
215218
sitemap({
216219
serialize(item) {
217-
item.lastmod = new Date();
220+
item.lastmod = new Date().toISOString();
218221
return item;
219222
},
220223
}),

0 commit comments

Comments
 (0)