Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
export default defineAppConfig({
docus: {
title: 'Nuxt Sanity',
layout: 'docs',
url: 'https://sanity.nuxtjs.org/',
description: 'Access text, images, and other media with Nuxt and the Sanity headless CMS.',
socials: { twitter: 'nuxt_js', github: 'nuxt-modules/sanity' },
debug: false,
github: { root: 'docs/content', edit: true, releases: true },
cover: { src: '/cover.jpg', alt: 'A screenshot of the Nuxt Sanity module.' },
header: { title: false, logo: true },
footer: {
credits: [
{
icon: 'IconDocus',
text: 'Powered by Docus',
href: 'https://docus.com',
},
],
icons: [
{
label: 'Nuxt',
href: 'https://nuxtjs.org',
component: 'IconNuxt',
},
{
label: 'Vue Telescope',
href: 'https://vuetelescope.com',
component: 'IconVueTelescope',
},
],
},
},
})
2 changes: 1 addition & 1 deletion docs/content/1.index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'Get Started'
navigation: false
layout: fluid
layout: page
---

::block-hero
Expand Down
39 changes: 0 additions & 39 deletions docs/content/_theme.yml

This file was deleted.

42 changes: 10 additions & 32 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,18 @@
import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
extends: ['@docus/docs-theme'],
github: {
owner: 'nuxt-community',
repo: 'sanity-module',
branch: 'main',
extends: '@nuxt-themes/docus',
build: {
transpile: [/-edge/, /@nuxt-themes/],
},
theme: {},
modules: ['@nuxthq/admin', '@docus/github', 'vue-plausible'],
runtimeConfig: {
public: {},
},
imports: {
autoImport: true,
},
modules: ['nuxt-plausible'],
plausible: {
domain: 'sanity.nuxtjs.org',
},
tailwindcss: {
config: {
important: true,
theme: {
extend: {
colors: {
primary: {
50: '#FFF3F3',
100: '#FFE8E6',
200: '#FEC5C1',
300: '#FDA29C',
400: '#FC5C51',
500: '#FA1607',
600: '#E11406',
700: '#960D04',
800: '#710A03',
900: '#4B0702',
},
},
},
},
},
},
colorMode: {
preference: 'dark',
},
Expand Down
10 changes: 3 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
"preview": "nuxi preview"
},
"devDependencies": {
"@docus/docs-theme": "npm:@docus/docs-theme-edge@3.0.0-b99961f",
"@docus/github": "npm:@docus/github-edge@1.2.6-b99961f",
"nuxt": "^3.0.0-rc.13",
"vue-plausible": "^1.3.2"
},
"resolutions": {
"@vercel/nft": "0.22.1"
"@nuxt-themes/docus": "npm:@nuxt-themes/docus-edge@0.1.0-2a7c428",
"nuxt": "^3.0.0-rc.14",
"nuxt-plausible": "latest"
}
}
18 changes: 18 additions & 0 deletions docs/tokens.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineTheme } from 'pinceau'

export default defineTheme({
colors: {
primary: {
50: '#FFF3F3',
100: '#FFE8E6',
200: '#FEC5C1',
300: '#FDA29C',
400: '#FC5C51',
500: '#FA1607',
600: '#E11406',
700: '#960D04',
800: '#710A03',
900: '#4B0702',
},
},
})
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"test:e2e": "vitest run test/e2e/*.test.*"
},
"dependencies": {
"@nuxt/kit": "3.0.0-rc.13",
"@nuxt/kit": "3.0.0-rc.14",
"@portabletext/types": "^2.0.0",
"chalk": "^5.1.2",
"defu": "^6.1.0",
Expand All @@ -56,8 +56,8 @@
},
"devDependencies": {
"@nuxt/module-builder": "^0.2.0",
"@nuxt/schema": "^3.0.0-rc.13",
"@nuxt/test-utils": "^3.0.0-rc.13",
"@nuxt/schema": "^3.0.0-rc.14",
"@nuxt/test-utils": "^3.0.0-rc.14",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@release-it/conventional-changelog": "^5.1.1",
"@sanity/client": "^3.4.1",
Expand All @@ -69,15 +69,16 @@
"happy-dom": "^7.7.0",
"husky": "^8.0.2",
"lint-staged": "^13.0.3",
"nuxi": "^3.0.0-rc.13",
"nuxt": "^3.0.0-rc.13",
"nuxi": "^3.0.0-rc.14",
"nuxt": "^3.0.0-rc.14",
"release-it": "^15.5.0",
"typescript": "^4.8.4",
"vitest": "^0.25.2",
"vue": "^3.2.45"
},
"resolutions": {
"@nuxtjs/sanity": "link:."
"@nuxtjs/sanity": "link:.",
"@nuxtjs/tailwindcss": "^6.1.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 2 additions & 0 deletions playground/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export default defineNuxtConfig({
script: [{ src: 'https://unpkg.com/tailwindcss-jit-cdn' }],
},
},
// remove in v3 - https://github.com/nuxt/framework/pull/9050
runtimeConfig: { public: {} },
modules: ['@nuxtjs/sanity'],
sanity: {
globalHelper: true,
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "nuxi start"
},
"dependencies": {
"nuxt": "^3.0.0-rc.13",
"nuxt": "^3.0.0-rc.14",
"@nuxtjs/sanity": "latest"
}
}
Loading