Skip to content

Commit 4ea047a

Browse files
committed
docs: add disclaimer page and link it from the footer
1 parent 4ac41c7 commit 4ea047a

6 files changed

Lines changed: 86 additions & 6 deletions

File tree

‎docs/.vitepress/config.mts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ const zhSidebar = [
8181
},
8282
{
8383
text: '关于',
84-
items: [{ text: '关于本文档', link: '/about' }],
84+
items: [
85+
{ text: '关于本文档', link: '/about' },
86+
{ text: '免责声明', link: '/disclaimer' },
87+
],
8588
},
8689
]
8790

@@ -158,7 +161,10 @@ const enSidebar = [
158161
},
159162
{
160163
text: 'About',
161-
items: [{ text: 'About These Docs', link: '/en/about' }],
164+
items: [
165+
{ text: 'About These Docs', link: '/en/about' },
166+
{ text: 'Disclaimer', link: '/en/disclaimer' },
167+
],
162168
},
163169
]
164170

‎docs/.vitepress/theme/DocLicense.vue‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { computed } from 'vue'
3-
import { useData } from 'vitepress'
3+
import { useData, withBase } from 'vitepress'
44
55
const { lang } = useData()
66
@@ -11,7 +11,9 @@ const currentYear = new Date().getFullYear()
1111
const yearRange =
1212
currentYear > startYear ? `${startYear}-${currentYear}` : `${startYear}`
1313
14-
const disclaimerUrl = computed(() => (isEnglish.value ? '/en/disclaimer' : '/disclaimer'))
14+
const disclaimerUrl = computed(() =>
15+
withBase(isEnglish.value ? '/en/disclaimer' : '/disclaimer')
16+
)
1517
const disclaimerText = computed(() => (isEnglish.value ? 'Disclaimer' : '免责声明'))
1618
1719
const licenseUrl = 'https://creativecommons.org/licenses/by-sa/4.0/'

‎docs/about.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ KunCode 只是一个**可选示例**,不是前置条件,也不是唯一支
2828
- 提供可替换的配置示例与排障步骤
2929
- 帮助你在工具侧定位 Key、地址、模型或网络问题
3030

31-
本站不提供开户、发放 Key、充值、退款或平台客服;这些事项请以你的服务商控制台和文档为准。
31+
本站不提供开户、发放 Key、充值、退款或平台客服;这些事项请以你的服务商控制台和文档为准。本文档的责任边界和风险提示见[免责声明](/disclaimer)。
3232

3333
## 开源与共享
3434

