Skip to content

Commit

Permalink
new nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Jan 9, 2024
1 parent 22b889c commit 3ee6aec
Show file tree
Hide file tree
Showing 29 changed files with 1,051 additions and 5,481 deletions.
13 changes: 0 additions & 13 deletions packages/docs/.editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions packages/docs/.env.example

This file was deleted.

4 changes: 0 additions & 4 deletions packages/docs/.eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions packages/docs/.eslintrc.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ logs
.env
.env.*
!.env.example

# VSC
.history
1 change: 0 additions & 1 deletion packages/docs/.npmrc

This file was deleted.

54 changes: 2 additions & 52 deletions packages/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
![nuxt-ui-pro-docs-template](https://github.com/nuxt-ui-pro/docs/assets/904724/67fc15a7-92f6-4566-95b9-fe099012473c)
# Nuxt 3 Minimal Starter

# Nuxt UI Pro - Docs template

[![Nuxt UI Pro](https://img.shields.io/badge/Made%20with-Nuxt%20UI%20Pro-00DC82?logo=nuxt.js&labelColor=020420)](https://ui.nuxt.com/pro)
[![Nuxt Studio](https://img.shields.io/badge/Open%20in%20Nuxt%20Studio-18181B?&logo=nuxt.js&logoColor=3BB5EC)](https://nuxt.studio/themes/docs)

- [Live demo](https://nuxt-ui-pro-template-docs.vercel.app/)
- [Play on Stackblitz](https://stackblitz.com/github/nuxt-ui-pro/docs)
- [Documentation](https://ui.nuxt.com/pro/guide)
- [Clone on Nuxt Studio](https://nuxt.studio/themes/docs)

## Quick Start

```bash [Terminal]
npx nuxi init -t github:nuxt-ui-pro/docs
```
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Expand Down Expand Up @@ -87,39 +73,3 @@ bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

## Nuxt Studio integration

Add `@nuxthq/studio` dependency to your package.json:

```bash
# npm
npm install --save-dev @nuxthq/studio

# pnpm
pnpm add -D @nuxthq/studio

# yarn
yarn add -D @nuxthq/studio

# bun
bun add -d @nuxthq/studio
```

Add this module to your `nuxt.config.ts`:

```ts
export default defineNuxtConfig({
...
modules: [
...
'@nuxthq/studio'
]
})
```

Read more on [Nuxt Studio docs](https://nuxt.studio/docs/projects/setup).

## Renovate integration

Install [Renovate GitHub app](https://github.com/apps/renovate/installations/select_target) on your repository and you are good to go.
78 changes: 0 additions & 78 deletions packages/docs/app.config.ts

This file was deleted.

47 changes: 1 addition & 46 deletions packages/docs/app.vue
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
<script setup lang="ts">
import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
const { seo } = useAppConfig()
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false
})
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'icon', href: '/favicon.ico' }
],
htmlAttrs: {
lang: 'en'
}
})
useSeoMeta({
ogSiteName: seo?.siteName,
twitterCard: 'summary_large_image'
})
provide('navigation', navigation)
</script>

<template>
<div>
<Header />

<UMain>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</UMain>

<Footer />

<ClientOnly>
<LazyUDocsSearch :files="files" :navigation="navigation" />
</ClientOnly>

<UNotifications />
<NuxtWelcome />
</div>
</template>
23 changes: 0 additions & 23 deletions packages/docs/components/Footer.vue

This file was deleted.

42 changes: 0 additions & 42 deletions packages/docs/components/Header.vue

This file was deleted.

Loading

0 comments on commit 3ee6aec

Please sign in to comment.