Ajout icônes navbar avec effets hover et recherche locale

- Replace GitHub/Forgejo text links with SVG icons
- Add luminous hover effects on navbar icons
- Add local search plugin with FR/EN support
This commit is contained in:
Tellsanguis 2025-11-22 23:42:51 +01:00
parent 617673d5a9
commit 0a5c9728e6
6 changed files with 684 additions and 2 deletions

View file

@ -3,6 +3,24 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
themes: [
[
'@easyops-cn/docusaurus-search-local',
{
hashed: true,
language: ['fr', 'en'],
indexDocs: true,
indexBlog: true,
indexPages: true,
docsRouteBasePath: '/docs',
blogRouteBasePath: '/blog',
searchBarShortcutHint: false,
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
},
],
],
title: 'TellServ Tech Blog',
tagline: 'Recherches et réflexions sur les défis techniques',
favicon: 'img/favicon.png',
@ -109,13 +127,15 @@ const config: Config = {
},
{
href: 'https://github.com/Tellsanguis',
label: 'GitHub',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub profile',
},
{
href: 'https://forgejo.tellserv.fr/Tellsanguis',
label: 'Forgejo',
position: 'right',
className: 'header-forgejo-link',
'aria-label': 'Forgejo profile',
},
],
},