Skip to content

Commit f6c1706

Browse files
committed
feat: created nuxt content for docs
1 parent eea769a commit f6c1706

File tree

13 files changed

+8318
-0
lines changed

13 files changed

+8318
-0
lines changed

docs/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
*.log*
3+
.nuxt
4+
.nitro
5+
.cache
6+
.output
7+
.data
8+
.env
9+
dist

docs/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

docs/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Content v2 Minimal Starter
2+
3+
Look at the [Content documentation](https://content.nuxt.com/) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
```
19+
20+
## Development Server
21+
22+
Start the development server on http://localhost:3000
23+
24+
```bash
25+
npm run dev
26+
```
27+
28+
## Production
29+
30+
Build the application for production:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
Locally preview production build:
37+
38+
```bash
39+
npm run preview
40+
```
41+
42+
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

docs/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<NuxtPage />
4+
</div>
5+
</template>

docs/content/about.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# About Content v2
2+
3+
[Back home](/)

docs/content/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Nuxt Content
2+
3+
This page corresponds to the `/` route of your website. You can delete it or create another file in the `content/` directory.
4+
5+
Try to navigate to [/about](/about). These 2 pages are rendered by the `pages/[...slug].vue` component.
6+
7+
---
8+
9+
Look at the [Content documentation](https://content.nuxtjs.org/) to learn more.

docs/nuxt.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// https://nuxt.com/docs/api/configuration/nuxt-config
2+
export default defineNuxtConfig({
3+
devtools: { enabled: true },
4+
modules: ['@nuxt/content', "@nuxt/image"],
5+
6+
routeRules: {
7+
'/': { prerender: true }
8+
},
9+
10+
compatibilityDate: '2024-07-27'
11+
})

docs/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"private": true,
3+
"type": "module",
4+
"scripts": {
5+
"build": "nuxt build",
6+
"build:pages": "nuxt build --preset github_pages",
7+
"dev": "nuxt dev",
8+
"generate": "nuxt generate",
9+
"preview": "nuxt preview"
10+
},
11+
"dependencies": {
12+
"@nuxt/content": "^2.13.1",
13+
"@nuxt/image": "^1.7.0",
14+
"nuxt": "^3.12.4"
15+
}
16+
}

docs/pages/[...slug].vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<main>
3+
<ContentDoc />
4+
</main>
5+
</template>

0 commit comments

Comments
 (0)