-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
166 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: huecker-docs | ||
path: dist | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,138 +1,168 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { defineConfig } from "vitepress"; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
locales: { | ||
root: { | ||
label: 'Русский', | ||
lang: 'ru', | ||
label: "Русский", | ||
lang: "ru", | ||
title: "Хуёкер", | ||
titleTemplate: ":title • Хуёкер", | ||
description: "Open-source прокси для использования Docker Hub из заблокированных стран", | ||
description: | ||
"Open-source прокси для использования Docker Hub из заблокированных стран", | ||
themeConfig: { | ||
search: { | ||
options: { | ||
translations: { | ||
button: { | ||
buttonText: 'Искать', | ||
buttonAriaLabel: 'Искать' | ||
buttonText: "Искать", | ||
buttonAriaLabel: "Искать", | ||
}, | ||
modal: { | ||
displayDetails: 'Показать детали', | ||
resetButtonTitle: 'Сброс', | ||
backButtonTitle: 'Назад', | ||
noResultsText: 'Ничего не найдено по запросу', | ||
displayDetails: "Показать детали", | ||
resetButtonTitle: "Сброс", | ||
backButtonTitle: "Назад", | ||
noResultsText: "Ничего не найдено по запросу", | ||
footer: { | ||
selectText: 'Открыть', | ||
selectKeyAriaLabel: 'Открыть', | ||
navigateText: 'Навигация', | ||
navigateUpKeyAriaLabel: 'Выше', | ||
navigateDownKeyAriaLabel: 'Ниже', | ||
closeText: 'Закрыть', | ||
closeKeyAriaLabel: 'Закрыть' | ||
} | ||
} | ||
} | ||
} | ||
selectText: "Открыть", | ||
selectKeyAriaLabel: "Открыть", | ||
navigateText: "Навигация", | ||
navigateUpKeyAriaLabel: "Выше", | ||
navigateDownKeyAriaLabel: "Ниже", | ||
closeText: "Закрыть", | ||
closeKeyAriaLabel: "Закрыть", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
lastUpdated: { | ||
text: 'Обновлено', | ||
text: "Обновлено", | ||
}, | ||
outline: { | ||
label: "На этой странице", | ||
}, | ||
docFooter: { | ||
prev: 'Предыдущая страница', | ||
next: 'Следующая страница' | ||
prev: "Предыдущая страница", | ||
next: "Следующая страница", | ||
}, | ||
darkModeSwitchLabel: 'Тема', | ||
lightModeSwitchTitle: 'Переключиться на светлую тему', | ||
darkModeSwitchTitle: 'Переключиться на тёмную тему', | ||
sidebarMenuLabel: 'Меню', | ||
returnToTopLabel: 'Наверх', | ||
langMenuLabel: 'Сменить язык', | ||
darkModeSwitchLabel: "Тема", | ||
lightModeSwitchTitle: "Переключиться на светлую тему", | ||
darkModeSwitchTitle: "Переключиться на тёмную тему", | ||
sidebarMenuLabel: "Меню", | ||
returnToTopLabel: "Наверх", | ||
langMenuLabel: "Сменить язык", | ||
nav: [ | ||
{text: 'Зачем', link: '/reasons'}, | ||
{text: 'Как использовать', link: '/use'}, | ||
{text: 'Поддержать', link: '/support'}, | ||
{text: 'Авторы', link: '/authors'} | ||
{ text: "Зачем", link: "/reasons" }, | ||
{ text: "Как использовать", link: "/use" }, | ||
{ text: "Поддержать", link: "/support" }, | ||
{ text: "Авторы", link: "/authors" }, | ||
], | ||
sidebar: [ | ||
{ | ||
text: 'Документация', | ||
text: "Документация", | ||
items: [ | ||
{text: 'Зачем', link: '/reasons'}, | ||
{text: 'Использование', link: '/use'}, | ||
{text: 'Другие прокси', link: '/others'}, | ||
{text: 'Поддержать', link: '/support'}, | ||
{text: 'Авторы', link: '/authors'}, | ||
] | ||
} | ||
{ text: "Зачем", link: "/reasons" }, | ||
{ text: "Использование", link: "/use" }, | ||
{ text: "Другие прокси", link: "/others" }, | ||
{ text: "Поддержать", link: "/support" }, | ||
{ text: "Авторы", link: "/authors" }, | ||
], | ||
}, | ||
], | ||
footer: { | ||
message: 'Опубликовано под лицензией Apache-2.0, сервер: dev', | ||
copyright: 'Создано <a href="https://github.com/altfoxie" target="_blank">@altfoxie</a>, сайт и лого <a href="https://github.com/glebgorokhov" target="_blank">@glebgorokhov</a>' | ||
message: "Опубликовано под лицензией Apache-2.0, сервер: dev", | ||
copyright: | ||
'Создано <a href="https://github.com/altfoxie" target="_blank">@altfoxie</a>, сайт и лого <a href="https://github.com/glebgorokhov" target="_blank">@glebgorokhov</a>', | ||
}, | ||
} | ||
}, | ||
}, | ||
en: { | ||
label: 'English', | ||
lang: 'en', | ||
label: "English", | ||
lang: "en", | ||
title: "Huecker", | ||
titleTemplate: ":title • Huecker", | ||
description: "Open-source proxy for using Docker Hub from blocked countries", | ||
description: | ||
"Open-source proxy for using Docker Hub from blocked countries", | ||
themeConfig: { | ||
nav: [ | ||
{text: 'Reasons', link: '/en/reasons'}, | ||
{text: 'How to Use', link: '/en/use'}, | ||
{text: 'Support', link: '/en/support'}, | ||
{text: 'Authors', link: '/en/authors'} | ||
{ text: "Reasons", link: "/en/reasons" }, | ||
{ text: "How to Use", link: "/en/use" }, | ||
{ text: "Support", link: "/en/support" }, | ||
{ text: "Authors", link: "/en/authors" }, | ||
], | ||
sidebar: [ | ||
{ | ||
text: 'Documentation', | ||
text: "Documentation", | ||
items: [ | ||
{text: 'Reasons', link: '/en/reasons'}, | ||
{text: 'How to Use', link: '/en/use'}, | ||
{text: 'Other Proxies', link: '/en/others'}, | ||
{text: 'Support', link: '/en/support'}, | ||
{text: 'Authors', link: '/en/authors'}, | ||
] | ||
} | ||
{ text: "Reasons", link: "/en/reasons" }, | ||
{ text: "How to Use", link: "/en/use" }, | ||
{ text: "Other Proxies", link: "/en/others" }, | ||
{ text: "Support", link: "/en/support" }, | ||
{ text: "Authors", link: "/en/authors" }, | ||
], | ||
}, | ||
], | ||
footer: { | ||
message: 'Published under Apache-2.0 license, server: dev', | ||
copyright: 'Created by <a href="https://github.com/altfoxie" target="_blank">@altfoxie</a>, site and logo <a href="https://github.com/glebgorokhov" target="_blank">@glebgorokhov</a>' | ||
message: "Published under Apache-2.0 license, server: dev", | ||
copyright: | ||
'Created by <a href="https://github.com/altfoxie" target="_blank">@altfoxie</a>, site and logo <a href="https://github.com/glebgorokhov" target="_blank">@glebgorokhov</a>', | ||
}, | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
head: [ | ||
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }], | ||
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }], | ||
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }], | ||
['link', { rel: 'manifest', href: '/site.webmanifest' }], | ||
['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#1d63ed' }], | ||
['link', { rel: 'icon', href: '/favicon.ico' }], | ||
['meta', { name: 'msapplication-TileColor', content: '#1d63ed' }], | ||
['meta', { name: 'theme-color', content: '#ffffff' }], | ||
[ | ||
"link", | ||
{ | ||
rel: "apple-touch-icon", | ||
sizes: "180x180", | ||
href: "/apple-touch-icon.png", | ||
}, | ||
], | ||
[ | ||
"link", | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
sizes: "32x32", | ||
href: "/favicon-32x32.png", | ||
}, | ||
], | ||
[ | ||
"link", | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
sizes: "16x16", | ||
href: "/favicon-16x16.png", | ||
}, | ||
], | ||
["link", { rel: "manifest", href: "/site.webmanifest" }], | ||
[ | ||
"link", | ||
{ rel: "mask-icon", href: "/safari-pinned-tab.svg", color: "#1d63ed" }, | ||
], | ||
["link", { rel: "icon", href: "/favicon.ico" }], | ||
["meta", { name: "msapplication-TileColor", content: "#1d63ed" }], | ||
["meta", { name: "theme-color", content: "#ffffff" }], | ||
], | ||
srcDir: './src', | ||
outDir: './dist', | ||
appearance: 'dark', | ||
srcDir: "./src", | ||
outDir: "./dist", | ||
appearance: "dark", | ||
lastUpdated: true, | ||
themeConfig: { | ||
siteTitle: false, | ||
search: { | ||
provider: 'local', | ||
provider: "local", | ||
detailedView: true, | ||
}, | ||
logo: { | ||
light: "/logo_light.svg", | ||
dark: "/logo_dark.svg", | ||
}, | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/huecker-io/huecker' } | ||
] | ||
} | ||
}) | ||
{ icon: "github", link: "https://github.com/huecker-io/huecker" }, | ||
], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import { h } from 'vue' | ||
import type { Theme } from 'vitepress' | ||
import DefaultTheme from 'vitepress/theme' | ||
import './style.css' | ||
import { h } from "vue"; | ||
import type { Theme } from "vitepress"; | ||
import DefaultTheme from "vitepress/theme"; | ||
import "./style.css"; | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}) | ||
}); | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
} | ||
} satisfies Theme | ||
}, | ||
} satisfies Theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,15 @@ | |
"scripts": { | ||
"docs:dev": "vitepress dev", | ||
"docs:build": "vitepress build", | ||
"docs:preview": "vitepress preview" | ||
"docs:preview": "vitepress preview", | ||
"docs:format": "prettier --write ." | ||
}, | ||
"dependencies": { | ||
"vitepress": "^1.2.2", | ||
"vue": "^3.4.27" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.2.5" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.