mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed instant navigation removing color theme tags
This commit is contained in:
@@ -18,4 +18,4 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
__version__ = "9.5.11"
|
__version__ = "9.5.12"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -32,7 +32,7 @@
|
|||||||
<link rel="alternate" type="application/rss+xml" title="{{ lang.t('rss.updated') }}" href="{{ 'feed_rss_updated.xml' | url }}">
|
<link rel="alternate" type="application/rss+xml" title="{{ lang.t('rss.updated') }}" href="{{ 'feed_rss_updated.xml' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<link rel="icon" href="{{ config.theme.favicon | url }}">
|
<link rel="icon" href="{{ config.theme.favicon | url }}">
|
||||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-9.5.11">
|
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-9.5.12">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block htmltitle %}
|
{% block htmltitle %}
|
||||||
{% if page.meta and page.meta.title %}
|
{% if page.meta and page.meta.title %}
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.553b3b51.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.c8d2eff1.min.js' | url }}"></script>
|
||||||
{% for script in config.extra_javascript %}
|
{% for script in config.extra_javascript %}
|
||||||
{{ script | script_tag }}
|
{{ script | script_tag }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "mkdocs-material",
|
"name": "mkdocs-material",
|
||||||
"version": "9.5.11",
|
"version": "9.5.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mkdocs-material",
|
"name": "mkdocs-material",
|
||||||
"version": "9.5.11",
|
"version": "9.5.12",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mkdocs-material",
|
"name": "mkdocs-material",
|
||||||
"version": "9.5.11",
|
"version": "9.5.12",
|
||||||
"description": "Documentation that simply works",
|
"description": "Documentation that simply works",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mkdocs",
|
"mkdocs",
|
||||||
|
|||||||
@@ -205,8 +205,14 @@ function inject(next: Document): Observable<Document> {
|
|||||||
document.head.appendChild(el)
|
document.head.appendChild(el)
|
||||||
|
|
||||||
// Remove meta tags that are not present in the new document
|
// Remove meta tags that are not present in the new document
|
||||||
for (const el of tags.values())
|
for (const el of tags.values()) {
|
||||||
|
const name = el.getAttribute("name")
|
||||||
|
// @todo - find a better way to handle attributes we add dynamically in
|
||||||
|
// other components without mounting components on every navigation, as
|
||||||
|
// this might impact overall performance - see https://t.ly/ehp_O
|
||||||
|
if (name !== "theme-color" && name !== "color-scheme")
|
||||||
el.remove()
|
el.remove()
|
||||||
|
}
|
||||||
|
|
||||||
// After components and meta tags were replaced, re-evaluate scripts
|
// After components and meta tags were replaced, re-evaluate scripts
|
||||||
// that were provided by the author as part of Markdown files
|
// that were provided by the author as part of Markdown files
|
||||||
|
|||||||
Reference in New Issue
Block a user