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

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