commit 3d6c75e5851d66a1df3bca9f6a3e28813e0ecfde Author: shayandrg Date: Wed Mar 9 17:21:33 2022 +0330 installing nuxt-content diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..3a029c9 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ + +# Create one with no scope selected on https://github.com/settings/tokens/new +GITHUB_TOKEN= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65f11be --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +node_modules +*.iml +.idea +*.log* +.nuxt +.vscode +.DS_Store +coverage +dist +sw.* +.env +package-lock.json \ No newline at end of file diff --git a/content/en/index.md b/content/en/index.md new file mode 100644 index 0000000..83d4095 --- /dev/null +++ b/content/en/index.md @@ -0,0 +1,27 @@ +--- +title: Introduction +description: '' +position: 1 +category: '' +features: + - Feature 1 + - Feature 2 + - Feature 3 +--- + + + + +[Module]() for [NuxtJS](https://nuxtjs.org). + + + +Your documentation has been created successfully! + + + +## Features + + + +

Enjoy light and dark mode: 

diff --git a/content/en/setup.md b/content/en/setup.md new file mode 100644 index 0000000..5e43e50 --- /dev/null +++ b/content/en/setup.md @@ -0,0 +1,42 @@ +--- +title: Setup +description: '' +position: 2 +category: Guide +--- + +Check the [Nuxt.js documentation](https://nuxtjs.org/guides/configuration-glossary/configuration-modules) for more information about installing and using modules in Nuxt.js. + +## Installation + +Add `@nuxtjs/xxx` dependency to your project: + + + + + ```bash + yarn add @nuxtjs/xxx + ``` + + + + + ```bash + npm install @nuxtjs/xxx + ``` + + + + +Then, add `@nuxtjs/xxx` to the `modules` section of `nuxt.config.js`: + +```js[nuxt.config.js] +{ + modules: [ + '@nuxtjs/xxx' + ], + xxx: { + // Options + } +} +``` diff --git a/content/settings.json b/content/settings.json new file mode 100644 index 0000000..d578388 --- /dev/null +++ b/content/settings.json @@ -0,0 +1,10 @@ +{ + "title": "Nuxt Content", + "url": "", + "logo": { + "light": "/logo-light.svg", + "dark": "/logo-dark.svg" + }, + "github": "doc-init", + "twitter": "@nuxt_js" +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9f89bd5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3' +services: + nuxt: + image: node:lts + user: $UID:$GID + ports: + - '3000:3000' + volumes: + - '.:/srv' + working_dir: /srv + command: "npm run dev" + # command: bash -c "npm run build; npm run start" + # command: bash -c "npm install; npm audit fix; npm run build; npm run start" diff --git a/nuxt.config.js b/nuxt.config.js new file mode 100644 index 0000000..1c97c51 --- /dev/null +++ b/nuxt.config.js @@ -0,0 +1,7 @@ +import theme from '@nuxt/content-theme-docs' + +export default theme({ + docs: { + primaryColor: '#E24F55' + } +}) diff --git a/package.json b/package.json new file mode 100644 index 0000000..2048989 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "doc-init", + "version": "1.0.0", + "private": true, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start", + "generate": "nuxt generate" + }, + "dependencies": { + "@nuxt/content-theme-docs": "^0.11.0", + "nuxt": "^2.15.8" + } +} diff --git a/static/icon.png b/static/icon.png new file mode 100644 index 0000000..5ecf64b Binary files /dev/null and b/static/icon.png differ diff --git a/static/logo-dark.svg b/static/logo-dark.svg new file mode 100644 index 0000000..d10125f --- /dev/null +++ b/static/logo-dark.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/static/logo-light.svg b/static/logo-light.svg new file mode 100644 index 0000000..00d92bc --- /dev/null +++ b/static/logo-light.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/static/preview-dark.png b/static/preview-dark.png new file mode 100644 index 0000000..a04c63a Binary files /dev/null and b/static/preview-dark.png differ diff --git a/static/preview.png b/static/preview.png new file mode 100644 index 0000000..9425220 Binary files /dev/null and b/static/preview.png differ