ред mkdocs и dockerfile

This commit is contained in:
mirzakaeva_ns 2023-12-28 14:36:55 +05:00
parent ae5a3b3549
commit b143aaa41d
2 changed files with 6 additions and 22 deletions

View File

@ -42,7 +42,7 @@ FROM builder as makestatic
ADD docs /src/docs/ ADD docs /src/docs/
ADD mkdocs.yml /src/ ADD mkdocs.yml /src/
ADD def.yml /src/ ADD def.yml /src/
RUN cd /src && mkdocs build -f def.yml RUN cd /src && mkdocs build
FROM nginx FROM nginx
# RUN rm /etc/nginx/sites-enabled/default # RUN rm /etc/nginx/sites-enabled/default

View File

@ -13,6 +13,9 @@ markdown_extensions:
- pymdownx.highlight - pymdownx.highlight
- pymdownx.superfences - pymdownx.superfences
- def_list - def_list
- pymdownx.details
- pymdownx.tasklist:
custom_checkbox: true
extra_css: extra_css:
- css/extra.css - css/extra.css
@ -23,32 +26,13 @@ extra_javascript:
plugins: plugins:
- search: - search:
lang: ['ru', 'en'] lang: ['ru', 'en']
#- img2fig - glightbox:
- glightbox:
zoomable: true zoomable: true
auto_caption: true
skip_classes:
- no-zoom
- section-index - section-index
- include-markdown - include-markdown
- mkdocs-video - mkdocs-video
- literate-nav: - literate-nav:
nav_file: SUMMARY.md nav_file: SUMMARY.md
# - with-pdf:
# author: Регина Минаева, Ольга Мешкова
# copyright: ООО "Лексема"
# #
# #cover: false
# #back_cover: true
# #cover_title: TITLE TEXT
# cover_subtitle: Версия 20221024-02
# #custom_template_path: TEMPLATES PATH
# #
# output_path: pdf\LexemaERP-manual.pdf
# toc_title: Оглавление
theme: theme:
name: material name: material
features: features:
@ -62,4 +46,4 @@ theme:
primary: orange primary: orange
docs_dir: docs docs_dir: docs
site_dir: site site_dir: site