From 432862a253cf7723787ac4adda2a803770b27958 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sat, 23 Nov 2024 19:20:13 -0500 Subject: [PATCH] feat: v0.0.1 docs --- src/layouts/NewDocsLayout.astro | 49 +++++++++---- src/pages/en/v0.0.1/learn/index.mdx | 103 +++++++++++++++++++++++++++- 2 files changed, 135 insertions(+), 17 deletions(-) diff --git a/src/layouts/NewDocsLayout.astro b/src/layouts/NewDocsLayout.astro index 99099cb..741c40a 100644 --- a/src/layouts/NewDocsLayout.astro +++ b/src/layouts/NewDocsLayout.astro @@ -52,7 +52,9 @@ const posts_2 = posts // being `/spec/ast/tokens` would be `/ast/tokens` path: post.url.substring(base_len), })) - .sort((p1, p2) => (p1.frontmatter.order > p2.frontmatter.order ? 1 : -1)); + .sort((p1, p2) => + p1.frontmatter.order > p2.frontmatter.order ? 1 : -1, + ); // build a hierarchy of the files const second_level: Record> = { @@ -117,7 +119,7 @@ const rc = url_components[1] ?? ""; --- - +
-
@@ -186,7 +203,9 @@ const rc = url_components[1] ?? ""; class="lg:pt-12 hidden lg:block pt-4 max-h-screen overflow-x-scroll sticky top-0" >