From 2edea0fc70be43a5153784b67149fc711cc4b9d5 Mon Sep 17 00:00:00 2001
From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Date: Mon, 18 Nov 2024 15:35:36 +0900
Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E7=8B=AC=E8=87=AA=E8=A6=81?=
=?UTF-8?q?=E7=B4=A0=E3=81=AE=E3=82=B9=E3=82=BF=E3=82=A4=E3=83=AB=E3=82=92?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E3=81=99=E3=82=8BCSS=E3=81=AE=E3=83=95?=
=?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E5=90=8D=E3=82=92`custom.css`?=
=?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/styles/{docs-cn.css => custom.css} | 0
templates/base_template.html.j2 | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename static/styles/{docs-cn.css => custom.css} (100%)
diff --git a/static/styles/docs-cn.css b/static/styles/custom.css
similarity index 100%
rename from static/styles/docs-cn.css
rename to static/styles/custom.css
diff --git a/templates/base_template.html.j2 b/templates/base_template.html.j2
index eb71e2dcf8..21d9c745b4 100644
--- a/templates/base_template.html.j2
+++ b/templates/base_template.html.j2
@@ -27,7 +27,7 @@
-
+
From a3386faf13a76f43597bb94a8a1376f119a102f9 Mon Sep 17 00:00:00 2001
From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Date: Mon, 18 Nov 2024 15:35:49 +0900
Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E3=82=A2=E3=83=A9=E3=83=BC?=
=?UTF-8?q?=E3=83=88=E3=82=92=E9=96=89=E3=81=98=E3=82=8B=E3=83=9C=E3=82=BF?=
=?UTF-8?q?=E3=83=B3=E3=82=92=E5=AE=9F=E8=A3=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/scripts/docs.js | 2 +-
static/styles/custom.css | 10 +++++++++-
templates/base_template.html.j2 | 2 ++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/static/scripts/docs.js b/static/scripts/docs.js
index d980bde467..9e18277ea6 100644
--- a/static/scripts/docs.js
+++ b/static/scripts/docs.js
@@ -633,7 +633,7 @@ document.addEventListener("DOMContentLoaded", ()=>{
const t = document.querySelector("#page-overview > ul");
t && setUpOnPageNavigation(t),
setUpCollapsingSidebar(document.querySelector("nav.folding"));
- //alertClose(document.querySelector("button.close"));
+ alertClose(document.getElementById("closeAlertButton"));
for (const n of document.querySelectorAll("div.tooltip-context"))
setUpTooltip(n);
const e = document.querySelector(".page-end-buttons a.previous")
diff --git a/static/styles/custom.css b/static/styles/custom.css
index 6131edd5c2..536ac5ef26 100644
--- a/static/styles/custom.css
+++ b/static/styles/custom.css
@@ -11,4 +11,12 @@ p {
.alert-content {
margin: 1em 2em;
-}
\ No newline at end of file
+}
+
+.alert > button {
+ position: absolute;
+ top: 1em;
+ right: 0.25em;
+ background: none;
+ border: none;
+}
diff --git a/templates/base_template.html.j2 b/templates/base_template.html.j2
index 21d9c745b4..76b626f41e 100644
--- a/templates/base_template.html.j2
+++ b/templates/base_template.html.j2
@@ -44,6 +44,8 @@
⚠ Warning: This site provides an unofficial translation of the Typst v0.12.0 documentation by the Japanese Community. Please note that there may be some inaccuracies, untranslated sections or outdated information. We highly recommend referring to the latest official documentation as well. If you find any errors in the content, please let us know through our GitHub repository. If you are interested in our community, feel free to join our unofficial Discord server, “Kumihan Club.”
+