mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Added support to disable version selector in mike
This commit is contained in:
parent
9721228f1f
commit
c181a46f74
@ -224,8 +224,11 @@
|
|||||||
"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 mike = config.plugins.get("mike") -%}
|
||||||
|
{%- if not mike or mike.config.version_selector -%}
|
||||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
{%- 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 }) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@ -401,8 +401,11 @@
|
|||||||
|
|
||||||
<!-- Versioning -->
|
<!-- Versioning -->
|
||||||
{%- if config.extra.version -%}
|
{%- if config.extra.version -%}
|
||||||
|
{%- set mike = config.plugins.get("mike") -%}
|
||||||
|
{%- if not mike or mike.config.version_selector -%}
|
||||||
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
{%- set _ = app.update({ "version": config.extra.version }) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
<!-- Tags -->
|
<!-- Tags -->
|
||||||
{%- if config.extra.tags -%}
|
{%- if config.extra.tags -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user