Skip to content

Commit

Permalink
Added view source button
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Dec 11, 2022
1 parent 9df09d2 commit 28d64a2
Show file tree
Hide file tree
Showing 130 changed files with 402 additions and 425 deletions.
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ body:
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
"action.edit": "Edit this page",
"action.skip": "Skip to content",
"action.view": "View source of this page",
"announce.dismiss": "Don't show this again",
"clipboard.copy": "Copy to clipboard",
"clipboard.copied": "Copied to clipboard",
"consent.accept": "Accept",
"consent.manage": "Manage settings",
"consent.reject": "Reject",
"edit.link": "Edit this page",
"footer": "Footer",
"footer.next": "Next",
"footer.previous": "Previous",
Expand All @@ -52,10 +54,9 @@ body:
"search.result.term.missing": "Missing",
"select.language": "Select language",
"select.version": "Select version",
"skip.link": "Skip to content",
"source": "Go to repository",
"source.file.date.created": "Created",
"source.file.date.updated": "Last update",
"source.link": "Go to repository",
"tabs": "Tabs",
"toc": "Table of contents",
"top": "Back to top"
Expand Down
13 changes: 0 additions & 13 deletions material/.overrides/partials/actions.html

This file was deleted.

1 change: 1 addition & 0 deletions material/assets/stylesheets/extra.07698e60.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/extra.07698e60.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion material/assets/stylesheets/extra.c507a49a.min.css

This file was deleted.

1 change: 0 additions & 1 deletion material/assets/stylesheets/extra.c507a49a.min.css.map

This file was deleted.

