Skip to content

Commit 38247f0

Browse files
committed
Add VitePress configuration and update .gitignore
1 parent 0573e95 commit 38247f0

2 files changed

Lines changed: 93 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.*/
22
!/.github/
3+
!/.vitepress/
34

45
# Dependencies
56
/node_modules

.vitepress/config.mts

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
export default defineConfig({
4+
title: 'Testo',
5+
description: 'Modern PHP Testing Framework',
6+
7+
lastUpdated: true,
8+
cleanUrls: true,
9+
10+
rewrites: {
11+
'pages/en/index.md': 'index.md',
12+
'pages/ru/index.md': 'ru/index.md',
13+
},
14+
15+
head: [
16+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
17+
],
18+
19+
locales: {
20+
root: {
21+
label: 'English',
22+
lang: 'en',
23+
themeConfig: {
24+
nav: [
25+
{ text: 'Docs', link: '/docs/en/getting-started' },
26+
{ text: 'Blog', link: '/blog/en/' },
27+
],
28+
sidebar: {
29+
'/docs/en/': [
30+
{
31+
text: 'Introduction',
32+
items: [
33+
{ text: 'Getting Started', link: '/docs/en/getting-started' },
34+
],
35+
},
36+
],
37+
},
38+
},
39+
},
40+
ru: {
41+
label: 'Русский',
42+
lang: 'ru',
43+
link: '/ru/',
44+
themeConfig: {
45+
nav: [
46+
{ text: 'Документация', link: '/docs/ru/getting-started' },
47+
{ text: 'Блог', link: '/blog/ru/' },
48+
],
49+
sidebar: {
50+
'/docs/ru/': [
51+
{
52+
text: 'Введение',
53+
items: [
54+
{ text: 'Начало работы', link: '/docs/ru/getting-started' },
55+
],
56+
},
57+
],
58+
},
59+
outline: {
60+
label: 'На этой странице',
61+
},
62+
docFooter: {
63+
prev: 'Назад',
64+
next: 'Вперёд',
65+
},
66+
lastUpdated: {
67+
text: 'Обновлено',
68+
},
69+
returnToTopLabel: 'Наверх',
70+
sidebarMenuLabel: 'Меню',
71+
darkModeSwitchLabel: 'Тема',
72+
},
73+
},
74+
},
75+
76+
themeConfig: {
77+
logo: '/logo.svg',
78+
79+
socialLinks: [
80+
{ icon: 'github', link: 'https://github.com/php-testo/testo' },
81+
],
82+
83+
search: {
84+
provider: 'local',
85+
},
86+
87+
footer: {
88+
message: 'Released under the MIT License.',
89+
copyright: 'Copyright © 2024-present Testo',
90+
},
91+
},
92+
})

0 commit comments

Comments
 (0)