mirror of
https://github.com/gromlab-ru/svg-sprites.git
synced 2026-07-22 04:40:17 +03:00
sync
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
const agentReferences = [
|
||||
'programmatic-api.md',
|
||||
'complex-svg.md',
|
||||
]
|
||||
const agentReferences = {
|
||||
en: [
|
||||
'programmatic-api.md',
|
||||
'complex-svg.md',
|
||||
],
|
||||
ru: [
|
||||
'complex-svg.md',
|
||||
],
|
||||
}
|
||||
|
||||
const guideFiles = [
|
||||
'standalone.md',
|
||||
@@ -18,7 +23,7 @@ const guideFiles = [
|
||||
function documents(language) {
|
||||
return [
|
||||
{ entry: `src/${language}/SKILL.md`, to: 'SKILL.md', skill: true },
|
||||
...agentReferences.map((file) => ({
|
||||
...agentReferences[language].map((file) => ({
|
||||
entry: `src/${language}/references/${file}`,
|
||||
to: `references/${file}`,
|
||||
})),
|
||||
@@ -32,6 +37,20 @@ function guides(language) {
|
||||
}))
|
||||
}
|
||||
|
||||
const russianDocumentation = [
|
||||
{ from: '../../README_RU.md', to: 'references/README_RU.md' },
|
||||
{
|
||||
fromDirectory: '../../docs/ru',
|
||||
toDirectory: 'references/docs/ru',
|
||||
extensions: ['.md'],
|
||||
exclude: [
|
||||
'guides/AGENTS.md',
|
||||
'guides/README.md',
|
||||
'reference/README.md',
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
export default [
|
||||
{
|
||||
name: 'svg-sprites',
|
||||
@@ -43,10 +62,10 @@ export default [
|
||||
},
|
||||
{
|
||||
name: 'svg-sprites-ru',
|
||||
description: 'Используй только при настройке, изменении или диагностике @gromlab/svg-sprites. Триггеры: @gromlab/svg-sprites, svg-sprite.config.ts, defineSpriteConfig, generateSprite, standalone, standalone@vite, standalone@webpack, react@vite, react@webpack, next@app, next@pages, SpriteConfig.input, --input, SpriteViewer и --icon-color-N. НЕ используй для самописных SVG-спрайтов, inline SVG, favicon, растровых изображений, icon fonts или выбора библиотеки иконок.',
|
||||
description: 'Используй только при настройке, изменении или диагностике @gromlab/svg-sprites. Триггеры: @gromlab/svg-sprites, svg-sprite.config.json, svg-sprite.config.ts, defineSpriteConfig, generateSprite, standalone, standalone@vite, standalone@webpack, react@vite, react@webpack, next@app, next@pages, SpriteConfig.input, --input, SpriteViewer и --icon-color-N. НЕ используй для самописных SVG-спрайтов, inline SVG, favicon, растровых изображений, icon fonts или выбора библиотеки иконок.',
|
||||
output: '../artifacts/svg-sprites-ru',
|
||||
maxSkillBytes: 48_000,
|
||||
documents: documents('ru'),
|
||||
copy: guides('ru'),
|
||||
copy: russianDocumentation,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user