chore(docs): update docs to @docus (#390)

This commit is contained in:
Yaël Guilloux 2021-07-28 09:50:09 +02:00 committed by GitHub
parent bbfa41f811
commit f028719e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 705 additions and 638 deletions

5
docs/content/0.index.md Normal file
View File

@ -0,0 +1,5 @@
---
layout.aside: true
navigation.redirect: /get-started/installation
---
[Get Started](/get-started/installation)

View File

@ -1 +0,0 @@
[Get Started](/get-started/installation)

View File

@ -1,6 +1,7 @@
export default {
title: 'Nuxt 3',
url: 'https://v3.nuxtjs.org',
template: 'docs',
theme: {
colors: {
primary: '#00c58e'

View File

@ -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'
]
})

View File

@ -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"
}
}

View File

@ -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>

File diff suppressed because it is too large Load Diff