mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Add smartypants extension to enhance typography
This commit is contained in:
parent
4f83c42e26
commit
1ef4be942e
3 changed files with 31 additions and 3 deletions
10
config/plugins/smartypants.yaml
Normal file
10
config/plugins/smartypants.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
enabled: true
|
||||||
|
twig_filter: true
|
||||||
|
enabled_in_admin: false
|
||||||
|
process_title: true
|
||||||
|
process_content: true
|
||||||
|
options: qDewgf
|
||||||
|
dq_open: “
|
||||||
|
dq_close: ”
|
||||||
|
sq_open: ‘
|
||||||
|
sq_close: ’
|
|
@ -27,14 +27,17 @@ La structure du dépôt est décrite ici:
|
||||||
+-- config
|
+-- config
|
||||||
+-- site.yaml
|
+-- site.yaml
|
||||||
+-- system.yaml
|
+-- system.yaml
|
||||||
|
+-- plugins
|
||||||
|
# Contient les fichiers de configuration des plugins.
|
||||||
|
# Attention, ne partagez pas d'information sensible ou des identifiants.
|
||||||
+-- themes
|
+-- themes
|
||||||
+-- yunohost-docs.yaml
|
+-- yunohost-docs.yaml
|
||||||
# Quelques paramètres pour le thème de la documentation
|
# Quelques paramètres pour le thème de la documentation
|
||||||
+-- images
|
+-- images
|
||||||
# Contains the images used in the documentation pages.
|
# Contient les images utilisées dans la documentation
|
||||||
+-- pages
|
+-- pages
|
||||||
# The directory containing the documentation pages.
|
# Le dossier contenant les pages de la documentation
|
||||||
# The pages hierarchy is reflected by the directory hierarchy.
|
# La hiérarchie entre les pages est gouvernée par celle entre les dossiers.
|
||||||
+-- 00.home
|
+-- 00.home
|
||||||
+-- 01.administrate
|
+-- 01.administrate
|
||||||
+-- 02.applications
|
+-- 02.applications
|
||||||
|
@ -90,8 +93,13 @@ markdown-notices
|
||||||
presentation
|
presentation
|
||||||
presentation-deckset
|
presentation-deckset
|
||||||
shortcode-core
|
shortcode-core
|
||||||
|
smartypants
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! L'extension `smartypants` se charge de remplacer automatiquement les apostrophes `'` et guillemets `"`
|
||||||
|
!!! par leurs équivalents typographiquement corrects, `’`, `“` et `”`.
|
||||||
|
!!! Les guillemets « et » peuvent être obtenus ainsi : `<< et >>`. Notez les espaces.
|
||||||
|
|
||||||
## Pages spéciales
|
## Pages spéciales
|
||||||
|
|
||||||
Quelques pages de la documentation sont générées automatiquement ou dynamiquement.
|
Quelques pages de la documentation sont générées automatiquement ou dynamiquement.
|
||||||
|
@ -123,6 +131,7 @@ markdown-notices
|
||||||
presentation
|
presentation
|
||||||
presentation-deckset
|
presentation-deckset
|
||||||
shortcode-core
|
shortcode-core
|
||||||
|
smartypants
|
||||||
tntsearch
|
tntsearch
|
||||||
```
|
```
|
||||||
3. Paramétrez l'extension Git Sync.
|
3. Paramétrez l'extension Git Sync.
|
||||||
|
|
|
@ -28,6 +28,9 @@ The structure of the repository is described below:
|
||||||
+-- config
|
+-- config
|
||||||
+-- site.yaml
|
+-- site.yaml
|
||||||
+-- system.yaml
|
+-- system.yaml
|
||||||
|
+-- plugins
|
||||||
|
# Contains configuration files for the plugins.
|
||||||
|
# Be careful, do NOT share sensitive information and credentials.
|
||||||
+-- themes
|
+-- themes
|
||||||
+-- yunohost-docs.yaml
|
+-- yunohost-docs.yaml
|
||||||
# Some settings for the documentation theme
|
# Some settings for the documentation theme
|
||||||
|
@ -91,8 +94,13 @@ markdown-notices
|
||||||
presentation
|
presentation
|
||||||
presentation-deckset
|
presentation-deckset
|
||||||
shortcode-core
|
shortcode-core
|
||||||
|
smartypants
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! `smartypants` extension takes care of replacing apostrophes, single `'` and double `"` quotation marks
|
||||||
|
!!! by their typographically correct relatives `’`, `“` and `”`.
|
||||||
|
!!! French quotation marks « and » can be obtained like this `<< and >>`. Note the spaces.
|
||||||
|
|
||||||
## Special pages
|
## Special pages
|
||||||
|
|
||||||
Some pages of the documentation are automatically or dynamically generated.
|
Some pages of the documentation are automatically or dynamically generated.
|
||||||
|
@ -124,6 +132,7 @@ markdown-notices
|
||||||
presentation
|
presentation
|
||||||
presentation-deckset
|
presentation-deckset
|
||||||
shortcode-core
|
shortcode-core
|
||||||
|
smartypants
|
||||||
tntsearch
|
tntsearch
|
||||||
```
|
```
|
||||||
3. Set-up Git Sync plugin.
|
3. Set-up Git Sync plugin.
|
||||||
|
|
Loading…
Add table
Reference in a new issue