Lang switcher (#7)

* language switcher for documentation pages

* some cleanup and an example of usage

* fix highlight elements ordering

* fix for unexpected behavior

* styles fix

* changed tag

* copy button for code blocks in documentation

* warning and info styled elements for documentation

* docs auto-sync

* fixed 1px extra padding and prevented tabs generation when there is only one language

* docs auto-sync

* fix

* docs auto-sync

* moved css for information aside blocks to the article file

* fix

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
Co-authored-by: qdrant <qdrant@users.noreply.github.com>
This commit is contained in:
trean
2022-03-15 11:06:01 +01:00
committed by GitHub
co-authored by Andrey Vasnetsov qdrant
parent 38007e54dd
commit e301681488
12 changed files with 264 additions and 51 deletions
@@ -27,3 +27,4 @@
<!-- highlight.js -->
{{ if .Site.Params.highlight | default false }} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/default.min.css"> {{ end }}
<link rel="stylesheet" href="{{ "css/lang-switcher.css" | absURL }}">