diff --git a/.vitepress/config.mts b/.vitepress/config.mts index cd3fc40a..6fd7f086 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -1,30 +1,104 @@ -import { defineConfig } from 'vitepress' +import { defineConfig } from "vitepress"; // https://vitepress.dev/reference/site-config export default defineConfig({ srcDir: "docs", - + title: "Project X", description: "Xray-core", + head: [["link", { rel: "icon", href: "/logo.png" }]], themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ - { text: 'Home', link: '/' }, - { text: 'Examples', link: '/markdown-examples' } + { text: "Home", link: "/" }, + { text: "Examples", link: "/markdown-examples" }, ], sidebar: [ { - text: 'Examples', + text: "Examples", items: [ - { text: 'Markdown Examples', link: '/markdown-examples' }, - { text: 'Runtime API Examples', link: '/api-examples' } - ] - } + { text: "Markdown Examples", link: "/markdown-examples" }, + { text: "Runtime API Examples", link: "/api-examples" }, + ], + }, ], socialLinks: [ - { icon: 'github', link: 'https://github.com/vuejs/vitepress' } - ] - } -}) + { icon: "github", link: "https://github.com/vuejs/vitepress" }, + ], + + footer: { + message: "根据 CC-BY-SA 4.0 许可协议授权", + copyright: "版权所有 © 2020-至今 Project X 社区", + }, + }, + + locales: { + root: { + label: "简体中文", + lang: "cn", + }, + en: { + label: "English", + lang: "en", + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + nav: [ + { text: "Home", link: "/" }, + { text: "Examples", link: "/markdown-examples" }, + ], + + sidebar: [ + { + text: "Examples", + items: [ + { text: "Markdown Examples", link: "/markdown-examples" }, + { text: "Runtime API Examples", link: "/api-examples" }, + ], + }, + ], + + socialLinks: [ + { icon: "github", link: "https://github.com/vuejs/vitepress" }, + ], + + footer: { + message: "Licensed under CC-BY-SA 4.0", + copyright: "Copyright © 2020-Present Project X Community", + }, + }, + }, + ru: { + label: "Русский", + lang: "ru", + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + nav: [ + { text: "Home", link: "/" }, + { text: "Examples", link: "/markdown-examples" }, + ], + + sidebar: [ + { + text: "Examples", + items: [ + { text: "Markdown Examples", link: "/markdown-examples" }, + { text: "Runtime API Examples", link: "/api-examples" }, + ], + }, + ], + + socialLinks: [ + { icon: "github", link: "https://github.com/vuejs/vitepress" }, + ], + + footer: { + message: "Лицензия CC-BY-SA 4.0", + copyright: + "Авторские права 2020-настоящее время Сообщество Project X", + }, + }, + }, + }, +}); diff --git a/docs/en/index.md b/docs/en/index.md index 7df045cd..a3f2ef2b 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -1,40 +1,41 @@ --- -home: true -heroImage: /LogoX2.png -heroText: Project X -tagline: Fear not the clouds that obscure the view, golden eyes like a torch brighten the sky -actions: - - text: Start here → - link: /en/document/ - type: primary - - text: Configuration guide → - link: /en/config/ - type: secondary +# https://vitepress.dev/reference/default-theme-home-page +layout: home + +hero: + name: Project X + # text: Xray-core + tagline: Fear not the clouds that obscure the view, golden eyes like a torch brighten the sky + image: + src: /LogoX2.png + alt: Xray, Penetrates Everything + actions: + - theme: brand + text: Start here → + link: /en/document/ + - theme: alt + text: Configuration guide → + link: /en/config/ + features: - title: High-speed protocol + # icon: 🚀 details: Original VLESS and XTLS protocols, free from redundant encryption, release CPU power - - title: Free combination - details: | - Perfect fallback mechanism, effectively prevent active detection, multi-service sharing ports - + # icon: 🧩 + details: Perfect fallback mechanism, effectively prevent active detection, multi-service sharing ports - title: Ultra-low occupancy - details: | - OpenWRT RaspberryPi and other simplified devices can be used - + # icon: 🌱 + details: OpenWRT RaspberryPi and other simplified devices can be used - title: Powerful routing - details: | - Highly customizable routing system to meet various usage requirements and fully exploit network performance - + # icon: ⚙️ + details: Highly customizable routing system to meet various usage requirements and fully exploit network performance - title: Full compatibility - details: | - Fully compatible with v2ray-core configuration files and API calls - + # icon: 🤝 + details: Fully compatible with v2ray-core configuration files and API calls - title: Affinity - details: | - Active community discussions and contributions, MPL 2.0 open source license - -footer: Licensed under CC-BY-SA 4.0 | Copyright 2020-Present Project X Community + # icon: 💖 + details: Active community discussions and contributions, MPL 2.0 open source license --- ## XTLS? Xray? V2Ray? @@ -67,11 +68,13 @@ Welcome to help Xray become stronger! ### Telegram - [Project X Discussion Group](https://t.me/projectXray) + - You can chat freely above the bottom line in the discussion group, don't fight, no abuse of power. - Feel free to ask questions, and try to answer those you know. - No politics, No NSFW - [Project VLESS Group](https://t.me/projectVless) + - The official Xray-core group for non-Chinese participants. Sister group of [Project X](https://t.me/projectXray) - No advertising, No insults, No politics. diff --git a/docs/index.md b/docs/index.md index 92be4929..ed1b8506 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,40 +1,41 @@ --- -home: true -heroImage: /LogoX2.png -heroText: Project X -tagline: 不畏浮云遮望眼 · 金睛如炬耀苍穹 -actions: - - text: 由此开始 → - link: /document/ - type: primary - - text: 配置指南 → - link: /config/ - type: secondary +# https://vitepress.dev/reference/default-theme-home-page +layout: home + +hero: + name: Project X + # text: Xray-core + tagline: 不畏浮云遮望眼 · 金睛如炬耀苍穹 + image: + src: /LogoX2.png + alt: Xray, Penetrates Everything + actions: + - theme: brand + text: 由此开始 → + link: /document/ + - theme: alt + text: 配置指南 → + link: /config/ + features: - title: 极速协议 + # icon: 🚀 details: 原创 VLESS 与 XTLS 协议,摆脱冗余加密,释放CPU算力 - - title: 自由组合 - details: | - 完善的回落机制,有效防止主动探测,多服务共享端口 - + # icon: 🧩 + details: 完善的回落机制,有效防止主动探测,多服务共享端口 - title: 超低占用 - details: | - OpenWRT RaspberryPi 等各种精简设备皆可使用 - + # icon: 🌱 + details: OpenWRT RaspberryPi 等各种精简设备皆可使用 - title: 强大路由 - details: | - 高可定制化的路由系统,满足各类使用需求,充分发挥网络性能 - + # icon: ⚙️ + details: 高可定制化的路由系统,满足各类使用需求,充分发挥网络性能 - title: 完整兼容 - details: | - 完整兼容 v2ray-core 配置文件与 API 调用 - + # icon: 🤝 + details: 完整兼容 v2ray-core 配置文件与 API 调用 - title: 亲和力 - details: | - 活跃的社区讨论及贡献,MPL 2.0 开源许可协议 - -footer: Licensed under CC-BY-SA 4.0 | Copyright 2020-Present Project X Community + # icon: 💖 + details: 活跃的社区讨论及贡献,MPL 2.0 开源许可协议 --- ## XTLS ? Xray ? V2Ray ? @@ -67,11 +68,13 @@ footer: Licensed under CC-BY-SA 4.0 | Copyright 2020-Present Project X Community ### Telegram - [Project X 交流群](https://t.me/projectXray) + - 交流群可在底线之上随便水,不要撕逼,没有滥权。 - 有问题尽管随便问,知道的尽量回答。 - 禁政治,禁 NSFW - [Project VLESS Group](https://t.me/projectVless) + - 对非中文参与的官方用户群。 [Project X](https://t.me/projectXray) 的姊妹群。 - 禁广告,禁人身攻击,禁政治。 diff --git a/backup/.vuepress/public/LogoX2.png b/docs/public/LogoX2.png similarity index 100% rename from backup/.vuepress/public/LogoX2.png rename to docs/public/LogoX2.png diff --git a/backup/.vuepress/public/logo.png b/docs/public/logo.png similarity index 100% rename from backup/.vuepress/public/logo.png rename to docs/public/logo.png diff --git a/docs/ru/index.md b/docs/ru/index.md index 46322e1e..a8e99129 100644 --- a/docs/ru/index.md +++ b/docs/ru/index.md @@ -1,40 +1,41 @@ --- -home: true -heroImage: /LogoX2.png -heroText: Project X -tagline: Не бойтесь облаков, застилающих вид – золотые глаза, словно факел, озаряют небо. -actions: - - text: Начать здесь → - link: /ru/document/ - type: primary - - text: Руководство по конфигурации → - link: /ru/config/ - type: secondary +# https://vitepress.dev/reference/default-theme-home-page +layout: home + +hero: + name: Project X + # text: Xray-core + tagline: Не бойтесь облаков, застилающих вид – золотые глаза, словно факел, озаряют небо. + image: + src: /LogoX2.png + alt: Xray, Penetrates Everything + actions: + - theme: brand + text: Начать здесь → + link: /ru/document/ + - theme: alt + text: Руководство по конфигурации → + link: /ru/config/ + features: - title: Высокоскоростной протокол + # icon: 🚀 details: Оригинальные протоколы VLESS и XTLS, свободные от избыточного шифрования, высвобождают вычислительную мощность процессора. - - title: Свободная комбинация - details: | - Безупречный механизм fallback, эффективно предотвращающий активное зондирование, совместное использование портов несколькими сервисами - + # icon: 🧩 + details: Безупречный механизм fallback, эффективно предотвращающий активное зондирование, совместное использование портов несколькими сервисами - title: Сверхнизкое потребление ресурсов - details: | - Можно использовать на OpenWRT RaspberryPi и других подобных устройствах. - + # icon: 🌱 + details: Можно использовать на OpenWRT RaspberryPi и других подобных устройствах. - title: Мощная маршрутизация - details: | - Высоконастраиваемая система маршрутизации, отвечающая разнообразным требованиям использования и позволяющая максимально эффективно использовать производительность сети. - + # icon: ⚙️ + details: Высоконастраиваемая система маршрутизации, отвечающая разнообразным требованиям использования и позволяющая максимально эффективно использовать производительность сети. - title: Полная совместимость - details: | - Полная совместимость с конфигурационными файлами и вызовами API v2ray-core. - + # icon: 🤝 + details: Полная совместимость с конфигурационными файлами и вызовами API v2ray-core. - title: Сообщество - details: | - Активные обсуждения и вклад сообщества, лицензия с открытым исходным кодом MPL 2.0. - -footer: Лицензия CC-BY-SA 4.0 | Авторские права 2020-настоящее время Сообщество Project X + # icon: 💖 + details: Активные обсуждения и вклад сообщества, лицензия с открытым исходным кодом MPL 2.0. --- ## XTLS? Xray? V2Ray? @@ -67,11 +68,13 @@ footer: Лицензия CC-BY-SA 4.0 | Авторские права 2020-на ### Telegram - [Группа обсуждения Project X](https://t.me/projectXray) + - В группе обсуждения можно свободно общаться, не допускаются оскорбления и злоупотребления. - Не стесняйтесь задавать вопросы, а если знаете ответ - помогите другим. - Запрещены политика и контент для взрослых (NSFW). - [Project VLESS Group](https://t.me/projectVless) + - Официальная группа для некитайскоговорящих пользователей (в основном русскоязычных). - [Канал Project X](https://t.me/projectXtls)