diff --git a/@l10n/ja/docs/concepts/accounts/multi-signing.md b/@l10n/ja/docs/concepts/accounts/multi-signing.md index a5273fc182..c29c22cf88 100644 --- a/@l10n/ja/docs/concepts/accounts/multi-signing.md +++ b/@l10n/ja/docs/concepts/accounts/multi-signing.md @@ -24,7 +24,7 @@ labels: [SignerListSetトランザクション][]は、_署名者リスト_(自分のアドレスからのトランザクションを承認できるアドレスのセット)を定義します。署名者リストには、1~32のアドレスを含めることができます。このリストには、自分のアドレスを含めることはできず、重複して登録することはできません。リストの _Signer Weight_ と _Quorum_ の設定を使用することで、どのような組み合わせでどれだけの署名が必要かを制御することができます。 -_([ExpandedSignerList amendment][]により更新されました。)_ +{% amendment-disclaimer name="ExpandedSignerList" mode="updated" /%} ### Signer Weight diff --git a/@l10n/ja/translations.yaml b/@l10n/ja/translations.yaml index 4dc6d13499..37be36ab77 100644 --- a/@l10n/ja/translations.yaml +++ b/@l10n/ja/translations.yaml @@ -143,6 +143,8 @@ component.amendment-status.requires.1: " " component.amendment-status.requires.2: が必要です。 component.amendment-status.added.1: " " component.amendment-status.added.2: により追加されました。 +component.amendment-status.updated.1: " " +component.amendment-status.updated.2: により更新されました。 # Amendment tracker translations amendment.loading: ロード中Amendments... diff --git a/@theme/components/Amendments.tsx b/@theme/components/Amendments.tsx index b7a3fc914d..d4205a9484 100644 --- a/@theme/components/Amendments.tsx +++ b/@theme/components/Amendments.tsx @@ -226,7 +226,8 @@ function AmendmentBadge(props: { amendment: Amendment }) { export function AmendmentDisclaimer(props: { name: string, - compact: boolean + compact: boolean, + mode: string }) { const [amendmentStatus, setStatus] = React.useState(null) const [loading, setLoading] = React.useState(true) @@ -310,6 +311,30 @@ export function AmendmentDisclaimer(props: { ) } + + if (props.mode === "updated") { + return ( +

( + { + amendmentStatus.date ? ( + <> + {translate("component.amendment-status.updated.1", "Updated by the ")}{link()} + {translate("component.amendment-status.updated.2", ".")} + {" "} + + + ) : ( + <> + {translate("component.amendment-status.updates.1", "The ")}{link()} + {translate("component.amendment-status.updates.2", "updates this.")} + {" "} + + + ) + } + )

+ ) + } return (

( diff --git a/@theme/markdoc/schema.ts b/@theme/markdoc/schema.ts index 6e4b253961..c053d8a2c5 100644 --- a/@theme/markdoc/schema.ts +++ b/@theme/markdoc/schema.ts @@ -233,6 +233,11 @@ export const amendmentDisclaimer: Schema & { tagName: string } = { type: 'Boolean', required: false, default: false + }, + mode: { + type: 'String', + required: false, + default: '' // empty string for "Requires ... / Added by ..." } }, render: 'AmendmentDisclaimer', diff --git a/@theme/styles.css b/@theme/styles.css index 90b191b92d..adfacca469 100644 --- a/@theme/styles.css +++ b/@theme/styles.css @@ -342,6 +342,12 @@ ul.nav.navbar-nav { [data-component-name="Markdown/Markdown"] { --md-table-font-size: 14px; + --md-table-line-height: 1.5; +} + +[data-component-name="Markdown/Markdown"] td p { + font-size: var(--md-table-font-size); + line-height: var(--md-table-line-height); } @media screen and (min-width: 990px) { diff --git a/docs/concepts/accounts/multi-signing.md b/docs/concepts/accounts/multi-signing.md index f4e00fa7b3..05ded81834 100644 --- a/docs/concepts/accounts/multi-signing.md +++ b/docs/concepts/accounts/multi-signing.md @@ -1,6 +1,4 @@ --- -html: multi-signing.html -parent: accounts.html seo: description: Use multi-signing for greater security sending transactions. labels: @@ -23,7 +21,7 @@ Before you can multi-sign, you must create a list of which addresses can sign fo The [SignerListSet transaction][] defines a _signer list_, a set of addresses that can authorize transactions from your address. You can include 1 to 32 addresses in a signer list. The list cannot include your address and there can be no duplicate entries. You can control how many signatures are needed, in which combinations, by using the _Signer Weight_ and _Quorum_ settings in the list. -_(Updated by the [ExpandedSignerList amendment][].)_ +{% amendment-disclaimer name="ExpandedSignerList" mode="updated" /%} ### Signer Weight