2023-08-31
This commit is contained in:
parent
fe7c968aaf
commit
88cb216b42
13 changed files with 157 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
.idea
|
||||
*.iml
|
||||
*.zip
|
||||
_site*
|
||||
.repo_*
|
||||
|
|
24
DIRECTORY_TREE.md
Normal file
24
DIRECTORY_TREE.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
## Дерево каталогов
|
||||
|
||||
<pre>
|
||||
<a href='.'>.</a>
|
||||
├─ <a href='jekyll_site'>jekyll_site</a>
|
||||
│ ├─ <a href='jekyll_site/_includes'>_includes</a>
|
||||
│ │ ├─ <a href='jekyll_site/_includes/counters_body.html'>counters_body.html</a>
|
||||
│ │ └─ <a href='jekyll_site/_includes/counters_head.html'>counters_head.html</a>
|
||||
│ ├─ <a href='jekyll_site/Gemfile_color'>Gemfile_color</a>
|
||||
│ ├─ <a href='jekyll_site/Gemfile_older'>Gemfile_older</a>
|
||||
│ ├─ <a href='jekyll_site/_config_color.yml'>_config_color.yml</a>
|
||||
│ ├─ <a href='jekyll_site/_config_older.yml'>_config_older.yml</a>
|
||||
│ └─ <a href='jekyll_site/robots.txt'>robots.txt</a>
|
||||
├─ <a href='.gitattributes'>.gitattributes</a>
|
||||
├─ <a href='.gitignore'>.gitignore</a>
|
||||
├─ <a href='CONTRIBUTING.md'>CONTRIBUTING.md</a>
|
||||
├─ <a href='DIRECTORY_TREE.md'>DIRECTORY_TREE.md</a>
|
||||
├─ <a href='LICENSE.md'>LICENSE.md</a>
|
||||
├─ <a href='OPEN_LICENSE.txt'>OPEN_LICENSE.txt</a>
|
||||
├─ <a href='README.md'>README.md</a>
|
||||
├─ <a href='build.sh'>build.sh</a>
|
||||
├─ <a href='package.sh'>package.sh</a>
|
||||
└─ <a href='serve.sh'>serve.sh</a>
|
||||
</pre>
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
## Пустой вёб-сайт
|
||||
|
||||
В планах, конкретной даты нет.
|
41
build.sh
Executable file
41
build.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
echo "Сборка сайта в двух помидорных темах и оптимизация результатов."
|
||||
currentTimeMillis=$(date '+%s%3N')
|
||||
rm -rf _site
|
||||
rm -rf _site_older
|
||||
rm -rf _site_color
|
||||
echo "Сборка старого помидора."
|
||||
mkdir -p _site_older
|
||||
cp -r jekyll_site/_includes _site_older
|
||||
cp -r jekyll_site/_config_older.yml _site_older/_config.yml
|
||||
cp -r jekyll_site/Gemfile_older _site_older/Gemfile
|
||||
cd _site_older || exit
|
||||
jekyll build --disable-disk-cache
|
||||
cp -r _site ..
|
||||
cd ..
|
||||
echo "Сборка цветного помидора."
|
||||
mkdir -p _site_color
|
||||
cp -r jekyll_site/_includes _site_color
|
||||
cp -r jekyll_site/_config_color.yml _site_color/_config.yml
|
||||
cp -r jekyll_site/Gemfile_color _site_color/Gemfile
|
||||
cd _site_color || exit
|
||||
jekyll build --disable-disk-cache
|
||||
cp -r _site ../_site/color
|
||||
cd ..
|
||||
echo "Копирование без сборки."
|
||||
cp -r jekyll_site/robots.txt _site
|
||||
echo "Оптимизация собранного контента."
|
||||
cd _site || exit
|
||||
cp -r assets/* .
|
||||
rm -r assets
|
||||
rm -r color/assets/favicon.ico
|
||||
cp -r color/assets/* .
|
||||
rm -r color/assets
|
||||
rm -r color/404.html
|
||||
echo "Удаление лишнего, потому что сайта ещё нет."
|
||||
cd ..
|
||||
rm -r _site/css
|
||||
rm -r _site/img
|
||||
rm -r _site/js
|
||||
rm -r _site/resources
|
||||
echo "Время выполнения сборки: $(("$(date '+%s%3N')" - "$currentTimeMillis")) мс."
|
3
jekyll_site/Gemfile_color
Normal file
3
jekyll_site/Gemfile_color
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "https://rubygems.org"
|
||||
gem "jekyll"
|
||||
gem "color-tomato-theme"
|
3
jekyll_site/Gemfile_older
Normal file
3
jekyll_site/Gemfile_older
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "https://rubygems.org"
|
||||
gem "jekyll"
|
||||
gem "older-tomato-theme"
|
30
jekyll_site/_config_color.yml
Normal file
30
jekyll_site/_config_color.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
# название сайта для подписи в футере
|
||||
name: "Код с комментариями"
|
||||
# подпись в футере для переведённых страниц
|
||||
name_translated: "Code with comments"
|
||||
# URL адрес сайта, включая протокол
|
||||
url: "https://pomodoro6.mircloud.ru"
|
||||
# подпапка этой сборки для относительных URLs
|
||||
baseurl: "/color"
|
||||
# ссылка в верхнем левом углу заглавных страниц
|
||||
homepage_url: "https://gitea.com/pomodoro/6"
|
||||
# представление ссылки
|
||||
homepage_name: "GITEA"
|
||||
# подпапка альтернативной сборки
|
||||
older_tomato_baseurl: ""
|
||||
# часовой пояс для формата даты ISO-8601
|
||||
timezone: "Europe/Moscow"
|
||||
# имя автора для SEO-разметки и подписи в футере
|
||||
author: "Головин Г.Г."
|
||||
# транслитерация имени автора для переведённых страниц
|
||||
author_translated: "Golovin G.G."
|
||||
# дополнение к подписи в футере для переведённых страниц
|
||||
translation_caption: "translation from Russian"
|
||||
# тема оформления для сборки
|
||||
theme: color-tomato-theme
|
||||
# макет для сборки
|
||||
defaults:
|
||||
- scope:
|
||||
path: ""
|
||||
values:
|
||||
layout: default
|
30
jekyll_site/_config_older.yml
Normal file
30
jekyll_site/_config_older.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
# название сайта для подписи в футере
|
||||
name: "Код с комментариями"
|
||||
# подпись в футере для переведённых страниц
|
||||
name_translated: "Code with comments"
|
||||
# URL адрес сайта, включая протокол
|
||||
url: "https://pomodoro6.mircloud.ru"
|
||||
# подпапка этой сборки для относительных URLs
|
||||
baseurl: ""
|
||||
# ссылка в верхнем левом углу заглавных страниц
|
||||
homepage_url: "https://gitea.com/pomodoro/6"
|
||||
# представление ссылки
|
||||
homepage_name: "GITEA"
|
||||
# подпапка альтернативной сборки
|
||||
color_tomato_baseurl: "/color"
|
||||
# часовой пояс для формата даты ISO-8601
|
||||
timezone: "Europe/Moscow"
|
||||
# имя автора для SEO-разметки и подписи в футере
|
||||
author: "Головин Г.Г."
|
||||
# транслитерация имени автора для переведённых страниц
|
||||
author_translated: "Golovin G.G."
|
||||
# дополнение к подписи в футере для переведённых страниц
|
||||
translation_caption: "translation from Russian"
|
||||
# тема оформления для сборки
|
||||
theme: older-tomato-theme
|
||||
# макет для сборки
|
||||
defaults:
|
||||
- scope:
|
||||
path: ""
|
||||
values:
|
||||
layout: default
|
2
jekyll_site/_includes/counters_body.html
Normal file
2
jekyll_site/_includes/counters_body.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- begin counters_body template -->
|
||||
<!-- end counters_body template -->
|
2
jekyll_site/_includes/counters_head.html
Normal file
2
jekyll_site/_includes/counters_head.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- begin counters_head template -->
|
||||
<!-- end counters_head template -->
|
7
jekyll_site/robots.txt
Normal file
7
jekyll_site/robots.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
User-agent: *
|
||||
Disallow: *404*
|
||||
|
||||
Sitemap: https://pomodoro6.mircloud.ru/pagesmap.xml
|
||||
Sitemap: https://pomodoro6.mircloud.ru/color/pagesmap.xml
|
||||
|
||||
Host: https://pomodoro6.mircloud.ru
|
5
package.sh
Executable file
5
package.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
echo "Подготовка архива для последующего развёртывания."
|
||||
cd _site || exit
|
||||
rm -rf ../pomodoro6.zip
|
||||
7z a ../pomodoro6.zip ./*
|
4
serve.sh
Executable file
4
serve.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
echo "Локальное развёртывание для проверки корректности сборки."
|
||||
jekyll serve --skip-initial-build --disable-disk-cache --host localhost
|
||||
echo "Адрес сервера: http://localhost:4000"
|
Loading…
Add table
Reference in a new issue