Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6c23732
feat: 实现多语言支持 (i18n)
piratf Jan 29, 2026
5b45b3e
chore: improve i18n workflow and fix README naming
piratf Jan 29, 2026
4a2b209
feat: 改进 Windows 语言检测,添加 GetUserDefaultLocaleName API 支持
piratf Jan 29, 2026
e75f3dc
fix: 修复打包后语言切换功能和控制台输出乱码
piratf Jan 30, 2026
2b7d2c2
docs: update README with tool advantages and fix filename case
piratf Jan 30, 2026
5cda23b
chore: bump version to 2.0.6 and enhance SEO
piratf Jan 30, 2026
129325e
feat: add VitePress bilingual documentation site
piratf Jan 30, 2026
f565791
refactor: restructure README files and add GitHub Pages deployment
piratf Jan 30, 2026
cf0788a
fix: correct workflow path for package.json
piratf Jan 30, 2026
260f276
test: add feat-i18n branch trigger for testing
piratf Jan 30, 2026
604c13e
test: remove feat-i18n branch trigger after testing
piratf Jan 30, 2026
49cc14e
fix: add base path for GitHub Pages
piratf Jan 30, 2026
0700775
fix: simplify locale config and nav links
piratf Jan 30, 2026
ec4bb74
revert: restore working config for VitePress build
piratf Jan 30, 2026
1c2873b
docs: add prominent language switch links to READMEs
piratf Jan 30, 2026
31172af
fix: set default language to zh for tests
piratf Jan 30, 2026
91764e7
fix: set LANG env var before imports for consistent i18n in tests
piratf Jan 30, 2026
3f269c8
fix: prioritize LANG env var for consistent i18n in tests
piratf Jan 30, 2026
070009b
fix: force reinitialize translator to Chinese in pytest_configure
piratf Jan 30, 2026
059b52d
fix: ensure sys is imported before use in pytest_configure
piratf Jan 30, 2026
5125ff5
fix: add autouse fixture to set Chinese language before each test
piratf Jan 30, 2026
6560a06
fix: set language at module level before any imports
piratf Jan 30, 2026
e488464
test: add detailed debug output for translation loading
piratf Jan 31, 2026
9928107
fix: include compiled .mo translation files in repository
piratf Jan 31, 2026
1182caa
test: remove debug output from conftest.py
piratf Jan 31, 2026
a1a817a
docs: 优化工具描述,去除生硬信息
piratf Jan 31, 2026
0cf97cd
Merge branch 'feat-i18n' into feat-seo-optimization
piratf Jan 31, 2026
ac80f51
feat(seo): 完成高级 SEO 优化配置
piratf Jan 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 40 additions & 22 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -1,30 +1,59 @@
import { defineConfig } from 'vitepress'

export default defineConfig({
title: 'Windows Folder Remark Tool',
description: 'A lightweight CLI tool to add remarks/comments to Windows folders via Desktop.ini',
title: 'Windows 文件夹备注工具',
description: '一个轻量级的命令行工具,通过 Desktop.ini 为 Windows 文件夹添加备注/评论。无系统驻留,无数据上传,安全放心,用完即走。',
base: '/windows-folder-remark/',
lang: 'en-US',
lang: 'zh-CN',

locales: {
root: {
label: 'English',
lang: 'en-US'
},
zh: {
label: '简体中文',
lang: 'zh-CN',
link: '/zh/'
lang: 'zh-CN'
},
en: {
label: 'English',
lang: 'en-US',
link: '/en/'
}
},

head: [
['link', { rel: 'alternate', hreflang: 'zh-CN', href: 'https://piratf.github.io/windows-folder-remark/' }],
['link', { rel: 'alternate', hreflang: 'en-US', href: 'https://piratf.github.io/windows-folder-remark/en/' }],
['link', { rel: 'alternate', hreflang: 'x-default', href: 'https://piratf.github.io/windows-folder-remark/en/' }]
],

sitemap: {
hostname: 'https://piratf.github.io',
transformItems(items) {
return items.map((item) => {
return {
url: '/windows-folder-remark' + (item.url.startsWith('/') ? '' : '/') + item.url,
changefreq: 'weekly',
}
})
}
},

themeConfig: {
nav: () => [
{ text: 'Guide', link: '/en/guide/' },
{ text: '中文', link: '/zh/' }
{ text: '指南', link: '/guide/' },
{ text: 'English', link: '/en/' }
],

sidebar: {
'/': [
{
text: '指南',
items: [
{ text: '介绍', link: '/' },
{ text: '快速开始', link: '/guide/getting-started' },
{ text: '使用方法', link: '/guide/usage' },
{ text: 'API 参考', link: '/guide/api' }
]
}
],
'/en/': [
{
text: 'Guide',
Expand All @@ -35,17 +64,6 @@ export default defineConfig({
{ text: 'API Reference', link: '/en/guide/api' }
]
}
],
'/zh/': [
{
text: '指南',
items: [
{ text: '介绍', link: '/zh/' },
{ text: '快速开始', link: '/zh/guide/getting-started' },
{ text: '使用方法', link: '/zh/guide/usage' },
{ text: 'API 参考', link: '/zh/guide/api' }
]
}
]
}
}
Expand Down
23 changes: 22 additions & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
---
layout: home

head:
- - script
- type: application/ld+json
- |
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "Windows Folder Remark Tool",
"description": "A lightweight CLI tool to add remarks/comments to Windows folders via Desktop.ini. No system residency, no data upload, safe and secure, use it when you need it.",
"programmingLanguage": "Python",
"codeRepository": "https://github.com/piratf/windows-folder-remark",
"url": "https://piratf.github.io/windows-folder-remark/en/",
"version": "2.0.6",
"license": "MIT",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
}
}

hero:
name: Windows Folder Remark Tool
text: A Lightweight CLI Tool for Windows Folder Remarks
tagline: Add remarks/comments to Windows folders via Desktop.ini
actions:
- theme: brand
text: Get Started
link: /en/guide/getting-started
link: /guide/getting-started
- theme: alt
text: GitHub
link: https://github.com/piratf/windows-folder-remark
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 23 additions & 2 deletions docs/zh/index.md → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
---
layout: home

head:
- - script
- type: application/ld+json
- |
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "Windows 文件夹备注工具",
"description": "一个轻量级的命令行工具,通过 Desktop.ini 为 Windows 文件夹添加备注/评论。无系统驻留,无数据上传,安全放心,用完即走。",
"programmingLanguage": "Python",
"codeRepository": "https://github.com/piratf/windows-folder-remark",
"url": "https://piratf.github.io/windows-folder-remark/",
"version": "2.0.6",
"license": "MIT",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
}
}

hero:
name: Windows Folder Remark Tool
name: Windows 文件夹备注工具
text: 轻量级 Windows 文件夹备注工具
tagline: 通过 Desktop.ini 为 Windows 文件夹添加备注/评论
actions:
- theme: brand
text: 快速开始
link: /zh/guide/getting-started
link: /guide/getting-started
- theme: alt
text: GitHub
link: https://github.com/piratf/windows-folder-remark
Expand Down
4 changes: 4 additions & 0 deletions docs/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://piratf.github.io/windows-folder-remark/sitemap.xml