mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support to disable version selector in mike
This commit is contained in:
parent
9721228f1f
commit
c181a46f74
@ -224,7 +224,10 @@
|
||||
"search": "assets/javascripts/workers/search.f886a092.min.js" | url
|
||||
} -%}
|
||||
{%- if config.extra.version -%}
|
||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
||||
{%- set mike = config.plugins.get("mike") -%}
|
||||
{%- if not mike or mike.config.version_selector -%}
|
||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- if config.extra.tags -%}
|
||||
{%- set _ = app.update({ "tags": config.extra.tags }) -%}
|
||||
|
@ -401,7 +401,10 @@
|
||||
|
||||
<!-- Versioning -->
|
||||
{%- if config.extra.version -%}
|
||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
||||
{%- set mike = config.plugins.get("mike") -%}
|
||||
{%- if not mike or mike.config.version_selector -%}
|
||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
|
||||
<!-- Tags -->
|
||||
|
Loading…
Reference in New Issue
Block a user