Skip to content

Commit fe8a458

Browse files
fix: correction
Co-authored-by: 3w36zj6 <[email protected]>
1 parent 4da6855 commit fe8a458

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

website/src/components/ui/common/SearchWindow.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ export const SearchWindow: FC = () => {
1717
</>
1818
)}
1919
<div class="flex justify-between items-center p-4 border-b border-gray-200 flex-shrink-0">
20-
<h2 class="text-lg font-semibold">
21-
検索
22-
{import.meta.env.DEV && <span> - Search disabled on DEV</span>}
23-
</h2>
20+
<h2 class="text-lg font-semibold">検索</h2>
2421
<button
2522
type="button"
2623
class="text-gray-400 hover:text-gray-600"
@@ -33,6 +30,9 @@ export const SearchWindow: FC = () => {
3330
</button>
3431
</div>
3532
<div class="p-4 overflow-y-auto flex-1">
33+
{import.meta.env.DEV && (
34+
<p>Search is disabled in the development environment.</p>
35+
)}
3636
<div id="search" />
3737
</div>
3838
<script

website/src/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export const githubRepositoryUrl =
88
"https://github.com/typst-jp/typst-jp.github.io";
99
export const discordServerUrl = "https://discord.gg/9xF7k4aAuH";
1010
export const originUrl = "https://typst-jp.github.io/";
11-
export const basePath = "/docs/";
11+
export const basePath: string = "/docs/";

website/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rmSync(publicAssetsDocsPath, { recursive: true, force: true });
1717
symlinkSync(assetsDocsPath, publicAssetsDocsPath, "dir");
1818

1919
const ssgPlugins =
20-
(basePath as string) === "/"
20+
basePath === "/"
2121
? [
2222
sitemapPlugin({
2323
baseUrl: "https://typst-jp.github.io/",

0 commit comments

Comments
 (0)