From c87bdca1626d348ecb6454824948dd4558cb4a84 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 25 Sep 2024 22:44:03 +0000 Subject: [PATCH] Sort directory links; update blog metadata and descriptions --- docs/src/components/DirectoryLinks.astro | 1 + ...c-web-page-content-analysis-with-genaiscript-.md | 13 +++++++------ .../automate-git-commit-messages-with-genai.md | 7 +++++-- .../docs/blog/drafts/code-review-with-genai.md | 7 +++++-- .../src/content/docs/blog/search-transform-genai.md | 7 +++++-- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/docs/src/components/DirectoryLinks.astro b/docs/src/components/DirectoryLinks.astro index 1566aeecb9..7137420f36 100644 --- a/docs/src/components/DirectoryLinks.astro +++ b/docs/src/components/DirectoryLinks.astro @@ -10,6 +10,7 @@ const { directory } = Astro.props const pages = ( await getCollection("docs", (entry) => entry.id.startsWith(directory + "/")) ).filter(({ slug }) => slug !== directory) +.sort((a, b) => (a.data.sidebar.order ?? 0) - (b.data.sidebar.order ?? 0)) ---