diff --git a/app.config.ts b/app.config.ts
index d68b3ada..1ff3c474 100644
--- a/app.config.ts
+++ b/app.config.ts
@@ -149,9 +149,10 @@ export default defineAppConfig({
target: '_blank',
}],
carbonAds: {
- enable: false,
+ enable: true,
code: '',
placement: '',
+ format: 'cover',
},
},
search: {
diff --git a/components/layout/CarbonAds.vue b/components/layout/CarbonAds.vue
index 8f8e2ff8..c6dcfb06 100644
--- a/components/layout/CarbonAds.vue
+++ b/components/layout/CarbonAds.vue
@@ -1,9 +1,6 @@
-
+
-
diff --git a/composables/useConfig.ts b/composables/useConfig.ts
index 4a0b8f4a..40d2dad3 100644
--- a/composables/useConfig.ts
+++ b/composables/useConfig.ts
@@ -96,6 +96,7 @@ const defaultConfig: DefaultConfig = {
enable: false,
code: '',
placement: '',
+ format: 'cover',
},
},
search: {
diff --git a/content/3.api/1.configuration/1.shadcn-docs.md b/content/3.api/1.configuration/1.shadcn-docs.md
index 5c3db35a..c7b344e4 100644
--- a/content/3.api/1.configuration/1.shadcn-docs.md
+++ b/content/3.api/1.configuration/1.shadcn-docs.md
@@ -193,6 +193,9 @@ All configurable icons can be set to iconify icons, emojis and urls, using [smar
::field{name="placement" type="string"}
Carbon Ads placement.
::
+ ::field{name="format" type="'cover' | 'responsive'" default-value="cover"}
+ Carbon Ads format.
+ ::
::
::
::
@@ -317,6 +320,7 @@ const defaultConfig: DefaultConfig = {
enable: false,
code: '',
placement: '',
+ format: 'cover',
},
},
search: {
diff --git a/content/3.api/1.configuration/4.carbon-ads.md b/content/3.api/1.configuration/4.carbon-ads.md
index 2f743641..ade63d70 100644
--- a/content/3.api/1.configuration/4.carbon-ads.md
+++ b/content/3.api/1.configuration/4.carbon-ads.md
@@ -14,7 +14,8 @@ export default defineAppConfig({
carbonAds: {
enabled: true,
code: 'your-carbon-code',
- placement: 'your-carbon-placement'
+ placement: 'your-carbon-placement',
+ format: 'your-carbon-format', // defaults to 'cover'
},
}
},
diff --git a/content/index.md b/content/index.md
index ba8849ff..a199bf0f 100644
--- a/content/index.md
+++ b/content/index.md
@@ -6,7 +6,7 @@ navigation: false
::hero
---
announcement:
- title: 'Release v0.7.3'
+ title: 'Release v0.7.4'
icon: '🎉'
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt/releases
target: _blank
diff --git a/package.json b/package.json
index 137beb5c..3dc3c98e 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "shadcn-docs-nuxt",
"type": "module",
- "version": "0.7.3",
+ "version": "0.7.4",
"description": "Effortless and beautiful docs template built with Nuxt Content & shadcn-vue.",
"author": "Tony Zhang ",
"license": "MIT",
diff --git a/types/index.d.ts b/types/index.d.ts
index f89bb970..834da97a 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -78,6 +78,7 @@ interface DefaultConfig {
enable: boolean;
code: string;
placement: string;
+ format: 'cover' | 'responsive';
};
};
search: {