Skip to content

Commit 2cfe00a

Browse files
committed
First step for documentation translations
The goal is to be able to embed some of the FAQ entries within the app, see #1710 and #813 for instance.
1 parent 99a0007 commit 2cfe00a

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

docs/fr/index.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Documentation uMap
2+
3+
uMap vous offre la possibilité de concevoir rapidement des cartes personnalisées avec des fonds OpenStreetMap (OSM) et de les intégrer facilement à votre site.
4+
5+
- 🤓 Consulter les [tutoriels en français sur le site de umap-project.org](https://umap-project.org/tutoriels/).
6+
- 🤔 Explorer les [les questions/réponses de la FAQ](support/faq.md).

docs/fr/support/faq.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Questions Fréquemment Posées (FAQ)
2+
3+
## Quelle syntaxe est acceptée dans les champs de description ?
4+
5+
* `*simple astérisque pour italique*`*simple astérisque pour italique*
6+
* `**double astérisque pour gras**`**double astérisque pour gras**
7+
* `# un dièse pour titre 1` ⤵ <h1>un dièse pour titre 1</h1>
8+
* `## deux dièses pour titre 2` ⤵ <h2>deux dièses pour titre 2</h2>
9+
* `### trois dièses pour titre 3` ⤵ <h3>trois dièses pour titre 3</h3>
10+
* `Lien simple : [[http://example.com]]` → Lien simple : [http://example.com](http://example.com)
11+
* `Lien avec texte : [[http://exemple.fr|texte du lien]]` → Lien avec texte : [texte du lien](http://example.com)
12+
* `--- pour un séparateur horizontal` ⤵ <hr>

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
mkdocs==1.5.3
33
pymdown-extensions==10.7.1
44
mkdocs-material==9.5.16
5+
mkdocs-static-i18n==1.2.2

docs/support/faq.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Frequently Asked Questions (FAQ)
2+
3+
## Which syntax is allowed in description fields?
4+
5+
* `*single star for italic*`*single star for italic*
6+
* `**double star for bold**`**double star for bold**
7+
* `# one hash for main heading` ⤵ <h1>one hash for main heading</h1>
8+
* `## two hashes for second heading` ⤵ <h2>two hashes for second heading</h2>
9+
* `### three hashes for third heading` ⤵ <h3>three hashes for third heading</h3>
10+
* `Simple link: [[http://example.com]]` → Simple link: [http://example.com](http://example.com)
11+
* `Link with text: [[http://example.com|text of the link]]` → Link with text: [text of the link](http://example.com)
12+
* `--- for a horizontal rule` ⤵ <hr>

mkdocs.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
site_name: uMap docs
1+
site_name: uMap documentation
22
site_description: uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site
33
repo_name: umap-project/umap
44
repo_url: https://github.com/umap-project/umap
55
nav:
6+
- Home: index.md
67
- How-tos:
78
- Getting started: install.md
89
- Contribute: contributing.md
@@ -18,6 +19,8 @@ nav:
1819
- Deployment:
1920
- Docker: deploy/docker.md
2021
- Nginx: deploy/nginx.md
22+
- Support:
23+
- FAQ: support/faq.md
2124
- Changelog: changelog.md
2225
theme:
2326
name: material
@@ -42,6 +45,8 @@ theme:
4245
extra_css:
4346
- stylesheets/extra.css
4447
markdown_extensions:
48+
- toc:
49+
permalink: ⚓︎
4550
- pymdownx.magiclink:
4651
normalize_issue_symbols: true
4752
repo_url_shorthand: true
@@ -56,3 +61,18 @@ markdown_extensions:
5661
- pymdownx.tabbed:
5762
alternate_style: true
5863
combine_header_slug: true
64+
plugins:
65+
- i18n:
66+
docs_structure: folder
67+
languages:
68+
- locale: en
69+
default: true
70+
name: English
71+
build: true
72+
- locale: fr
73+
name: Français
74+
build: true
75+
site_name: Documentation uMap
76+
nav_translations:
77+
Home: Accueil
78+
Support: Aide

0 commit comments

Comments
 (0)