Vue d'ensemble
Personnalisation de shadcn-docs-nuxt.
shadcn-docs-nuxt est configuré via app.config.ts.
app.config.ts
Référence des Champs
Déclarations de types illustratives :
Icônes
Toutes les icônes configurables peuvent être définies comme des icônes iconify, des émojis et des URLs, en utilisant l'icône intelligente en arrière-plan.
site
namestring
<page> - <nom_du_site>. descriptionstring
ogImagestring
ogImageComponentstring
ShadcnDocsShadcnDocs, Nuxt, NuxtSeo ou le nom de votre composant personnalisé. ogImageColor'light' | 'dark'
lightumamiobject
theme
customizableboolean
truecolorColor
zincradiusstring
0.5banner
Lire la suite à Français > API > Configuration > Bannière
enableboolean
falseshowCloseboolean
truetostring
contentstring
targetTarget
_blankborderboolean
trueheader
showLoadingIndicatorboolean
truetitlestring
showTitleboolean
trueborderboolean
falsedarkModeToggleboolean
truelanguageSwitcherobject
logo{ light: string; dark: string; }
{ light: '/logo.svg', dark: '/logo-dark.svg' }/public. light est pour l'icône affichée en mode clair, dark est pour l'icône affichée en mode sombre. showTitleInMobileboolean
falsenavINav[]
[]linksILink[]
[]githubButtonobject
enableboolean
falseownerstring
repoboolean
targetTarget
_blank_iconstring
lucide:githubaside
useLevelboolean
truecollapseboolean
falsecollapseLevelnumber
1Infinity si vous voulez tout développer) folderStyle'default' | 'tree' | 'group'
defaultmain
paddedboolean
truebreadCrumbboolean
trueshowTitleboolean
truecodeCopyToastboolean
truecodeCopyIconstring
lucide:copycodeCopyToastTextstring
'Copié dans le presse-papiers !'fieldRequiredTextstring
'required'pm('npm' | 'pnpm' | 'bun' | 'yarn')[]
['npm', 'pnpm', 'bun', 'yarn']codeIconRecord<string, string>
editLinkobject
backToTopboolean
truefooter
creditsstring
''linksILink[]
[]toc
enableboolean
trueenableInMobileboolean
falseenableInHomepageboolean
falsetitlestring
'On This Page'linksILink[]
[]iconLinksILink[]
[]carbonAdsobject
search
enableboolean
trueinAsideboolean
falsestyle'input' | 'button'
inputplaceholderstring
'Search...'placeholderDetailedstring
'Search documentation...'data
Lire la suite à Français > API > Avancé > Liaison de Données
Default Config
Lire la suite à source file
