Skip to content

Commit 1d52cb1

Browse files
author
Claude-InfoTech
committed
Move notification workflow to root .github directory
- Fix workflow location for GitHub Actions to detect it - Enable automatic notifications when docs content changes 🤖 Generated with Claude Code
1 parent 315c396 commit 1d52cb1

3 files changed

Lines changed: 42 additions & 20 deletions

File tree

.github/workflows/notify-hub.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Notify Hub of Corporate Site Update
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'docs/**'
9+
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Repository Dispatch
15+
uses: peter-evans/repository-dispatch@v3
16+
with:
17+
token: ${{ secrets.PAT_TOKEN }}
18+
repository: info-tech-io/info-tech-io.github.io
19+
event-type: corporate-site-updated
20+
client-payload: |
21+
{
22+
"repository": "${{ github.repository }}",
23+
"ref": "${{ github.ref }}",
24+
"sha": "${{ github.sha }}"
25+
}

architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
### 1. Модульная структура
4242
- **Центральный репозиторий** (`infotecha`) - управление платформой и реестром модулей
4343
- **Модульные репозитории** (`mod_*`) - содержат образовательный контент
44-
- **Базовый шаблон** (`hugo-base`) - единая тема и компоненты для всех модулей
44+
- **Фабрика шаблонов** (`hugo-templates`) - гибкая система шаблонов, тем и компонентов для всех модулей
4545
- **Quiz Engine** - переиспользуемый компонент интерактивного тестирования
4646

4747
### 2. Статическая генерация сайтов

mvp/01_Архитектурная_аннотация.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
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

Comments
 (0)