+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts
old mode 100755
new mode 100644
index 5787623..68925e4
--- a/docs/nuxt.config.ts
+++ b/docs/nuxt.config.ts
@@ -1,17 +1,46 @@
export default defineNuxtConfig({
- extends: '@nuxt-themes/docus',
- modules: ['@nuxtjs/cloudinary'],
+ extends: '@nuxt/ui-pro',
+
+ modules: [
+ '@nuxt/content',
+ '@nuxt/ui',
+ '@nuxtjs/cloudinary',
+ ],
+
+ colorMode: {
+ preference: 'dark',
+ },
+
cloudinary: {
cloudName: 'nuxt-cloudinary'
},
- postcss: {
- plugins: {
- autoprefixer: {},
- cssnano:
- process.env.NODE_ENV === 'production'
- ? { preset: ['default', { discardComments: { removeAll: true } }] }
- : false, // disable cssnano when not in production
+ ui: {
+ icons: ['heroicons', 'simple-icons', 'ph'],
+ },
+
+ nitro: {
+ prerender: {
+ routes: ['/api/search.json'],
},
- }
+ },
+
+ hooks: {
+ // Related to https://github.com/nuxt/nuxt/pull/22558
+ // Adding all global components to the main entry
+ // To avoid lagging during page navigation on client-side
+ 'components:extend': function (components) {
+ for (const comp of components) {
+ if (comp.global)
+ comp.global = 'sync'
+ }
+ },
+ },
+
+ // devtools: {
+ // enabled: true,
+ // componentInspector: {
+ // cleanHtml: false,
+ // },
+ // },
})
diff --git a/docs/package.json b/docs/package.json
old mode 100755
new mode 100644
index 8d590e2..44d2598
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,25 +1,19 @@
{
- "name": "nuxt-cloudinary-docs",
- "version": "1.0.0",
- "description": "Cloudinary module for Nuxt: the docs.",
+ "name": "@nuxt-modules/cloudinary-docs",
+ "private": true,
"scripts": {
- "dev": "nuxt dev",
- "build": "nuxt build",
- "generate": "NODE_OPTIONS=--max_old_space_size=16384 nuxt generate",
- "preview": "nuxt preview",
- "start": "nuxt start"
- },
- "author": "NuxtCommunity",
- "license": "MIT",
- "homepage": "https://cloudinary.nuxtjs.org",
- "devDependencies": {
- "@nuxt-themes/docus": "^1.15.0",
- "nuxt": "3.5.3"
+ "dev": "nuxi dev",
+ "build": "nuxi build",
+ "generate": "nuxi generate",
+ "preview": "nuxi preview"
},
"dependencies": {
- "@nuxtjs/cloudinary": "^2.5.2"
- },
- "resolutions": {
- "nuxt": "3.5.3"
+ "@iconify-json/ph": "^1.1.10",
+ "@iconify-json/simple-icons": "^1.1.87",
+ "@nuxt/content": "^2.10.0",
+ "@nuxt/devtools": "1.0.5",
+ "@nuxt/ui-pro": "^0.6.1",
+ "@nuxtjs/cloudinary": "^2.5.2",
+ "nuxt": "^3.9.3"
}
}
diff --git a/docs/pages/[...slug].vue b/docs/pages/[...slug].vue
new file mode 100644
index 0000000..b714fad
--- /dev/null
+++ b/docs/pages/[...slug].vue
@@ -0,0 +1,96 @@
+
+
+