mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore(docs): update docs to @docus (#390)
This commit is contained in:
parent
bbfa41f811
commit
f028719e7a
5
docs/content/0.index.md
Normal file
5
docs/content/0.index.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
layout.aside: true
|
||||
navigation.redirect: /get-started/installation
|
||||
---
|
||||
[Get Started](/get-started/installation)
|
@ -1 +0,0 @@
|
||||
[Get Started](/get-started/installation)
|
@ -1,6 +1,7 @@
|
||||
export default {
|
||||
title: 'Nuxt 3',
|
||||
url: 'https://v3.nuxtjs.org',
|
||||
template: 'docs',
|
||||
theme: {
|
||||
colors: {
|
||||
primary: '#00c58e'
|
||||
|
@ -1,5 +1,34 @@
|
||||
import { withDocus } from 'docus'
|
||||
import { withDocus } from '@docus/app'
|
||||
|
||||
export default withDocus({
|
||||
rootDir: __dirname
|
||||
// TODO: Fix that from @docus/core
|
||||
// Follow: https://github.com/docusgen/core/issues/22
|
||||
generate: {
|
||||
routes () {
|
||||
return [
|
||||
'/get-started/installation'
|
||||
]
|
||||
}
|
||||
},
|
||||
// TODO: Remove that temporary fix
|
||||
// Seem to be related to latest {Vite/nuxt-vite} version
|
||||
vite: {
|
||||
server: {
|
||||
fs: {
|
||||
strict: false
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Has to specify rootDir as we use nuxt-extend
|
||||
*/
|
||||
rootDir: __dirname,
|
||||
/**
|
||||
* Modules
|
||||
*/
|
||||
buildModules: [
|
||||
'@nuxt/typescript-build',
|
||||
'@docus/github',
|
||||
'@docus/twitter'
|
||||
]
|
||||
})
|
||||
|
@ -2,9 +2,14 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "nuxt dev",
|
||||
"build": "nuxt generate"
|
||||
"build": "nuxt generate --force-build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"docus": "^0.9.0"
|
||||
"@docus/app": "^1.0.30",
|
||||
"@docus/github": "^1.0.3",
|
||||
"@docus/social-image": "^1.0.2",
|
||||
"@docus/theme": "^1.0.7",
|
||||
"@docus/twitter": "^1.0.3",
|
||||
"@nuxt/typescript-build": "^2.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
<template>
|
||||
<nuxt-link to="/get-started/installation">
|
||||
Get Started
|
||||
</nuxt-link>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
asyncData ({ redirect }) {
|
||||
redirect('/get-started/installation')
|
||||
return {}
|
||||
}
|
||||
}
|
||||
</script>
|
1280
docs/yarn.lock
1280
docs/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user