mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 20:19:33 +01:00
update docs
This commit is contained in:
5
packages/docs/app.config.ts
Normal file
5
packages/docs/app.config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default defineAppConfig({
|
||||
docus: {
|
||||
title: 'tRPC Nuxt',
|
||||
},
|
||||
})
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: Installation
|
||||
description: tRPC-Nuxt provides first class integration with tRPC.
|
||||
---
|
||||
|
||||
# Installation
|
||||
|
||||
## 1. Add tRPC-Nuxt to existing Nuxt project
|
||||
## 1. Add to existing Nuxt project
|
||||
|
||||
::code-group
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
titleTemplate: '%s'
|
||||
description: tRPC-Nuxt provides first class integration with tRPC.
|
||||
---
|
||||
|
||||
# Introduction
|
||||
|
||||
tRPC-Nuxt provides end-to-end typesafe APIs with tRPC.io in Nuxt 3 applications.
|
||||
@@ -1,4 +1,5 @@
|
||||
---
|
||||
title: Usage
|
||||
description: tRPC-Nuxt provides first class integration with tRPC.
|
||||
---
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Introduction
|
||||
description: '@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.'
|
||||
---
|
||||
|
||||
hello intro
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Installation
|
||||
description: '@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.'
|
||||
---
|
||||
|
||||
hello intro
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Server
|
||||
description: '@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.'
|
||||
---
|
||||
|
||||
hello server
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Client
|
||||
description: '@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.'
|
||||
---
|
||||
|
||||
hello client
|
||||
6
packages/docs/content/2.examples/1.basic.md
Normal file
6
packages/docs/content/2.examples/1.basic.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Basic
|
||||
description: tRPC-Nuxt provides first class integration with tRPC.
|
||||
---
|
||||
|
||||
# Basic Example
|
||||
6
packages/docs/content/2.examples/2.multiple-routers.md
Normal file
6
packages/docs/content/2.examples/2.multiple-routers.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Multiple Routers
|
||||
description: tRPC-Nuxt provides first class integration with tRPC.
|
||||
---
|
||||
|
||||
# Multi Routers
|
||||
@@ -9,7 +9,7 @@ layout: page
|
||||
---
|
||||
cta:
|
||||
- Get Started
|
||||
- /get-started/introduction
|
||||
- /get-started/installation
|
||||
secondary:
|
||||
- Star on GitHub ->
|
||||
- https://github.com/wobsoriano/trpc-nuxt
|
||||
|
||||
@@ -7,4 +7,10 @@ export default defineNuxtConfig({
|
||||
build: {
|
||||
transpile: [/content-edge/],
|
||||
},
|
||||
nitro: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
routes: ['/'],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { defineTheme } from '@nuxt-themes/config'
|
||||
console.log('defineTheme', defineTheme)
|
||||
export default defineTheme({
|
||||
title: 'Nuxt 3',
|
||||
cover: {
|
||||
src: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png',
|
||||
alt: 'Nuxt 3 cover image',
|
||||
},
|
||||
aside: {
|
||||
level: 1,
|
||||
},
|
||||
})
|
||||
25
packages/docs/tokens.config.ts
Normal file
25
packages/docs/tokens.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineTheme } from 'pinceau'
|
||||
|
||||
export default defineTheme({
|
||||
title: 'asddsasda 3s',
|
||||
cover: {
|
||||
src: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png',
|
||||
alt: 'Nuxt 3 cover image',
|
||||
},
|
||||
aside: {
|
||||
level: 1,
|
||||
},
|
||||
// colors: {
|
||||
// primary: {
|
||||
// 100: '#77b0db',
|
||||
// 200: '#589ed3',
|
||||
// 300: '#4e98d0',
|
||||
// 400: '#398ccb',
|
||||
// 500: '#398ccb',
|
||||
// 600: '#2BAB71',
|
||||
// 700: '#317eb9',
|
||||
// 800: '#2e77af',
|
||||
// 900: '#266290',
|
||||
// },
|
||||
// },
|
||||
})
|
||||
Reference in New Issue
Block a user