Skip to content

Commit 4734a86

Browse files
committed
init docs: set download url
1 parent c3ad2cb commit 4734a86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/site/src/pages/index.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const title = 'openhare - Professional Cross-Platform Desktop SQL Query Tool';
55
const description =
66
'openhare is a professional, cross-platform desktop SQL query tool built with Flutter. Designed for DBAs, developers, and data analysts, it delivers a powerful yet intuitive experience for managing and querying databases.';
77
const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/openhare';
8+
const downloadUrl = `${repoUrl}/releases`;
89
---
910

1011
<BaseLayout title={title} description={description} lang="en">
@@ -35,7 +36,7 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
3536
developers, and data analysts—powerful yet intuitive for managing and querying databases.
3637
</p>
3738
<div class="heroActions" data-reveal>
38-
<a class="btn btnPrimary" href={repoUrl} target="_blank" rel="noreferrer">
39+
<a class="btn btnPrimary" href={downloadUrl} target="_blank" rel="noreferrer">
3940
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
4041
<path
4142
fill="currentColor"

docs/site/src/pages/zh/index.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const title = 'openhare - 专业跨平台桌面 SQL 查询工具';
55
const description =
66
'openhare 是一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建,面向 DBA、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。';
77
const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/openhare';
8+
const downloadUrl = `${repoUrl}/releases`;
89
---
910

1011
<BaseLayout title={title} description={description} lang="zh-CN">
@@ -34,7 +35,7 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
3435
一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建。面向数据库管理员、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。
3536
</p>
3637
<div class="heroActions" data-reveal>
37-
<a class="btn btnPrimary" href={repoUrl} target="_blank" rel="noreferrer">
38+
<a class="btn btnPrimary" href={downloadUrl} target="_blank" rel="noreferrer">
3839
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
3940
<path
4041
fill="currentColor"

0 commit comments

Comments
 (0)