BlackSilverUfa
1.0.0
Go to Github Pages to access all functions
bash
> = 4.0python3-venv
(ubuntu) or python3
(alpine)git
(to work with GH-PAGES and obtaining the date of adding stream)tzdata
- to install the right time zonelibc6
(Ubuntu) or build-base
(Alpine)-for node.jsThe main part of the work is performed by Shell-script BSU in the root of the repository. Unfortunately, the automatic assembly on Windows is currently not supported, but the project can be assembled manually if there is Python.
At the first launch, the script will create a Python virtual environment in the Directory ./_python
and install all the packages that are notable for assembling and launching the project (they are listed in the REQUREMENTS.TXT file).
Below are examples of using the script ./bsu
.
# Обновить виртуальное окружение Python
./bsu venv update
# Загрузить текущую версию ветки gh-pages в директорию ./_site
# (обязательно для сборки проекта, т.к. в ветке gh-pages хранятся важные данные)
./bsu pages pull
# Загрузить текущую версию базы данных со стримами в ./data (обязательно)
./bsu data pull
# Загрузить недостающие субтитры (если они ещё доступны)
./bsu download-chats
# Собрать сайт из исходного кода
./bsu build
# или поднять веб-сервер на порту 8000
# (будет пересобирать сайт автоматически при изменении кода)
./bsu serve
# или поднять сервер и собрать сайт в режиме отладки
# (заменяет абсолютные ссылки на относительные, меняет режим webpack)
./bsu debug
# Закоммитить новую версию статики в локальную ветку gh-pages
./bsu pages commit " <msg> "
# Отправить изменения на GitHub
./bsu pages push