Добавил оптимизацию и кэширование документации
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-02-23 13:19:15 +03:00
parent d3672b480d
commit 54a5b14991
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
2 changed files with 15 additions and 3 deletions

View File

@ -112,6 +112,9 @@ trigger:
steps:
- name: build site
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
volumes:
- name: mkdocs_cache
path: ${DRONE_WORKSPACE}/documentation/.cache
environment:
SSH_DEPLOY_KEY:
from_secret: SSH_DEPLOY_KEY
@ -139,8 +142,13 @@ steps:
image_pull_secrets:
- DOCKER_AUTH
volumes:
- name: mkdocs_cache
host:
path: /drone/volume/mkdocs_cache/gitlab_notification
---
kind: signature
hmac: 3e1e5987a50eddb152d276daa517ab4f1c8eae18691ca77edd26c3dbd2000892
hmac: 5a4817523170ac82c6061ebe98fae73a28b2d10df2b699329e729814510a8c87
...

View File

@ -41,8 +41,6 @@ theme:
- navigation.indexes
- navigation.sections
- navigation.tracking
# - navigation.tabs
# - navigation.tabs.sticky
- navigation.footer
- search
- search.suggest
@ -52,6 +50,9 @@ theme:
- toc.follow
- toc.integrate
plugins:
- optimize:
concurrency: 1
optimize_jpg_quality: 90
- social
- meta
- tags
@ -60,6 +61,9 @@ theme:
- git-revision-date-localized:
enable_creation_date: true
markdown_extensions:
- admonition
- attr_list
- md_in_html
- toc:
permalink: true
toc_depth: 3