Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[files]
extend-exclude = [
"website/client/src/**/*.md"
]
103 changes: 14 additions & 89 deletions website/client/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,95 +1,20 @@
import { defineConfig } from 'vitepress';
import { configEn } from './config/configEn';
import { configEnUs } from './config/configEnUs';
import { configEs } from './config/configEs';
import { configJa } from './config/configJa';
import { configKo } from './config/configKo';
import { configPtBr } from './config/configPtBr';
import { configShard } from './config/configShard';
import { configZhCn } from './config/configZhCn';

const googleAnalyticsTag = 'G-7PTT4PLC69';

/**
* Vitepress Configuration
*
* Reference
* see: https://github.com/vuejs/vitepress/tree/main/docs
*/
export default defineConfig({
title: 'Repomix',

srcDir: 'src',

rewrites: {
// rewrite to `en` locale
'en/:rest*': ':rest*',
},

lastUpdated: true,
cleanUrls: true,
metaChunk: true,

sitemap: {
hostname: 'http://repomix.com/',
},

// Shared configuration
themeConfig: {
logo: { src: '/images/repomix-logo.svg', width: 24, height: 24 },
search: {
provider: 'local',
},
socialLinks: [
{ icon: 'discord', link: 'https://discord.gg/wNYzTwZFku' },
{ icon: 'github', link: 'https://github.com/yamadashy/repomix' },
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2024 Kazuki Yamada',
},
},

// i18n configuration
...configShard,
locales: {
root: {
label: 'English',
lang: 'en-US',
...configEn,
},
root: { label: 'English', ...configEnUs },
'zh-cn': { label: '简体中文', ...configZhCn },
ja: { label: '日本語', ...configJa },
es: { label: 'Español', ...configEs },
'pt-br': { label: 'Português', ...configPtBr },
ko: { label: '한국어', ...configKo },
},

head: [
// Favicon
['link', { rel: 'icon', href: '/images/repomix-logo.svg' }],

// OGP
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:locale', content: 'en' }],
['meta', { property: 'og:title', content: 'Repomix' }],
['meta', { property: 'og:site_name', content: 'Repomix' }],
['meta', { property: 'og:image', content: 'https://repomix.com/images/og-image-large.png' }],
['meta', { property: 'og:url', content: 'https://repomix.com' }],
['meta', { property: 'og:description', content: 'Pack your codebase into AI-friendly formats' }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { property: 'twitter:domain', content: 'https://repomix.com' }],
['meta', { property: 'twitter:url', content: 'https://repomix.com' }],
['meta', { name: 'twitter:title', content: 'Repomix' }],
['meta', { name: 'twitter:description', content: 'Pack your codebase into AI-friendly formats' }],
['meta', { name: 'twitter:image', content: 'https://repomix.com/images/og-image-large.png' }],
['meta', { name: 'thumbnail', content: 'https://repomix.com/images/og-image-large.png' }],

// PWA
['meta', { name: 'theme-color', content: '#f97316' }],

// Google Analytics
[
'script',
{
async: true,
src: `https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsTag}`,
},
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${googleAnalyticsTag}');`,
],
],
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vitepress';

export const configEn = defineConfig({
export const configEnUs = defineConfig({
lang: 'en-US',
description: 'Pack your codebase into AI-friendly formats',
themeConfig: {
Expand Down
44 changes: 44 additions & 0 deletions website/client/.vitepress/config/configEs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { defineConfig } from 'vitepress';

export const configEs = defineConfig({
lang: 'es',
description: 'Empaqueta tu código en formatos compatibles con la inteligencia artificial',
themeConfig: {
nav: [
// guía
{ text: 'Guía', link: '/es/guide/' },
{ text: 'Únete a Discord', link: 'https://discord.gg/wNYzTwZFku' },
],
sidebar: {
'/es/guide/': [
{
text: 'Guía',
items: [
{ text: 'Introducción', link: '/es/guide/' },
{ text: 'Instalación', link: '/es/guide/installation' },
{ text: 'Uso Básico', link: '/es/guide/usage' },
{ text: 'Ejemplos de Prompt', link: '/es/guide/prompt-examples' },
{ text: 'Formatos de Salida', link: '/es/guide/output' },
{ text: 'Opciones de Línea de Comando', link: '/es/guide/command-line-options' },
{ text: 'Procesamiento de Repositorios Remotos', link: '/es/guide/remote-repository-processing' },
{ text: 'Configuración', link: '/es/guide/configuration' },
{ text: 'Instrucciones Personalizadas', link: '/es/guide/custom-instructions' },
{ text: 'Eliminación de Comentarios', link: '/es/guide/comment-removal' },
{ text: 'Seguridad', link: '/es/guide/security' },
{
text: 'Consejos y Trucos',
items: [{ text: 'Mejores Prácticas', link: '/es/guide/tips/best-practices' }],
},
{
text: 'Desarrollo',
items: [
{ text: 'Contribuir', link: '/es/guide/development/' },
{ text: 'Configuración Inicial', link: '/es/guide/development/setup' },
],
},
],
},
],
},
},
});
43 changes: 43 additions & 0 deletions website/client/.vitepress/config/configJa.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { defineConfig } from 'vitepress';

export const configJa = defineConfig({
lang: 'ja',
description: 'コードベースをAIフレンドリーな形式にパッケージング',
themeConfig: {
nav: [
{ text: '使い方', link: '/ja/guide/' },
{ text: 'Discordに参加', link: 'https://discord.gg/wNYzTwZFku' },
],
sidebar: {
'/ja/guide/': [
{
text: '使い方',
items: [
{ text: 'はじめに', link: '/ja/guide/' },
{ text: 'インストール', link: '/ja/guide/installation' },
{ text: '基本的な使い方', link: '/ja/guide/usage' },
{ text: 'プロンプト例', link: '/ja/guide/prompt-examples' },
{ text: '出力フォーマット', link: '/ja/guide/output' },
{ text: 'コマンドラインオプション', link: '/ja/guide/command-line-options' },
{ text: 'リモートリポジトリの処理', link: '/ja/guide/remote-repository-processing' },
{ text: '設定', link: '/ja/guide/configuration' },
{ text: 'カスタム指示', link: '/ja/guide/custom-instructions' },
{ text: 'コメントの削除', link: '/ja/guide/comment-removal' },
{ text: 'セキュリティ', link: '/ja/guide/security' },
{
text: 'ヒント&テクニック',
items: [{ text: 'ベストプラクティス', link: '/ja/guide/tips/best-practices' }],
},
{
text: '開発',
items: [
{ text: '開発への貢献', link: '/ja/guide/development/' },
{ text: '環境構築', link: '/ja/guide/development/setup' },
],
},
],
},
],
},
},
});
43 changes: 43 additions & 0 deletions website/client/.vitepress/config/configKo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { defineConfig } from 'vitepress';

export const configKo = defineConfig({
lang: 'ko-KR',
description: '코드베이스를 AI 친화적인 형식으로 패키징',
themeConfig: {
nav: [
{ text: '가이드', link: '/ko/guide/' },
{ text: 'Discord 참여', link: 'https://discord.gg/wNYzTwZFku' },
],
sidebar: {
'/ko/guide/': [
{
text: '가이드',
items: [
{ text: '시작하기', link: '/ko/guide/' },
{ text: '설치', link: '/ko/guide/installation' },
{ text: '기본 사용법', link: '/ko/guide/usage' },
{ text: '프롬프트 예제', link: '/ko/guide/prompt-examples' },
{ text: '출력 형식', link: '/ko/guide/output' },
{ text: '명령행 옵션', link: '/ko/guide/command-line-options' },
{ text: '원격 저장소 처리', link: '/ko/guide/remote-repository-processing' },
{ text: '설정', link: '/ko/guide/configuration' },
{ text: '사용자 지정 지시사항', link: '/ko/guide/custom-instructions' },
{ text: '주석 제거', link: '/ko/guide/comment-removal' },
{ text: '보안', link: '/ko/guide/security' },
{
text: '팁과 요령',
items: [{ text: '모범 사례', link: '/ko/guide/tips/best-practices' }],
},
{
text: '개발',
items: [
{ text: '기여하기', link: '/ko/guide/development/' },
{ text: '환경 설정', link: '/ko/guide/development/setup' },
],
},
],
},
],
},
},
});
44 changes: 44 additions & 0 deletions website/client/.vitepress/config/configPtBr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { defineConfig } from 'vitepress';

export const configPtBr = defineConfig({
lang: 'pt-br',
description: 'Empacote seu código em formatos compatíveis com IA',
themeConfig: {
nav: [
// guia
{ text: 'Guia', link: '/pt-br/guide/' },
{ text: 'Entrar no Discord', link: 'https://discord.gg/wNYzTwZFku' },
],
sidebar: {
'/pt-br/guide/': [
{
text: 'Guia',
items: [
{ text: 'Introdução', link: '/pt-br/guide/' },
{ text: 'Instalação', link: '/pt-br/guide/installation' },
{ text: 'Uso Básico', link: '/pt-br/guide/usage' },
{ text: 'Exemplos de Prompt', link: '/pt-br/guide/prompt-examples' },
{ text: 'Formatos de Saída', link: '/pt-br/guide/output' },
{ text: 'Opções de Linha de Comando', link: '/pt-br/guide/command-line-options' },
{ text: 'Processamento de Repositórios Remotos', link: '/pt-br/guide/remote-repository-processing' },
{ text: 'Configuração', link: '/pt-br/guide/configuration' },
{ text: 'Instruções Personalizadas', link: '/pt-br/guide/custom-instructions' },
{ text: 'Remoção de Comentários', link: '/pt-br/guide/comment-removal' },
{ text: 'Segurança', link: '/pt-br/guide/security' },
{
text: 'Dicas e Truques',
items: [{ text: 'Melhores Práticas', link: '/pt-br/guide/tips/best-practices' }],
},
{
text: 'Desenvolvimento',
items: [
{ text: 'Contribuindo', link: '/pt-br/guide/development/' },
{ text: 'Configuração Inicial', link: '/pt-br/guide/development/setup' },
],
},
],
},
],
},
},
});
Loading