4 changes: 2 additions & 2 deletions material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{% if page.toc | first is defined %}
{% set skip = page.toc | first %}
<a href="{{ skip.url | url }}" class="md-skip">
{{ lang.t("skip.link") }}
{{ lang.t("action.skip") }}
</a>
{% endif %}
</div>
Expand Down Expand Up @@ -240,7 +240,7 @@
{% endfor %}
{% endblock %}
{% if page.meta and page.meta.ᴴₒᴴₒᴴₒ %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.c507a49a.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.07698e60.min.css' | url }}">
<script src="{{ 'assets/javascripts/extra/bundle.f719a234.min.js' | url }}" defer></script>
{% endif %}
</body>
Expand Down
16 changes: 12 additions & 4 deletions material/partials/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
This file was automatically generated - do not edit
-#}
{% if page.edit_url %}
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link') }}" class="md-content__button md-icon">
{% set icon = config.theme.icon.edit or "material/pencil" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</a>
{% if "content.action.edit" in features %}
<a href="{{ page.edit_url }}" title="{{ lang.t('action.edit') }}" class="md-content__button md-icon">
{% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</a>
{% endif %}
{% if "content.action.view" in features %}
<a href="{{ page.edit_url | replace(edit, view) }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
{% set icon = config.theme.icon.view or "material/file-eye-outline" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</a>
{% endif %}
{% endif %}
6 changes: 3 additions & 3 deletions material/partials/languages/af.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
-#}
{% macro t(key) %}{{ {
"language": "af",
"action.edit": "Wysig hierdie bladsy",
"action.skip": "Slaan oor na inhoud",
"clipboard.copy": "Kopieer na knipbord",
"clipboard.copied": "gekopieer na knipbord",
"edit.link": "Wysig hierdie bladsy",
"footer.next": "Volgende",
"footer.previous": "Vorige",
"meta.comments": "Kommentaar",
Expand All @@ -16,9 +17,8 @@
"search.result.none": "Geen ooreenstemmende dokumente",
"search.result.one": "1 ooreenstemmende dokument",
"search.result.other": "# ooreenstemmende dokumente",
"skip.link": "Slaan oor na inhoud",
"source": "Slaan oor na inhoud",
"source.file.date.created": "Geskep",
"source.file.date.updated": "Laaste opdatering",
"source.link": "Slaan oor na inhoud",
"toc": "Inhoudsopgawe"
}[key] }}{% endmacro %}
6 changes: 3 additions & 3 deletions material/partials/languages/ar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
{% macro t(key) %}{{ {
"language": "ar",
"direction": "rtl",
"action.edit": "عدل الصفحة",
"action.skip": "انتقل إلى المحتوى",
"clipboard.copy": "نسخ إلى الحافظة",
"clipboard.copied": "تم النسخ الى الحافظة",
"edit.link": "عدل الصفحة",
"footer.next": "التالية",
"footer.previous": "السابقة",
"meta.comments": "التعليقات",
Expand All @@ -17,9 +18,8 @@
"search.result.none": "لا توجد نتائج",
"search.result.one": "نتائج البحث مستند واحد",
"search.result.other": "نتائج البحث # مستندات",
"skip.link": "انتقل إلى المحتوى",
"source": "اذهب إلى المصدر",
"source.file.date.created": "خلقت",
"source.file.date.updated": "اخر تحديث",
"source.link": "اذهب إلى المصدر",
"toc": "جدول المحتويات"
}[key] }}{% endmacro %}
6 changes: 3 additions & 3 deletions material/partials/languages/bg.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
-#}
{% macro t(key) %}{{ {
"language": "bg",
"action.edit": "Редактирай тази страница",
"action.skip": "Към съдържанието",
"clipboard.copy": "Копирай",
"clipboard.copied": "Копирано",
"edit.link": "Редактирай тази страница",
"footer": "Долен колонтитул",
"footer.next": "Следваща",
"footer.previous": "Предишна",
Expand All @@ -22,10 +23,9 @@
"search.result.other": "# резултата",
"search.result.more.one": "още 1 на тази страница",
"search.result.more.other": "още # на тази страница",
"skip.link": "Към съдържанието",
"source": "Към хранилището",
"source.file.date.created": "Създаден",
"source.file.date.updated": "Последна промяна",
"source.link": "Към хранилището",
"tabs": "Табове",
"toc": "Съдържание"
}[key] }}{% endmacro %}
6 changes: 3 additions & 3 deletions material/partials/languages/bn.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
-#}
{% macro t(key) %}{{ {
"language": "bn",
"action.edit": "এই পেজ এডিট করুন",
"action.skip": "কনটেন্টে যান",
"clipboard.copy": "ক্লিপবোর্ডে কপি করুন",
"clipboard.copied": "ক্লিপবোর্ডে কপি হয়েছে",
"edit.link": "এই পেজ এডিট করুন",
"footer": "ফুটার",
"footer.next": "পরে",
"footer.previous": "পূর্ববর্তী",
Expand All @@ -20,10 +21,9 @@
"search.result.none": "কিছু পাওয়া যায়নি",
"search.result.one": "১ টা ডকুমেন্ট",
"search.result.other": "# টা ডকুমেন্ট",
"skip.link": "কনটেন্টে যান",
"source": "রিপোজিটরিতে যান",
"source.file.date.created": "তৈরি হয়েছে",
"source.file.date.updated": "শেষ আপডেট",
"source.link": "রিপোজিটরিতে যান",
"tabs": "ট্যাব",
"toc": "টেবিল অফ কনটেন্ট"
}[key] }}{% endmacro %}
6 changes: 3 additions & 3 deletions material/partials/languages/ca.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
-#}
{% macro t(key) %}{{ {
"language": "ca",
"action.edit": "Edita aquesta pàgina",
"action.skip": "Salta el contingut",
"clipboard.copy": "Còpia al porta-retalls",
"clipboard.copied": "Copiat al porta-retalls",
"edit.link": "Edita aquesta pàgina",
"footer.next": "Següent",
"footer.previous": "Anterior",
"meta.comments": "Comentaris",
Expand All @@ -15,9 +16,8 @@
"search.result.none": "Cap document coincideix",
"search.result.one": "1 document coincident",
"search.result.other": "# documents coincidents",
"skip.link": "Salta el contingut",
"source": "Ves al repositori",
"source.file.date.created": "Creada",
"source.file.date.updated": "Darrera actualització",
"source.link": "Ves al repositori",
"toc": "Taula de continguts"
}[key] }}{% endmacro %}
Loading

0 comments on commit 28d64a2

Please sign in to comment.