mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01: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
|
"search": "assets/javascripts/workers/search.f886a092.min.js" | url
|
||||||
} -%}
|
} -%}
|
||||||
{%- if config.extra.version -%}
|
{%- 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 -%}
|
{%- endif -%}
|
||||||
{%- if config.extra.tags -%}
|
{%- if config.extra.tags -%}
|
||||||
{%- set _ = app.update({ "tags": config.extra.tags }) -%}
|
{%- set _ = app.update({ "tags": config.extra.tags }) -%}
|
||||||
|
@ -401,7 +401,10 @@
|
|||||||
|
|
||||||
<!-- Versioning -->
|
<!-- Versioning -->
|
||||||
{%- if config.extra.version -%}
|
{%- 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 -%}
|
{%- endif -%}
|
||||||
|
|
||||||
<!-- Tags -->
|
<!-- Tags -->
|
||||||
|
Loading…
Reference in New Issue
Block a user