mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-27 17:00:54 +01:00
Added translations for skip-to-content link
This commit is contained in:
parent
cb6c3e9541
commit
0edbfdc8aa
@ -32,14 +32,6 @@ markdown_extensions:
|
||||
- codehilite
|
||||
```
|
||||
|
||||
!!! warning "Migrating from Material 0.2.x"
|
||||
|
||||
In 0.2.x the CodeHilite extension was included with
|
||||
`codehilite(css_class=code)` which switched the CSS class from
|
||||
`.codehilite` to `.code`. The current version of the theme doesn't require
|
||||
that and defines styles for the default `.codehilite` class, so the part
|
||||
`css_class=code` needs to be removed.
|
||||
|
||||
[4]: http://pygments.org/languages
|
||||
|
||||
## Usage
|
||||
@ -115,7 +107,7 @@ Line numbers can be added by enabling the `linenums` flag in your `mkdocs.yml`:
|
||||
|
||||
``` yaml
|
||||
markdown_extensions:
|
||||
- codehilite:
|
||||
- codehilite:
|
||||
linenums:true
|
||||
```
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -34,7 +34,7 @@
|
||||
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
|
||||
{% endfor %}
|
||||
<link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}">
|
||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.0">
|
||||
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.1">
|
||||
{% endblock %}
|
||||
{% block htmltitle %}
|
||||
{% if page and page.meta and page.meta.title %}
|
||||
@ -46,7 +46,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.56ee7417.css">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.aa3de92b.css">
|
||||
{% if palette.primary or palette.accent %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
|
||||
{% endif %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 resultat",
|
||||
"search.result.other": "# resultater",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Gå til indholdet",
|
||||
"source.link.title": "Åbn arkiv",
|
||||
"toc.title": "Indholdsfortegnelse"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 documento encontrado",
|
||||
"search.result.other": "# documentos encontrados",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Saltar a contenido",
|
||||
"source.link.title": "Ir al repositorio",
|
||||
"toc.title": "Tabla de contenidos"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 documento trovato",
|
||||
"search.result.other": "# documenti trovati",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Vai al contenuto",
|
||||
"source.link.title": "Apri repository",
|
||||
"toc.title": "Indice"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 overeenkomende document",
|
||||
"search.result.other": "# overeenkomende documenten",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Ga naar inhoud",
|
||||
"source.link.title": "Ga naar repository",
|
||||
"toc.title": "Inhoudstafel"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 treff",
|
||||
"search.result.other": "# treff",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Gå til innhold",
|
||||
"source.link.title": "Gå til kilde",
|
||||
"toc.title": "Innholdsfortegnelse"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -1 +1,19 @@
|
||||
{% macro t(key) %}{{ {
"language": "pl",
"clipboard.copy": "Kopiuj do schowka",
"clipboard.copied": "Skopiowane",
"edit.link.title": "Edytuj tę stronę",
"footer.previous": "Poprzednia strona",
"footer.next": "Następna strona",
"meta.comments": "Komentarze",
"meta.source": "Kod źródłowy",
"search.placeholder": "Szukaj",
"search.result.placeholder": "Zacznij pisać, aby szukać",
"search.result.none": "Brak wyników wyszukiwania",
"search.result.one": "Wyniki wyszukiwania: 1",
"search.result.other": "Wyniki wyszukiwania: #",
"search.tokenizer": "[\s\-]+",
"source.link.title": "Idź do repozytorium",
"toc.title": "Spis treści"
}[key] }}{% endmacro %}
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "pl",
|
||||
"clipboard.copy": "Kopiuj do schowka",
|
||||
"clipboard.copied": "Skopiowane",
|
||||
"edit.link.title": "Edytuj tę stronę",
|
||||
"footer.previous": "Poprzednia strona",
|
||||
"footer.next": "Następna strona",
|
||||
"meta.comments": "Komentarze",
|
||||
"meta.source": "Kod źródłowy",
|
||||
"search.placeholder": "Szukaj",
|
||||
"search.result.placeholder": "Zacznij pisać, aby szukać",
|
||||
"search.result.none": "Brak wyników wyszukiwania",
|
||||
"search.result.one": "Wyniki wyszukiwania: 1",
|
||||
"search.result.other": "Wyniki wyszukiwania: #",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Przejdź do treści",
|
||||
"source.link.title": "Idź do repozytorium",
|
||||
"toc.title": "Spis treści"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 resultado encontrado",
|
||||
"search.result.other": "# resultados encontrados",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Ir para o conteúdo",
|
||||
"source.link.title": "Ir ao repositório",
|
||||
"toc.title": "Índice"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "Найдено 1 совпадение",
|
||||
"search.result.other": "Найдено # совпадений",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Перейти к содержанию",
|
||||
"source.link.title": "Перейти к репозиторию",
|
||||
"toc.title": "Содержание"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "1 sökresultat",
|
||||
"search.result.other": "# sökresultat",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Gå till innehållet",
|
||||
"source.link.title": "Gå till datakatalog",
|
||||
"toc.title": "Innehållsförteckning"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"search.result.one": "找到 1 个符合條件的結果",
|
||||
"search.result.other": "# 個符合條件的結果",
|
||||
"search.tokenizer": "[\,\。]+",
|
||||
"skip.link.title": "跳轉至",
|
||||
"source.link.title": "前往 Github 倉庫",
|
||||
"toc.title": "目錄"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mkdocs-material",
|
||||
"version": "2.5.0",
|
||||
"version": "2.5.1",
|
||||
"description": "A Material Design theme for MkDocs",
|
||||
"keywords": [
|
||||
"mkdocs",
|
||||
|
@ -55,10 +55,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Correct anchor offset for link blurring - pick a particularly large one
|
||||
// for the h1, so the anchor offset is always at the top of the page
|
||||
// Correct anchor offset for link blurring
|
||||
@each $level, $delta in (
|
||||
h1: 100rem,
|
||||
h1: 0.9rem,
|
||||
h2: 0.8rem,
|
||||
h3: 0.9rem,
|
||||
h4: 0.9rem,
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "1 resultat",
|
||||
"search.result.other": "# resultater",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Gå til indholdet",
|
||||
"source.link.title": "Åbn arkiv",
|
||||
"toc.title": "Indholdsfortegnelse"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "1 documento trovato",
|
||||
"search.result.other": "# documenti trovati",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Vai al contenuto",
|
||||
"source.link.title": "Apri repository",
|
||||
"toc.title": "Indice"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "1 overeenkomende document",
|
||||
"search.result.other": "# overeenkomende documenten",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Ga naar inhoud",
|
||||
"source.link.title": "Ga naar repository",
|
||||
"toc.title": "Inhoudstafel"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -18,24 +18,25 @@
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<!-- Translations: Polish -->
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "pl",
|
||||
"clipboard.copy": "Kopiuj do schowka",
|
||||
"clipboard.copied": "Skopiowane",
|
||||
"edit.link.title": "Edytuj tę stronę",
|
||||
"footer.previous": "Poprzednia strona",
|
||||
"footer.next": "Następna strona",
|
||||
"meta.comments": "Komentarze",
|
||||
"meta.source": "Kod źródłowy",
|
||||
"search.placeholder": "Szukaj",
|
||||
"search.result.placeholder": "Zacznij pisać, aby szukać",
|
||||
"search.result.none": "Brak wyników wyszukiwania",
|
||||
"search.result.one": "Wyniki wyszukiwania: 1",
|
||||
"search.result.other": "Wyniki wyszukiwania: #",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"source.link.title": "Idź do repozytorium",
|
||||
"toc.title": "Spis treści"
|
||||
-->
|
||||
|
||||
<!-- Translations: Polish -->
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "pl",
|
||||
"clipboard.copy": "Kopiuj do schowka",
|
||||
"clipboard.copied": "Skopiowane",
|
||||
"edit.link.title": "Edytuj tę stronę",
|
||||
"footer.previous": "Poprzednia strona",
|
||||
"footer.next": "Następna strona",
|
||||
"meta.comments": "Komentarze",
|
||||
"meta.source": "Kod źródłowy",
|
||||
"search.placeholder": "Szukaj",
|
||||
"search.result.placeholder": "Zacznij pisać, aby szukać",
|
||||
"search.result.none": "Brak wyników wyszukiwania",
|
||||
"search.result.one": "Wyniki wyszukiwania: 1",
|
||||
"search.result.other": "Wyniki wyszukiwania: #",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Przejdź do treści",
|
||||
"source.link.title": "Idź do repozytorium",
|
||||
"toc.title": "Spis treści"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "1 resultado encontrado",
|
||||
"search.result.other": "# resultados encontrados",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Ir para o conteúdo",
|
||||
"source.link.title": "Ir ao repositório",
|
||||
"toc.title": "Índice"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "Найдено 1 совпадение",
|
||||
"search.result.other": "Найдено # совпадений",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Перейти к содержанию",
|
||||
"source.link.title": "Перейти к репозиторию",
|
||||
"toc.title": "Содержание"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "1 sökresultat",
|
||||
"search.result.other": "# sökresultat",
|
||||
"search.tokenizer": "[\s\-]+",
|
||||
"skip.link.title": "Gå till innehållet",
|
||||
"source.link.title": "Gå till datakatalog",
|
||||
"toc.title": "Innehållsförteckning"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "找到 1 个符合條件的結果",
|
||||
"search.result.other": "# 個符合條件的結果",
|
||||
"search.tokenizer": "[\,\。]+",
|
||||
"skip.link.title": "跳轉至",
|
||||
"source.link.title": "前往 Github 倉庫",
|
||||
"toc.title": "目錄"
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -36,6 +36,7 @@
|
||||
"search.result.one": "找到 1 个符合条件的结果",
|
||||
"search.result.other": "# 个符合条件的结果",
|
||||
"search.tokenizer": "[\,\。]+",
|
||||
"skip.link.title": "跳转至",
|
||||
"source.link.title": "前往 Github 仓库",
|
||||
"toc.title": "目录"
|
||||
}[key] }}{% endmacro %}
|
||||
|
Loading…
Reference in New Issue
Block a user