Skip to content
Snippets Groups Projects
Commit b6fc85f6 authored by squidfunk's avatar squidfunk Committed by Martin Donath
Browse files

Added German translation for skip link

parent 9c59f5eb
No related branches found
No related tags found
No related merge requests found
mkdocs-material-2.6.0 (2017-xx-xx)
* Added permalink to main headline
* Added English as a fallback for missing translations
* Improved accessibility with skip-to-content link
mkdocs-material-2.5.0 (2017-01-13) mkdocs-material-2.5.0 (2017-01-13)
* Added support for right-to-left languages * Added support for right-to-left languages
......
hero: Yes, this is set via Metadata hero: Metadata enables hero teaser texts
path: tree/master/docs/extensions path: tree/master/docs/extensions
source: metadata.md source: metadata.md
...@@ -46,7 +46,7 @@ Material exposes a simple text-only page-local hero via Metadata, as you can ...@@ -46,7 +46,7 @@ Material exposes a simple text-only page-local hero via Metadata, as you can
see on the current page when you scroll to the top. It's as simple as: see on the current page when you scroll to the top. It's as simple as:
``` markdown ``` markdown
hero: Yes, this is set via Metadata hero: Metadata enables hero teaser texts
``` ```
### Overriding the title ### Overriding the title
......
# Material <small>for MkDocs</small> # Material <small>for MkDocs</small>
## Beautiful project documentation ## Create beautiful project documentation
Material is a theme for [MkDocs][1], an excellent static site generator geared Material is a theme for [MkDocs][1], an excellent static site generator geared
towards project documentation. It is built using Google's [Material Design][2] towards project documentation. It is built using Google's [Material Design][2]
......
{% import "partials/language/" + config.theme.language + ".html" as lang %} {% import "partials/language/" + config.theme.language + ".html" as lang %}
{% import "partials/language/en.html" as oops %}
{% macro t(key) %}{{ { {% macro t(key) %}{{ {
"search.language": ( "search.language": (
config.extra.search | default({}) config.extra.search | default({})
...@@ -6,4 +7,4 @@ ...@@ -6,4 +7,4 @@
"search.tokenizer": ( "search.tokenizer": (
config.extra.search | default({}) config.extra.search | default({})
).tokenizer | default("", true), ).tokenizer | default("", true),
}[key] or lang.t(key) }}{% endmacro %} }[key] or lang.t(key) or oops.t(key) }}{% endmacro %}
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"search.result.one": "1 Suchergebnis", "search.result.one": "1 Suchergebnis",
"search.result.other": "# Suchergebnisse", "search.result.other": "# Suchergebnisse",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Zum Inhalt",
"source.link.title": "Quellcode", "source.link.title": "Quellcode",
"toc.title": "Inhaltsverzeichnis" "toc.title": "Inhaltsverzeichnis"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
<!-- Import translations for given language --> <!-- Import translations for given language -->
{% import "partials/language/" + config.theme.language + ".html" as lang %} {% import "partials/language/" + config.theme.language + ".html" as lang %}
<!-- Import fallback translations -->
{% import "partials/language/en.html" as oops %}
<!-- Re-export translations --> <!-- Re-export translations -->
{% macro t(key) %}{{ { {% macro t(key) %}{{ {
"search.language": ( "search.language": (
...@@ -31,4 +34,4 @@ ...@@ -31,4 +34,4 @@
"search.tokenizer": ( "search.tokenizer": (
config.extra.search | default({}) config.extra.search | default({})
).tokenizer | default("", true), ).tokenizer | default("", true),
}[key] or lang.t(key) }}{% endmacro %} }[key] or lang.t(key) or oops.t(key) }}{% endmacro %}
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
"search.result.one": "1 Suchergebnis", "search.result.one": "1 Suchergebnis",
"search.result.other": "# Suchergebnisse", "search.result.other": "# Suchergebnisse",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Zum Inhalt",
"source.link.title": "Quellcode", "source.link.title": "Quellcode",
"toc.title": "Inhaltsverzeichnis" "toc.title": "Inhaltsverzeichnis"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment