3737### 1. Модульная структура
3838- ** Центральный репозиторий** (` infotecha ` ) - управление платформой и реестром модулей
3939- ** Модульные репозитории** (` mod_* ` ) - содержат образовательный контент
40- - ** Базовый шаблон ** (` hugo-base ` ) - единая тема и компоненты для всех модулей
40+ - ** Фабрика шаблонов ** (` hugo-templates ` ) - гибкая система шаблонов, тем и компонентов для всех модулей
4141- ** Quiz Engine** - переиспользуемый компонент интерактивного тестирования
4242
4343### 2. Статическая генерация сайтов
@@ -69,19 +69,18 @@ infotecha/
6969└── scripts/ # Утилиты платформы
7070```
7171
72- #### 2. ` hugo-base ` - Базовый шаблон
73- ** Назначение:** Единая тема, компоненты, стили для всех модулей
74- ** Технологии:** Hugo, Compose Theme, Quiz Engine Integration
72+ #### 2. ` hugo-templates ` - Фабрика шаблонов
73+ ** Назначение:** Предоставляет набор шаблонов, тем и компонентов для сборки модулей
74+ ** Технологии:** Hugo, Go Templates, Node.js, JSON Schema
7575** Структура:**
7676```
77- hugo-base/
78- ├── hugo.toml # Конфигурация Hugo
79- ├── content/ # Структура контента
80- ├── layouts/ # Шаблоны страниц
81- ├── static/ # Статические ресурсы
82- │ └── quiz/ # Quiz Engine файлы
83- ├── themes/compose/ # Git submodule - Hugo theme
84- └── .github/workflows/ # CI/CD для шаблона
77+ hugo-templates/
78+ ├── templates/ # Коллекция шаблонов (e.g., minimal, default)
79+ ├── themes/ # Коллекция тем (e.g., compose)
80+ ├── components/ # Переиспользуемые компоненты (e.g., quiz-engine)
81+ ├── schemas/ # JSON схемы для валидации
82+ ├── scripts/ # Скрипты для сборки и автоматизации
83+ └── package.json # npm-пакет для CLI
8584```
8685
8786#### 3. ` mod_* ` - Образовательные модули
@@ -159,7 +158,7 @@ graph TD
159158 D --> E[Module Updated Handler]
160159 E --> F[Update modules.json]
161160 F --> G[Trigger Build Module]
162- G --> H[Clone hugo-base + mod_content]
161+ G --> H[Clone hugo-templates + mod_content]
163162 H --> I[Hugo Build Process]
164163 I --> J[Deploy to Production]
165164 J --> K[Apache Reload]
@@ -168,12 +167,10 @@ graph TD
168167#### 2. Автоматическая сборка модуля
169168``` yaml
170169# Ключевые этапы build-module.yml
171- - Checkout hugo-base template
172- - Checkout module content
173- - Merge content with template
174- - Update Hugo configuration
175- - Initialize Git submodules
176- - Run Hugo build
170+ - Read module.json from the updated module repository
171+ - Checkout hugo-templates repository
172+ - Checkout module content
173+ - Run hugo-templates build script with parameters from module.json
177174- Deploy to /var/www/infotecha.ru/
178175- Reload Apache2
179176` ` `
0 commit comments