Ajout plugin zoom image et combinaison affichage PNG avec téléchargement PDF
- Install docusaurus-plugin-image-zoom for interactive image zoom - Display PNG diagrams with zoom capability - Add PDF download links below each diagram - Keep both PNG (for display) and PDF (for download) versions - Update both French and English documentation pages
This commit is contained in:
parent
c3652ea635
commit
a45c3734a0
9 changed files with 89 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ const config: Config = {
|
|||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
'docusaurus-plugin-image-zoom',
|
||||
],
|
||||
|
||||
title: 'TellServ Tech Blog',
|
||||
tagline: 'Recherches et réflexions sur les défis techniques',
|
||||
favicon: 'img/favicon.png',
|
||||
|
|
@ -185,6 +189,16 @@ const config: Config = {
|
|||
minHeadingLevel: 2,
|
||||
maxHeadingLevel: 5,
|
||||
},
|
||||
zoom: {
|
||||
selector: '.markdown :not(em) > img',
|
||||
background: {
|
||||
light: 'rgb(255, 255, 255)',
|
||||
dark: 'rgb(50, 50, 50)'
|
||||
},
|
||||
config: {
|
||||
// options from medium-zoom: https://github.com/francoischalifour/medium-zoom#options
|
||||
}
|
||||
},
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue