docs: add README, boost skill, and documentation site
This commit is contained in:
69
docs/nuxt.config.ts
Normal file
69
docs/nuxt.config.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
const baseURL = process.env.NUXT_APP_BASE_URL || '/'
|
||||
const docsVersion = process.env.DOCS_VERSION || '1.x'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
extends: 'docus',
|
||||
modules: ['@nuxt/image', '@nuxt/scripts', 'nuxt-fathom'],
|
||||
fathom: {
|
||||
siteId: process.env.NUXT_PUBLIC_FATHOM_SITE_ID || '',
|
||||
},
|
||||
devtools: { enabled: true },
|
||||
site: {
|
||||
name: 'Comments',
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
docsVersion,
|
||||
},
|
||||
},
|
||||
appConfig: {
|
||||
docus: {
|
||||
url: `https://relaticle.github.io${baseURL}`,
|
||||
image: `${baseURL}preview.png`,
|
||||
header: {
|
||||
logo: {
|
||||
light: `${baseURL}logo-light.svg`,
|
||||
dark: `${baseURL}logo-dark.svg`,
|
||||
},
|
||||
},
|
||||
},
|
||||
seo: {
|
||||
ogImage: `${baseURL}preview.png`,
|
||||
},
|
||||
github: {
|
||||
branch: docsVersion,
|
||||
},
|
||||
},
|
||||
app: {
|
||||
baseURL,
|
||||
buildAssetsDir: 'assets',
|
||||
head: {
|
||||
link: [
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: baseURL + 'favicon.ico',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
image: {
|
||||
provider: 'none',
|
||||
},
|
||||
content: {
|
||||
build: {
|
||||
markdown: {
|
||||
highlight: {
|
||||
langs: ['php', 'blade', 'bash', 'json'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
llms: {
|
||||
domain: `https://relaticle.github.io${baseURL.replace(/\/$/, '')}`,
|
||||
},
|
||||
nitro: {
|
||||
preset: 'github_pages',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user