Skip to content

Commit

Permalink
[Docs Site] Optimize SVGs (cloudflare#17350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored Oct 7, 2024
1 parent 06d7fee commit 30b3bfd
Show file tree
Hide file tree
Showing 251 changed files with 1,006 additions and 147,818 deletions.
9 changes: 6 additions & 3 deletions astro.config.mjs → astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import starlightImageZoom from "starlight-image-zoom";
import liveCode from "astro-live-code";
import rehypeSlug from "rehype-slug";
import rehypeMermaid from "rehype-mermaid";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeAutolinkHeadings, {
type Options as rehypeAutolinkHeadingsOptions,
} from "rehype-autolink-headings";
import rehypeExternalLinks from "rehype-external-links";
import starlightLinksValidator from "starlight-links-validator";
import { h } from "hastscript";
Expand Down Expand Up @@ -55,7 +57,7 @@ const AnchorLinkIcon = h(
}),
),
);
const autolinkConfig = {
const autolinkConfig: rehypeAutolinkHeadingsOptions = {
properties: {
class: "anchor-link",
},
Expand Down Expand Up @@ -95,6 +97,7 @@ export default defineConfig({
],
rehypeSlug,
[rehypeAutolinkHeadings, autolinkConfig],
// @ts-expect-error TODO: fix types
rehypeTitleFigure,
],
},
Expand Down Expand Up @@ -214,7 +217,7 @@ export default defineConfig({
icon(),
sitemap({
serialize(item) {
item.lastmod = new Date();
item.lastmod = new Date().toISOString();
return item;
},
}),
Expand Down
Loading

0 comments on commit 30b3bfd

Please sign in to comment.