Skip to content

Commit

Permalink
fix: v8 docs with docus official release version (#1657)
Browse files Browse the repository at this point in the history
* fix: v8 docs with official release version

resolve #1631
resolve #1656

* fix
  • Loading branch information
kazupon committed Nov 19, 2022
1 parent b832f07 commit 3a466a5
Show file tree
Hide file tree
Showing 55 changed files with 676 additions and 3,302 deletions.
3 changes: 3 additions & 0 deletions docs/.env.example
@@ -0,0 +1,3 @@
# Create one with no scope selected on https://github.com/settings/tokens/new
# This token is used for fetching the repository releases.
GITHUB_TOKEN=
12 changes: 12 additions & 0 deletions docs/.gitignore
@@ -0,0 +1,12 @@
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode
.DS_Store
coverage
dist
sw.*
.env
.output
2 changes: 2 additions & 0 deletions docs/.npmrc
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
48 changes: 48 additions & 0 deletions docs/app.config.ts
@@ -0,0 +1,48 @@
export default defineAppConfig({
docus: {
title: '@nuxtjs/i18n',
description: 'I18n (Internationalization) for your Nuxt Application',
url: 'https://v8.i18n.nuxtjs.org',
layout: 'default',
socials: {
github: 'nuxt-community/i18n-module'
},
github: {
root: 'content',
edit: true,
releases: false
},
aside: {
level: 0,
exclude: []
},
header: {
title: false,
logo: true,
showLinkIcon: false
},
cover: {
src: '/preview.png',
alt: 'I18n for Nuxt developers'
},
footer: {
credits: {
icon: 'IconDocus',
text: 'Powered by Docus',
href: 'https://docus.com'
},
icons: [
{
label: 'Nuxt',
href: 'https://nuxt.com',
component: 'IconNuxt'
},
{
label: 'Vue Telescope',
href: 'https://vuetelescope.com',
component: 'IconVueTelescope'
}
]
}
}
})
File renamed without changes.
1 change: 1 addition & 0 deletions docs/content/1.getting-started/_dir.yml
@@ -0,0 +1 @@
title: Getting Started
7 changes: 4 additions & 3 deletions docs/content/1.index.md 100644 → 100755
@@ -1,8 +1,9 @@
---
title: I18n for Nuxt developers
description: I18n (Internationalization) for your Nuxt project powered by Vue I18n
layout: page
page.fluid: true
navigation: false
layout: fluid
---

::block-hero
Expand All @@ -11,7 +12,7 @@ cta:
- Get Started
- /getting-started/setup
secondary:
- Star on GitHub →
- Open on GitHub →
- https://github.com/nuxt-community/i18n-module
snippet: npm install @nuxtjs/i18n@next --save
---
Expand All @@ -20,7 +21,7 @@ snippet: npm install @nuxtjs/i18n@next --save
Nuxt [I18n]{.text-primary-400}

#description
[Module i18n](https://github.com/nuxt-community/i18n-module) for [NuxtJS](https://nuxtjs.org).
[Module i18n](https://github.com/nuxt-community/i18n-module) for [Nuxt](https://nuxt.com).

#extra
::list
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/content/2.guide/_dir.yml
@@ -0,0 +1 @@
title: Guide
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/content/3.options/_dir.yml
@@ -0,0 +1 @@
title: Options
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 0 additions & 31 deletions docs/content/_theme.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions docs/module.ts

This file was deleted.

29 changes: 1 addition & 28 deletions docs/nuxt.config.ts 100644 → 100755
@@ -1,30 +1,3 @@
import overrideModule from './module'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
extends: ['@docus/docs-theme'],

modules: ['@nuxthq/admin', '@docus/github', 'vue-plausible', overrideModule],

// content: {
// sources: [
// {
// name: 'next',
// prefix: '/next',
// driver: 'fs',
// // base: resolve(__dirname, './content-next')
// base: fileURLToPath(new URL('./content-next', import.meta.url))
// }
// ]
// },

github: {
owner: 'nuxt-community',
repo: 'i18n-module',
branch: 'next'
},

plausible: {
domain: 'i18n.nuxtjs.org'
}
extends: ['@nuxt-themes/docus']
})
9 changes: 4 additions & 5 deletions docs/package.json
Expand Up @@ -2,15 +2,14 @@
"name": "@nuxtjs/i18n-docs",
"private": true,
"scripts": {
"build": "nuxi build",
"dev": "nuxi dev",
"build": "nuxi build",
"generate": "nuxi generate",
"preview": "nuxi preview"
},
"devDependencies": {
"@docus/docs-theme": "npm:@docus/docs-theme-edge@latest",
"@docus/github": "npm:@docus/github-edge@latest",
"nuxt": "latest",
"vue-plausible": "^1.3.2"
"@nuxt-themes/docus": "npm:@nuxt-themes/docus-edge@latest",
"nuxt": "^3.0.0",
"@nuxtjs/tailwindcss": "latest"
}
}
Binary file added docs/public/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/android-chrome-512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions docs/public/site.webmanifest
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
174 changes: 0 additions & 174 deletions docs/tailwind.config.ts

This file was deleted.

0 comments on commit 3a466a5

Please sign in to comment.