@docus/agency-theme-edge
Advanced tools
Comparing version 1.0.0-27288865.74da49a to 1.0.0-27299175.76ffeaf
@@ -1,2 +0,2 @@ | ||
import { defineDocusConfig } from '@docus/app/kit' | ||
import { defineDocusConfig } from 'docus' | ||
@@ -3,0 +3,0 @@ export default defineDocusConfig({ |
@@ -1,2 +0,3 @@ | ||
import { defineNuxtModule, Nuxt } from '@nuxt/kit' | ||
import { defineNuxtModule } from '@nuxt/kit' | ||
import { Nuxt } from '@nuxt/schema' | ||
import { resolveThemeDir } from './dirs' | ||
@@ -3,0 +4,0 @@ |
@@ -1,20 +0,37 @@ | ||
import { withDocus } from '@docus/app/kit' | ||
import { defineNuxtConfig } from '@nuxt/bridge' | ||
import { resolveThemeDir } from './dirs' | ||
import { nuxtConfig } from './index' | ||
import themeModule from './module' | ||
/** | ||
* Export default for local development. | ||
*/ | ||
const config = withDocus({ | ||
// Spread theme Nuxt config | ||
...nuxtConfig, | ||
// Set rootDir to theme dir | ||
rootDir: resolveThemeDir(), | ||
// WindiCSS workaround as running the theme locally don't herit from @docus/windicss features. | ||
windicss: { | ||
root: resolveThemeDir('scripts'), | ||
safelist: ['bg-black', 'text-white', 'text-root', 'min-w-base', 'antialiased', 'overflow-y-scroll'] | ||
} | ||
const config = defineNuxtConfig({ | ||
head: { | ||
bodyAttrs: { | ||
class: ['bg-black text-white text-root min-w-base antialiased overflow-y-scroll'] | ||
} | ||
}, | ||
// CSS | ||
css: [resolveThemeDir('./css/main.css')], | ||
/** | ||
* @nuxt/components definitions. | ||
* https://github.com/nuxt/components | ||
*/ | ||
components: [ | ||
{ | ||
path: resolveThemeDir('./components'), | ||
prefix: '', | ||
isAsync: false, | ||
level: 2 | ||
}, | ||
{ | ||
path: resolveThemeDir('./components/templates'), | ||
prefix: '', | ||
isAsync: false, | ||
level: 2 | ||
} | ||
], | ||
/** | ||
* Your theme build modules. | ||
*/ | ||
buildModules: [themeModule, '@docus/windicss'] | ||
}) | ||
export default config |
{ | ||
"name": "@docus/agency-theme-edge", | ||
"version": "1.0.0-27288865.74da49a", | ||
"version": "1.0.0-27299175.76ffeaf", | ||
"description": "Docus agency theme.", | ||
@@ -14,8 +14,8 @@ "keywords": [ | ||
".": { | ||
"require": "./index.ts", | ||
"import": "./index.ts" | ||
"require": "./nuxt.config.ts", | ||
"import": "./nuxt.config.ts" | ||
} | ||
}, | ||
"main": "./index.ts", | ||
"module": "./index.ts", | ||
"main": "./nuxt.config.ts", | ||
"module": "./nuxt.config.ts", | ||
"files": [ | ||
@@ -25,33 +25,32 @@ "components", | ||
"dirs.ts", | ||
"module.ts", | ||
"docus.config.ts", | ||
"module.ts", | ||
"nuxt.config.ts", | ||
"theme.ts", | ||
"windi.config.ts", | ||
"index.ts" | ||
"theme.config.ts", | ||
"windi.config.ts" | ||
], | ||
"scripts": { | ||
"dev": "THEME_DEV=true nuxt dev", | ||
"dev": "THEME_DEV=true nuxt dev -c dev.config.ts", | ||
"lint": "eslint --ext .js,.ts,.vue .", | ||
"build": "npx nuxt generate", | ||
"build": "npx nuxt generate -c dev.config.ts", | ||
"start": "npx nuxt start", | ||
"clean": "rm -rf src/app/node_modules src/app/.nuxt" | ||
"clean": "rm -rf node_modules .nuxt" | ||
}, | ||
"resolutions": { | ||
"mdast-util-from-markdown": "1.0.4" | ||
}, | ||
"dependencies": { | ||
"@docus/windicss": "npm:@docus/windicss-edge@latest", | ||
"@nuxt/kit": "npm:@nuxt/kit-edge@latest", | ||
"@windicss/plugin-scrollbar": "^1.2.3" | ||
}, | ||
"devDependencies": { | ||
"@docus/app": "npm:@docus/app-edge@latest", | ||
"@nuxt/bridge": "npm:@nuxt/bridge-edge@latest", | ||
"@nuxt/kit": "npm:@nuxt/kit-edge@latest", | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"babel-eslint": "latest", | ||
"eslint": "^8.2.0", | ||
"docus": "npm:docus-edge@latest", | ||
"eslint": "^8.3.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-nuxt": "^3.0.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"prettier": "^2.4.1" | ||
"nuxt-edge": "latest", | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.5.2" | ||
}, | ||
@@ -58,0 +57,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2
13110
12
18
132
- Removed@nuxt/kit@npm:@nuxt/kit-edge@latest