diff --git a/README.md b/README.md index 8a3b8e0..93dc06e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Sillage website -Product showcase site for [Sillage](https://github.com/getsillage/sillage) — a self-hosted, single-user space for private records, history review, and AI answers grounded in your own notes. +Canonical public site: [https://getsillage.github.io/](https://getsillage.github.io/) + +Source repository: [`getsillage/getsillage.github.io`](https://github.com/getsillage/getsillage.github.io) + +This is the product showcase site for [Sillage](https://github.com/getsillage/sillage) — a self-hosted, single-user space for private records, history review, and AI answers grounded in your own notes. This repository is separate from the product monorepo. Documentation, releases, engineering governance (`make check`, constitution, CI), and the application itself live in the main project ([sillage](https://github.com/getsillage/sillage)). Keep the public one-line product description and “no multi-user / no official hosting” claims aligned with the monorepo READMEs. diff --git a/package-lock.json b/package-lock.json index aaed7a6..11465a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "website", + "name": "getsillage.github.io", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "website", + "name": "getsillage.github.io", "version": "1.0.0", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 83b4e77..07e8d8d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "website", + "name": "getsillage.github.io", "private": true, "version": "1.0.0", "type": "module", diff --git a/src/App.test.tsx b/src/App.test.tsx index d63972b..7df1ee1 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -23,6 +23,10 @@ describe('marketing site interactions', () => { expect(screen.getByRole('heading', { name: 'Web' })).toBeVisible() expect(screen.getByRole('heading', { name: 'Android' })).toBeVisible() expect(screen.getByRole('link', { name: 'Quick start' })).toHaveAttribute('href', '#deploy') + expect(screen.getByRole('link', { name: 'Website repository' })).toHaveAttribute( + 'href', + 'https://github.com/getsillage/getsillage.github.io', + ) expect(screen.getByText('0', { selector: 'dt' })).toBeVisible() expect(screen.getByText('Sillage-hosted services')).toBeVisible() expect( @@ -51,6 +55,10 @@ describe('marketing site interactions', () => { expect(screen.getByRole('heading', { level: 1 })).toHaveTextContent( '记录由你自己保管。答案带着来源。', ) + expect(screen.getByRole('link', { name: '官网源码仓库' })).toHaveAttribute( + 'href', + 'https://github.com/getsillage/getsillage.github.io', + ) await user.click(screen.getByRole('button', { name: '切换到深色主题' })) expect(document.documentElement).toHaveClass('dark') diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index cccd702..ceb5da8 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -41,7 +41,7 @@ export function Footer() { {t.footerContributing} {t.footerBrand} {t.footerLicense} - {t.footerSiteSource} + {t.footerWebsiteRepository} diff --git a/src/config/site.ts b/src/config/site.ts index 0a9c8fe..02830cf 100644 --- a/src/config/site.ts +++ b/src/config/site.ts @@ -13,7 +13,7 @@ export const SITE = { githubOrg: 'getsillage', productRepo: 'getsillage/sillage', productRepoUrl: 'https://github.com/getsillage/sillage', - pageRepoUrl: 'https://github.com/getsillage/getsillage.github.io', + websiteRepoUrl: 'https://github.com/getsillage/getsillage.github.io', /** Fallback when GitHub Releases cannot be reached at runtime. */ defaultReleaseTag: 'v0.3.0', license: 'MIT', diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts index ed95191..c6cebf6 100644 --- a/src/i18n/messages.ts +++ b/src/i18n/messages.ts @@ -94,7 +94,7 @@ type Messages = { footerContributing: string footerBrand: string footerLicense: string - footerSiteSource: string + footerWebsiteRepository: string footerRights: string footerNoHosted: string } @@ -257,7 +257,7 @@ export const messages: Record = { footerContributing: 'Contributing', footerBrand: 'Brand guide', footerLicense: 'MIT License', - footerSiteSource: 'This website', + footerWebsiteRepository: 'Website repository', footerRights: 'Open source under the MIT License.', footerNoHosted: 'No official hosted service.', }, @@ -412,7 +412,7 @@ export const messages: Record = { footerContributing: '贡献指南', footerBrand: '品牌规范', footerLicense: 'MIT 许可证', - footerSiteSource: '本网站源码', + footerWebsiteRepository: '官网源码仓库', footerRights: '以 MIT 许可证开源。', footerNoHosted: '无官方托管服务。', },