Исправления сборки и запуска документации

This commit is contained in:
2026-07-22 11:06:02 +08:00
parent 890674dea0
commit f85c61d273
2 changed files with 11 additions and 14 deletions
+9 -9
View File
@@ -11,10 +11,9 @@ live: clear
@docker stop iptv-docs-dev 2>/dev/null; \
docker run \
--rm \
--interactive \
--tty \
--pull always \
--env PYTHONPATH=/docs \
--publish 8801:8801 \
--publish 8801:8000 \
--volume ${PWD}:/docs \
--name iptv-docs-dev \
zensical/zensical:latest
@@ -24,18 +23,19 @@ site: clear
@echo "*** Wait until zensical finish"
@docker stop iptv-docs-dev 2>/dev/null; \
docker run \
--pull always \
--rm \
--pull always \
--env PYTHONPATH=/docs \
--volume ${PWD}:/docs \
--name iptv-docs-dev \
zensical/zensical:latest \
build \
--clean
--clean \
--strict
## image = Build a docker image
image:
@docker build --tag git.axenov.dev/iptv/iptv-docs:latest:latest .
@docker build --tag git.axenov.dev/iptv/iptv-docs:latest .
## run = Run docker container from image built with `make image` on http://localhost:8802
run:
@@ -45,12 +45,12 @@ run:
--rm \
--publish 8802:80 \
--name iptv-docs \
git.axenov.dev/iptv/iptv-docs:latest:latest
git.axenov.dev/iptv/iptv-docs:latest
# push = Push docker image built with `make image` to git.axenov.dev
## push = Push docker image built with `make image` to git.axenov.dev
push:
@docker login git.axenov.dev; \
docker push git.axenov.dev/iptv/iptv-docs:latest:latest
docker push git.axenov.dev/iptv/iptv-docs:latest
## help = Show this message and exit (default)
help: Makefile
+2 -5
View File
@@ -14,7 +14,7 @@ edit_uri = "src/branch/master/content/"
docs_dir = "./content"
site_dir = "./site"
use_directory_urls = false
dev_addr = "localhost:8801"
dev_addr = "localhost:8000"
watch = ["content", "snippets"]
extra_css = ["_assets/css/extra.css"]
# extra_javascript = ["_assets/js/extra.js"]
@@ -62,11 +62,8 @@ nav = [
"common/config/config.md",
]},
# {"Для документации" = [
# {"Иконки" = [
# "iptvc/dev/docs/codicons.md",
# "iptvc/dev/docs/ionicons.md",
# ]},
# "iptvc/dev/docs/components.md",
# "iptvc/dev/docs/codicons.md",
# ]},
{"Форматы файлов" = [
"common/formats/playlists.md",