Skip to content

Commit 96e5aeb

Browse files
committed
i18n
1 parent 751482f commit 96e5aeb

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ repo_url: 'https://github.com/QualCoder-Org/qualcoder-org.github.io'
88

99
theme:
1010
name: 'material'
11+
custom_dir: overrides
1112
logo: images/logo.png
1213
favicon: images/logo.png
1314
lang: en
@@ -27,6 +28,8 @@ theme:
2728
- content.tabs.link
2829
- navigation.footer
2930
extra:
31+
extra_css:
32+
- stylesheets/extra.css
3033
alternate:
3134
- name: English
3235
link: /doc/en/

overrides/main.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<div class="language-banner">
5+
<div class="language-banner-content">
6+
<span>Other languages:</span>
7+
<a href="/doc/fr/{% if page and page.meta and page.meta.path %}{{ page.meta.path }}{% endif %}" class="md-button">Français</a>
8+
<a href="/doc/en/{% if page and page.meta and page.meta.path %}{{ page.meta.path }}{% endif %}" class="md-button">English</a>
9+
</div>
10+
</div>
11+
{{ super() }}
12+
{% endblock %}
13+

stylesheets/extra.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.language-banner {
2+
background-color: #f3e5f5; /* Couleur de fond du bandeau */
3+
padding: 10px;
4+
text-align: center;
5+
border-bottom: 1px solid #e1bee7;
6+
font-size: 14px;
7+
}
8+
9+
.language-banner-content span {
10+
margin-right: 10px;
11+
}
12+
13+
.language-banner-content a.md-button {
14+
margin: 0 5px;
15+
background-color: #7e57c2; /* Couleur des boutons */
16+
color: white;
17+
padding: 5px 10px;
18+
border-radius: 4px;
19+
text-decoration: none;
20+
}
21+
22+
.language-banner-content a.md-button:hover {
23+
background-color: #5e35b1;
24+
}
25+

0 commit comments

Comments
 (0)