‎docs/disclaimer.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# 免责声明
2+
3+
本页说明本文档的责任边界和适用范围。最后更新:2026-10。
4+
5+
## 文档性质
6+
7+
本文档是一份**通用的 AI 编程工具接入参考**,面向 Codex、Claude Code、OpenCode、GitHub Copilot CLI 等工具,说明如何连接官方 API、自建兼容网关或第三方兼容服务。
8+
9+
文档中出现的 KunCode 只是配置示例,用于让步骤更容易对照。**使用本文档不需要注册或使用 KunCode**;你可以换成任意兼容服务,通用配置思路不变。
10+
11+
## 不构成专业建议
12+
13+
本文档仅提供技术配置与排障参考,不构成法律、财务、安全或其他专业建议。涉及费用、计费、合规和数据处理等问题,请自行评估,必要时咨询专业人士。
14+
15+
## 使用风险自行承担
16+
17+
- 文档中的命令、配置和操作步骤仅供参考。执行前请自行确认命令含义和影响范围,并做好备份。
18+
- 因参考本文档而产生的费用、额度消耗、数据丢失、配置损坏、服务中断、账号或密钥泄露等后果,由使用者自行承担。
19+
- 请勿在不可信环境中粘贴真实 API Key。Key 的创建、权限、轮换和吊销以你的服务商为准。
20+
- 让 AI 自动安装、修改配置或执行命令前,请先确认它将要做什么。
21+
22+
## 第三方服务与外部链接
23+
24+
- 文档中提到的 API 地址、模型、价格、额度、限流、可用性和支持政策均由对应服务商决定,可能随时变化,请以服务商官方页面为准。
25+
- 本文档可能滞后于工具或服务的实际版本,我们不对内容的完整性、准确性、及时性或适用性作出保证。
26+
- 外部链接仅为方便查阅。我们不对第三方网站的内容、安全性、可用性或其服务作出认可、担保或背书。
27+
- 文中提及的第三方工具、平台和商标归各自所有者所有;除 KunCode 外,本文档与这些所有者之间不存在隶属、代理、合作或背书关系。
28+
- 本文档由 KunCode 维护,但内容不绑定 KunCode。文中出现的 KunCode 仅为可选配置示例,与其他被提及的服务处于同等地位。
29+
30+
## 责任限制
31+
32+
在法律允许的最大范围内,本文档的作者和贡献者不对因使用或无法使用本文档而产生的任何直接或间接损失承担责任。
33+
34+
## 反馈
35+
36+
如果发现内容错误、过时或不准确,欢迎[提交 issue](https://github.com/MY-Final/kuncode-docs/issues/new?template=doc-bug.yml)或直接提 PR。

‎docs/en/about.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ KunCode is only an **optional example**. It is not required and it is not the on
2828
- Providing replaceable configuration examples and troubleshooting steps
2929
- Helping you isolate key, address, model and network issues on the client side
3030

31-
This site does not provide account signup, key issuance, top-ups, refunds or provider support. Those are handled by your service provider's console and documentation.
31+
This site does not provide account signup, key issuance, top-ups, refunds or provider support. Those are handled by your service provider's console and documentation. For the scope and limits of responsibility, see the [Disclaimer](/en/disclaimer).
3232

3333
## Open and shareable
3434

‎docs/en/disclaimer.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Disclaimer
2+
3+
This page explains the scope and limits of responsibility for these docs. Last updated: 2026-10.
4+
5+
## What this documentation is
6+
7+
These docs are a **general, provider-agnostic reference for connecting AI coding tools** such as Codex, Claude Code, OpenCode and GitHub Copilot CLI to official APIs, self-hosted compatible gateways or third-party compatible services.
8+
9+
KunCode appears in some examples only as a reference service, to make the steps easier to follow. **You do not need to sign up for or use KunCode to use these docs.** You can substitute any compatible service; the general configuration approach stays the same.
10+
11+
## Not professional advice
12+
13+
These docs provide technical configuration and troubleshooting reference only. They are not legal, financial, security or other professional advice. For questions about cost, billing, compliance or data handling, evaluate them yourself and consult a professional where appropriate.
14+
15+
## Use at your own risk
16+
17+
- Commands, configuration and steps in these docs are reference material. Before running anything, confirm what it does and what it affects, and make backups.
18+
- You are responsible for any cost, quota usage, data loss, broken configuration, service interruption, account compromise or key leakage that results from following these docs.
19+
- Never paste a real API key into an untrusted environment. Key creation, permissions, rotation and revocation are governed by your service provider.
20+
- Before letting an AI install software, change configuration or run commands automatically, confirm what it is about to do.
21+
22+
## Third-party services and external links
23+
24+
- API addresses, models, prices, quotas, rate limits, availability and support policies mentioned here are decided by the relevant provider and may change at any time. Always confirm against the provider's official pages.
25+
- These docs may lag behind the current version of a tool or service. We make no guarantee about completeness, accuracy, timeliness or fitness for a particular purpose.
26+
- External links are provided for convenience. We do not endorse, guarantee or vouch for the content, security, availability or services of any third-party site.
27+
- Third-party tools, platforms and trademarks mentioned here belong to their respective owners. Apart from KunCode, these docs have no affiliation, agency, partnership or endorsement relationship with those owners.
28+
- These docs are maintained by KunCode, but the content is not tied to KunCode. KunCode appears only as an optional configuration example, on equal footing with the other services mentioned.
29+
30+
## Limitation of liability
31+
32+
To the maximum extent permitted by law, the authors and contributors of these docs are not liable for any direct or indirect loss arising from the use of, or inability to use, this documentation.
33+
34+
## Feedback
35+
36+
If you find something incorrect, outdated or inaccurate, please [open an issue](https://github.com/MY-Final/kuncode-docs/issues/new?template=doc-bug.yml) or submit a pull request.

0 commit comments

Comments
 (0)