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
ShadcnDocs
ShadcnDocs
, Nuxt
, NuxtSeo
ou le nom de votre composant personnalisé. ogImageColor'light' | 'dark'
light
umamiobject
theme
customizableboolean
true
colorColor
zinc
radiusstring
0.5
banner
Lire la suite à API > Configuration > Banner
enableboolean
false
showCloseboolean
true
tostring
contentstring
targetTarget
_blank
borderboolean
true
header
showLoadingIndicatorboolean
true
titlestring
showTitleboolean
true
borderboolean
false
darkModeToggleboolean
true
languageSwitcherobject
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
false
navINav[]
[]
linksILink[]
[]
githubButtonobject
enableboolean
false
ownerstring
repoboolean
targetTarget
_blank_
iconstring
lucide:github
aside
useLevelboolean
true
collapseboolean
false
collapseLevelnumber
1
Infinity
si vous voulez tout développer) folderStyle'default' | 'tree' | 'group'
default
main
paddedboolean
true
breadCrumbboolean
true
showTitleboolean
true
codeCopyToastboolean
false
codeCopyIconstring
lucide:copy
codeCopyToastTextstring
'Copié dans le presse-papiers !'
fieldRequiredTextstring
'required'
pm('npm' | 'pnpm' | 'bun' | 'yarn')[]
['npm', 'pnpm', 'bun', 'yarn']
codeIconRecord<string, string>
editLinkobject
backToTopboolean
true
footer
creditsstring
''
linksILink[]
[]
toc
enableboolean
true
enableInMobileboolean
false
enableInHomepageboolean
false
titlestring
'On This Page'
linksILink[]
[]
iconLinksILink[]
[]
carbonAdsobject
search
enableboolean
true
inAsideboolean
false
style'input' | 'button'
input
placeholderstring
'Search...'
placeholderDetailedstring
'Search documentation...'
data
Lire la suite à API > Advanced > Binding Data
Default Config
Lire la suite à source file