From 543dffd3d2da4c53ad4b86a11b623d917c9a27c0 Mon Sep 17 00:00:00 2001 From: MicroBlock <66859419+std-microblock@users.noreply.github.com> Date: Tue, 2 Dec 2025 13:21:48 +0800 Subject: [PATCH 01/11] feat(RevisionBlock): replace `dir="v"` to `vertical` attribute --- src/components/revision/RevisionBlock.astro | 10 ++---- src/content/docs/c/library/headers/index.mdx | 34 +++++++++---------- .../docs/c/library/strings/byte/memcpy.mdx | 8 ++--- .../docs/cpp/library/utilities/move.mdx | 6 ++-- .../docs/development/guide/doc-everything.mdx | 6 ++-- .../docs/development/guide/revision.mdx | 6 ++-- 6 files changed, 33 insertions(+), 37 deletions(-) diff --git a/src/components/revision/RevisionBlock.astro b/src/components/revision/RevisionBlock.astro index d85400a1..8b1e0737 100644 --- a/src/components/revision/RevisionBlock.astro +++ b/src/components/revision/RevisionBlock.astro @@ -3,18 +3,14 @@ import RevisionTags from "./RevisionTags.astro"; import { autoRev } from "."; import type { RevisionInfo } from "./types"; -type LayoutDirection = "h" | "v"; - interface Props extends RevisionInfo { noborder?: boolean; - dir?: LayoutDirection; + vertical?: boolean; } const { since, until, noborder } = Astro.props; -const dir = Astro.props.dir ?? "h"; - -const horizontal = dir === "h"; -const vertical = dir === "v"; +const vertical = Astro.props.vertical ?? false; +const horizontal = !vertical; ---
- + Complex number arithmetic @@ -41,7 +41,7 @@ The interface of C standard library is defined by the following collection of he - + Floating-point environment @@ -53,14 +53,14 @@ The interface of C standard library is defined by the following collection of he - + Format conversion of integer types - + Alternative operator spellings @@ -96,7 +96,7 @@ The interface of C standard library is defined by the following collection of he slot="item" noborder since="C11" - dir="v" + vertical traits={[ { trait: "deprecated", since: "C23" } ]} > @@ -110,14 +110,14 @@ The interface of C standard library is defined by the following collection of he - + Atomic operations - + Macros to work with the byte and bit representations of types @@ -128,7 +128,7 @@ The interface of C standard library is defined by the following collection of he slot="item" noborder since="C99" - dir="v" + vertical traits={[ { trait: "deprecated", since: "C23" } ]} > @@ -137,7 +137,7 @@ The interface of C standard library is defined by the following collection of he - + Macros for performing checked integer arithmetic @@ -149,7 +149,7 @@ The interface of C standard library is defined by the following collection of he - + Fixed-width integer types @@ -166,7 +166,7 @@ The interface of C standard library is defined by the following collection of he - + Text transcode @@ -177,7 +177,7 @@ The interface of C standard library is defined by the following collection of he slot="item" noborder since="C11" - dir="v" + vertical traits={[ { trait: "deprecated", since: "C23" } ]} > @@ -191,14 +191,14 @@ The interface of C standard library is defined by the following collection of he - + Type-generic math (macros wrapping and ) - + Thread library @@ -210,21 +210,21 @@ The interface of C standard library is defined by the following collection of he - + UTF-16 and UTF-32 character utilities - + Extended multibyte and wide character utilities - + Functions to determine the type contained in wide character data diff --git a/src/content/docs/c/library/strings/byte/memcpy.mdx b/src/content/docs/c/library/strings/byte/memcpy.mdx index 15739244..894fd31c 100644 --- a/src/content/docs/c/library/strings/byte/memcpy.mdx +++ b/src/content/docs/c/library/strings/byte/memcpy.mdx @@ -161,7 +161,7 @@ dst = "\0\0\0\0\0yxyxy", r = 22 - `memccpy` + `memccpy` copies one buffer to another, stopping after the specified delimiter @@ -171,17 +171,17 @@ dst = "\0\0\0\0\0yxyxy", r = 22 `memmove` - `memmove_s` + `memmove_s` moves one buffer to another - `wmemcpy` + `wmemcpy` - `wmemcpy_s` + `wmemcpy_s` copies a certain amount of wide characters between two non-overlapping arrays diff --git a/src/content/docs/cpp/library/utilities/move.mdx b/src/content/docs/cpp/library/utilities/move.mdx index 328c93e4..40755f21 100644 --- a/src/content/docs/cpp/library/utilities/move.mdx +++ b/src/content/docs/cpp/library/utilities/move.mdx @@ -133,21 +133,21 @@ The contents of the vector are {"Salut", "Salut"} - `forward` + `forward` forwards a function argument and use the type template argument to preserve its value category - `move_if_noexcept` + `move_if_noexcept` converts the argument to an xvalue if the move constructor does not throw - `move` + `move` moves a range of elements to a new location diff --git a/src/content/docs/development/guide/doc-everything.mdx b/src/content/docs/development/guide/doc-everything.mdx index 41f4d45c..d0a51697 100644 --- a/src/content/docs/development/guide/doc-everything.mdx +++ b/src/content/docs/development/guide/doc-everything.mdx @@ -201,7 +201,7 @@ import { RevisionBlock } from "@components/revision"; - + Complex number arithmetic @@ -222,7 +222,7 @@ import { RevisionBlock } from "@components/revision"; - + Complex number arithmetic @@ -236,7 +236,7 @@ import { RevisionBlock } from "@components/revision"; -The `DocLink` component allows you to render an inline link to the page associated with the specified doc key. +The `DocLink` component allows you to render an inline link to the page associated with the specified doc key. You can also specify the destination page by its absolute path. ```mdx import DocLink from "@components/DocLink.astro"; Check out -this page +this page +for more information about `std::move`. + +Check out +this page for more information about `std::move`. ``` - Check out this page for detailed information about `std::move`. + Check out this page for detailed information about `std::move`. + + Check out this page for more information about `std::move`.